Passed
Pull Request — master (#1345)
by Michael
12:41
created
src/Metadata/Driver/AttributeDriver/AttributeReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Annotation/Groups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Annotation/AnnotationUtilsTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Builder/DefaultDriverFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.