@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | private function buildAnnotation(array $attributes): ?object |
57 | 57 | { |
58 | - if (!isset($attributes[0])) { |
|
58 | + if ( ! isset($attributes[0])) { |
|
59 | 59 | return null; |
60 | 60 | } |
61 | 61 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | All the other cases should work as expected. |
26 | 26 | The alternative here is to use the explicit syntax Groups(groups=['value' => '...']) |
27 | 27 | */ |
28 | - if (count($values) > 0 && (!isset($values['value']) || count($values) > 1) && 0 === count($groups)) { |
|
28 | + if (count($values) > 0 && ( ! isset($values['value']) || count($values) > 1) && 0 === count($groups)) { |
|
29 | 29 | $vars['groups'] = $values; |
30 | 30 | $vars['values'] = []; |
31 | 31 | } |
@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | { |
11 | 11 | private function loadAnnotationParameters(array $vars): void |
12 | 12 | { |
13 | - if (!array_key_exists('values', $vars)) { |
|
13 | + if ( ! array_key_exists('values', $vars)) { |
|
14 | 14 | $values = []; |
15 | - } elseif (!is_array($vars['values'])) { |
|
15 | + } elseif ( ! is_array($vars['values'])) { |
|
16 | 16 | $values = ['value' => $vars['values']]; |
17 | 17 | } else { |
18 | 18 | $values = $vars['values']; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | foreach ($vars as $key => $value) { |
33 | - if (!property_exists(static::class, $key)) { |
|
33 | + if ( ! property_exists(static::class, $key)) { |
|
34 | 34 | throw new InvalidArgumentException(sprintf('Unknown property "%s" on annotation "%s".', $key, static::class)); |
35 | 35 | } |
36 | 36 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | $driver = new AnnotationDriver($annotationReader, $this->propertyNamingStrategy, $this->typeParser); |
52 | 52 | |
53 | - if (!empty($metadataDirs)) { |
|
53 | + if ( ! empty($metadataDirs)) { |
|
54 | 54 | $fileLocator = new FileLocator($metadataDirs); |
55 | 55 | $driver = new DriverChain([ |
56 | 56 | new YamlDriver($fileLocator, $this->propertyNamingStrategy, $this->typeParser, $this->expressionEvaluator), |