8000 minor #15129 Fix quoting style consistency. (ogizanagi) · symfony/symfony@7e418fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e418fd

Browse files
committed
minor #15129 Fix quoting style consistency. (ogizanagi)
This PR was merged into the 2.3 branch. Discussion ---------- Fix quoting style consistency. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This is a really minor change with reference to [this comment](#15002 (comment)). If it's fine, [those changes](symfony:2.7...ogizanagi:fix_quoting_style/2.7) for 2.7 will follow up too. Commits ------- 57d30f9 Fix quoting style consistency.
2 parents e93a3d7 + 57d30f9 commit 7e418fd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function validate($entity, Constraint $constraint)
7777
$criteria = array();
7878
foreach ($fields as $fieldName) {
7979
if (!$class->hasField($fieldName) && !$class->hasAssociation($fieldName)) {
80-
throw new ConstraintDefinitionException(sprintf("The field '%s' is not mapped by Doctrine, so it cannot be validated for uniqueness.", $fieldName));
80+
throw new ConstraintDefinitionException(sprintf('The field "%s" is not mapped by Doctrine, so it cannot be validated for uniqueness.', $fieldName));
8181
}
8282

8383
$criteria[$fieldName] = $class->reflFields[$fieldName]->getValue($entity);

src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function formatReplace($dateChars, $dateTime)
123123

124124
// handle unimplemented characters
125125
if (false !== strpos($this->notImplementedChars, $dateChars[0])) {
126-
throw new NotImplementedException(sprintf("Unimplemented date character '%s' in format '%s'", $dateChars[0], $this->pattern));
126+
throw new NotImplementedException(sprintf('Unimplemented date character "%s" in format "%s"', $dateChars[0], $this->pattern));
127127
}
128128
}
129129

src/Symfony/Component/Routing/Annotation/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(array $data)
5353
foreach ($data as $key => $value) {
5454
$method = 'set'.str_replace('_', '', $key);
5555
if (!method_exists($this, $method)) {
56-
throw new \BadMethodCallException(sprintf("Unknown property '%s' on annotation '%s'.", $key, get_class($this)));
56+
throw new \BadMethodCallException(sprintf('Unknown property "%s" on annotation "%s".', $key, get_class($this)));
5757
}
5858
$this->$method($value);
5959
}

src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function handle(GetResponseEvent $event)
101101

102102
if ($serverDigestMd5 !== $digestAuth->getResponse()) {
103103
if (null !== $this->logger) {
104-
$this->logger->debug(sprintf("Expected response: '%s' but received: '%s'; is AuthenticationDao returning clear text passwords?", $serverDigestMd5, $digestAuth->getResponse()));
104+
$this->logger->debug(sprintf('Expected response: "%s" but received: "%s"; is AuthenticationDao returning clear text passwords?', $serverDigestMd5, $digestAuth->getResponse()));
105105
}
106106

107107
$this->fail($event, $request, new BadCredentialsException('Incorrect response'));

0 commit comments

Comments
 (0)
0