minor #15136 Fix quoting style consistency (2.7) (ogizanagi)
This PR was merged into the 2.7 branch.
Discussion
----------
Fix quoting style consistency (2.7)
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Follows up #15129.
Commits
-------
2aab007
Fix quoting style consistency.
This commit is contained in:
commit
b6dbfa4b73
@ -35,16 +35,16 @@ class Groups
|
|||||||
public function __construct(array $data)
|
public function __construct(array $data)
|
||||||
{
|
{
|
||||||
if (!isset($data['value']) || !$data['value']) {
|
if (!isset($data['value']) || !$data['value']) {
|
||||||
throw new InvalidArgumentException(sprintf("Parameter of annotation '%s' cannot be empty.", get_class($this)));
|
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" cannot be empty.', get_class($this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_array($data['value'])) {
|
if (!is_array($data['value'])) {
|
||||||
throw new InvalidArgumentException(sprintf("Parameter of annotation '%s' must be an array of strings.", get_class($this)));
|
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be an array of strings.', get_class($this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($data['value'] as $group) {
|
foreach ($data['value'] as $group) {
|
||||||
if (!is_string($group)) {
|
if (!is_string($group)) {
|
||||||
throw new InvalidArgumentException(sprintf("Parameter of annotation '%s' must be an array of strings.", get_class($this)));
|
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be an array of strings.', get_class($this)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user