Passed
Branch master (6220de)
by BruceScrutinizer
04:03
created
doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function __construct(Reader $reader, $cacheDir, $debug = false, $umask = 0002)
66 66
     {
67
-        if (! is_int($umask)) {
67
+        if (!is_int($umask)) {
68 68
             throw new InvalidArgumentException(sprintf(
69 69
                 'The parameter umask must be an integer, was: %s',
70 70
                 gettype($umask)
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $this->reader = $reader;
75 75
         $this->umask  = $umask;
76 76
 
77
-        if (! is_dir($cacheDir) && ! @mkdir($cacheDir, 0777 & (~$this->umask), true)) {
77
+        if (!is_dir($cacheDir) && !@mkdir($cacheDir, 0777 & (~$this->umask), true)) {
78 78
             throw new InvalidArgumentException(sprintf(
79 79
                 'The directory "%s" does not exist and could not be created.',
80 80
                 $cacheDir
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getClassAnnotations(ReflectionClass $class)
92 92
     {
93
-        if (! isset($this->classNameHashes[$class->name])) {
93
+        if (!isset($this->classNameHashes[$class->name])) {
94 94
             $this->classNameHashes[$class->name] = sha1($class->name);
95 95
         }
96 96
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         $path = $this->dir . '/' . strtr($key, '\\', '-') . '.cache.php';
104
-        if (! is_file($path)) {
104
+        if (!is_file($path)) {
105 105
             $annot = $this->reader->getClassAnnotations($class);
106 106
             $this->saveCacheFile($path, $annot);
107 107
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     public function getPropertyAnnotations(ReflectionProperty $property)
132 132
     {
133 133
         $class = $property->getDeclaringClass();
134
-        if (! isset($this->classNameHashes[$class->name])) {
134
+        if (!isset($this->classNameHashes[$class->name])) {
135 135
             $this->classNameHashes[$class->name] = sha1($class->name);
136 136
         }
137 137
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         }
143 143
 
144 144
         $path = $this->dir . '/' . strtr($key, '\\', '-') . '.cache.php';
145
-        if (! is_file($path)) {
145
+        if (!is_file($path)) {
146 146
             $annot = $this->reader->getPropertyAnnotations($property);
147 147
             $this->saveCacheFile($path, $annot);
148 148
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     public function getMethodAnnotations(ReflectionMethod $method)
173 173
     {
174 174
         $class = $method->getDeclaringClass();
175
-        if (! isset($this->classNameHashes[$class->name])) {
175
+        if (!isset($this->classNameHashes[$class->name])) {
176 176
             $this->classNameHashes[$class->name] = sha1($class->name);
177 177
         }
178 178
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         }
184 184
 
185 185
         $path = $this->dir . '/' . strtr($key, '\\', '-') . '.cache.php';
186
-        if (! is_file($path)) {
186
+        if (!is_file($path)) {
187 187
             $annot = $this->reader->getMethodAnnotations($method);
188 188
             $this->saveCacheFile($path, $annot);
189 189
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     private function saveCacheFile($path, $data)
219 219
     {
220
-        if (! is_writable($this->dir)) {
220
+        if (!is_writable($this->dir)) {
221 221
             throw new InvalidArgumentException(sprintf(
222 222
                 <<<'EXCEPTION'
223 223
 The directory "%s" is not writable. Both the webserver and the console user need access.
Please login to merge, or discard this patch.
doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
                     return true;
159 159
                 }
160 160
             } else {
161
-                foreach ((array) $dirs as $dir) {
161
+                foreach ((array)$dirs as $dir) {
162 162
                     if (is_file($dir . DIRECTORY_SEPARATOR . $file)) {
163 163
                         require $dir . DIRECTORY_SEPARATOR . $file;
164 164
 
Please login to merge, or discard this patch.
doctrine/annotations/lib/Doctrine/Common/Annotations/PsrCachedReader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $this->delegate = $reader;
42 42
         $this->cache    = $cache;
43
-        $this->debug    = (bool) $debug;
43
+        $this->debug    = (bool)$debug;
44 44
     }
45 45
 
46 46
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $cacheKey = rawurlencode($cacheKey);
152 152
 
153 153
         $item = $this->cache->getItem($cacheKey);
154
-        if (($this->debug && ! $this->refresh($cacheKey, $class)) || ! $item->isHit()) {
154
+        if (($this->debug && !$this->refresh($cacheKey, $class)) || !$item->isHit()) {
155 155
             $this->cache->save($item->set($this->delegate->{$method}($reflector)));
156 156
         }
157 157
 
@@ -194,12 +194,12 @@  discard block
 block discarded – undo
194 194
 
195 195
         $parent = $class->getParentClass();
196 196
 
197
-        $lastModification =  max(array_merge(
197
+        $lastModification = max(array_merge(
198 198
             [$filename ? filemtime($filename) : 0],
199
-            array_map(function (ReflectionClass $reflectionTrait): int {
199
+            array_map(function(ReflectionClass $reflectionTrait): int {
200 200
                 return $this->getTraitLastModificationTime($reflectionTrait);
201 201
             }, $class->getTraits()),
202
-            array_map(function (ReflectionClass $class): int {
202
+            array_map(function(ReflectionClass $class): int {
203 203
                 return $this->getLastModification($class);
204 204
             }, $class->getInterfaces()),
205 205
             $parent ? [$this->getLastModification($parent)] : []
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 
221 221
         $lastModificationTime = max(array_merge(
222 222
             [$fileName ? filemtime($fileName) : 0],
223
-            array_map(function (ReflectionClass $reflectionTrait): int {
223
+            array_map(function(ReflectionClass $reflectionTrait): int {
224 224
                 return $this->getTraitLastModificationTime($reflectionTrait);
225 225
             }, $reflectionTrait->getTraits())
226 226
         ));
Please login to merge, or discard this patch.
annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             $values['value'] = [$values['value']];
32 32
         }
33 33
 
34
-        if (! is_array($values['value'])) {
34
+        if (!is_array($values['value'])) {
35 35
             throw new RuntimeException(sprintf(
36 36
                 '@IgnoreAnnotation expects either a string name, or an array of strings, but got %s.',
37 37
                 json_encode($values['value'])
Please login to merge, or discard this patch.
doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function __construct(array $values)
42 42
     {
43
-        if (! isset($values['literal'])) {
43
+        if (!isset($values['literal'])) {
44 44
             $values['literal'] = [];
45 45
         }
46 46
 
47 47
         foreach ($values['value'] as $var) {
48
-            if (! is_scalar($var)) {
48
+            if (!is_scalar($var)) {
49 49
                 throw new InvalidArgumentException(sprintf(
50 50
                     '@Enum supports only scalar values "%s" given.',
51 51
                     is_object($var) ? get_class($var) : gettype($var)
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         foreach ($values['literal'] as $key => $var) {
57
-            if (! in_array($key, $values['value'])) {
57
+            if (!in_array($key, $values['value'])) {
58 58
                 throw new InvalidArgumentException(sprintf(
59 59
                     'Undefined enumerator value "%s" for literal "%s".',
60 60
                     $key,
Please login to merge, or discard this patch.
doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Target.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function __construct(array $values)
64 64
     {
65
-        if (! isset($values['value'])) {
65
+        if (!isset($values['value'])) {
66 66
             $values['value'] = null;
67 67
         }
68 68
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             $values['value'] = [$values['value']];
71 71
         }
72 72
 
73
-        if (! is_array($values['value'])) {
73
+        if (!is_array($values['value'])) {
74 74
             throw new InvalidArgumentException(
75 75
                 sprintf(
76 76
                     '@Target expects either a string value, or an array of strings, "%s" given.',
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $bitmask = 0;
83 83
         foreach ($values['value'] as $literal) {
84
-            if (! isset(self::$map[$literal])) {
84
+            if (!isset(self::$map[$literal])) {
85 85
                 throw new InvalidArgumentException(
86 86
                     sprintf(
87 87
                         'Invalid Target "%s". Available targets: [%s]',
Please login to merge, or discard this patch.
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function setIgnoreNotImportedAnnotations($bool)
301 301
     {
302
-        $this->ignoreNotImportedAnnotations = (bool) $bool;
302
+        $this->ignoreNotImportedAnnotations = (bool)$bool;
303 303
     }
304 304
 
305 305
     /**
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      */
413 413
     private function match(int $token): bool
414 414
     {
415
-        if (! $this->lexer->isNextToken($token)) {
415
+        if (!$this->lexer->isNextToken($token)) {
416 416
             throw $this->syntaxError($this->lexer->getLiteral($token));
417 417
         }
418 418
 
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
      */
432 432
     private function matchAny(array $tokens): bool
433 433
     {
434
-        if (! $this->lexer->isNextTokenAny($tokens)) {
434
+        if (!$this->lexer->isNextTokenAny($tokens)) {
435 435
             throw $this->syntaxError(implode(' or ', array_map([$this->lexer, 'getLiteral'], $tokens)));
436 436
         }
437 437
 
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
                     }
557 557
                 }
558 558
 
559
-                if (! ($annotation instanceof Attributes)) {
559
+                if (!($annotation instanceof Attributes)) {
560 560
                     continue;
561 561
                 }
562 562
 
@@ -597,12 +597,12 @@  discard block
 block discarded – undo
597 597
                     self::$metadataParser->setTarget(Target::TARGET_PROPERTY);
598 598
 
599 599
                     foreach (self::$metadataParser->parse($propertyComment, $context) as $annotation) {
600
-                        if (! $annotation instanceof Enum) {
600
+                        if (!$annotation instanceof Enum) {
601 601
                             continue;
602 602
                         }
603 603
 
604 604
                         $metadata['enum'][$property->name]['value']   = $annotation->value;
605
-                        $metadata['enum'][$property->name]['literal'] = (! empty($annotation->literal))
605
+                        $metadata['enum'][$property->name]['literal'] = (!empty($annotation->literal))
606 606
                             ? $annotation->literal
607 607
                             : $annotation->value;
608 608
                     }
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
             $peek = $this->lexer->glimpse();
705 705
             if (
706 706
                 ($peek === null)
707
-                || ($peek['type'] !== DocLexer::T_NAMESPACE_SEPARATOR && ! in_array(
707
+                || ($peek['type'] !== DocLexer::T_NAMESPACE_SEPARATOR && !in_array(
708 708
                     $peek['type'],
709 709
                     self::$classIdentifiers,
710 710
                     true
@@ -779,17 +779,17 @@  discard block
 block discarded – undo
779 779
                     : $namespace;
780 780
                 $found     = $this->classExists($name);
781 781
             } elseif (
782
-                ! isset($this->ignoredAnnotationNames[$name])
782
+                !isset($this->ignoredAnnotationNames[$name])
783 783
                 && isset($this->imports['__NAMESPACE__'])
784 784
                 && $this->classExists($this->imports['__NAMESPACE__'] . '\\' . $name)
785 785
             ) {
786 786
                 $name  = $this->imports['__NAMESPACE__'] . '\\' . $name;
787 787
                 $found = true;
788
-            } elseif (! isset($this->ignoredAnnotationNames[$name]) && $this->classExists($name)) {
788
+            } elseif (!isset($this->ignoredAnnotationNames[$name]) && $this->classExists($name)) {
789 789
                 $found = true;
790 790
             }
791 791
 
792
-            if (! $found) {
792
+            if (!$found) {
793 793
                 if ($this->isIgnoredAnnotation($name)) {
794 794
                     return false;
795 795
                 }
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
 
808 808
         $name = ltrim($name, '\\');
809 809
 
810
-        if (! $this->classExists($name)) {
810
+        if (!$this->classExists($name)) {
811 811
             throw AnnotationException::semanticalError(sprintf(
812 812
                 'The annotation "@%s" in %s does not exist, or could not be auto-loaded.',
813 813
                 $name,
@@ -820,7 +820,7 @@  discard block
 block discarded – undo
820 820
         // that it is loaded
821 821
 
822 822
         // collects the metadata annotation only if there is not yet
823
-        if (! isset(self::$annotationMetadata[$name])) {
823
+        if (!isset(self::$annotationMetadata[$name])) {
824 824
             $this->collectAnnotationMetadata($name);
825 825
         }
826 826
 
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
             // checks all declared attributes
874 874
             foreach (self::$annotationMetadata[$name]['enum'] as $property => $enum) {
875 875
                 // checks if the attribute is a valid enumerator
876
-                if (isset($values[$property]) && ! in_array($values[$property], $enum['value'])) {
876
+                if (isset($values[$property]) && !in_array($values[$property], $enum['value'])) {
877 877
                     throw AnnotationException::enumeratorError(
878 878
                         $property,
879 879
                         $name,
@@ -889,13 +889,13 @@  discard block
 block discarded – undo
889 889
         foreach (self::$annotationMetadata[$name]['attribute_types'] as $property => $type) {
890 890
             if (
891 891
                 $property === self::$annotationMetadata[$name]['default_property']
892
-                && ! isset($values[$property]) && isset($values['value'])
892
+                && !isset($values[$property]) && isset($values['value'])
893 893
             ) {
894 894
                 $property = 'value';
895 895
             }
896 896
 
897 897
             // handle a not given attribute or null value
898
-            if (! isset($values[$property])) {
898
+            if (!isset($values[$property])) {
899 899
                 if ($type['required']) {
900 900
                     throw AnnotationException::requiredError(
901 901
                         $property,
@@ -910,14 +910,14 @@  discard block
 block discarded – undo
910 910
 
911 911
             if ($type['type'] === 'array') {
912 912
                 // handle the case of a single value
913
-                if (! is_array($values[$property])) {
913
+                if (!is_array($values[$property])) {
914 914
                     $values[$property] = [$values[$property]];
915 915
                 }
916 916
 
917 917
                 // checks if the attribute has array type declaration, such as "array<string>"
918 918
                 if (isset($type['array_type'])) {
919 919
                     foreach ($values[$property] as $item) {
920
-                        if (gettype($item) !== $type['array_type'] && ! $item instanceof $type['array_type']) {
920
+                        if (gettype($item) !== $type['array_type'] && !$item instanceof $type['array_type']) {
921 921
                             throw AnnotationException::attributeTypeError(
922 922
                                 $property,
923 923
                                 $originalName,
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
                         }
929 929
                     }
930 930
                 }
931
-            } elseif (gettype($values[$property]) !== $type['type'] && ! $values[$property] instanceof $type['type']) {
931
+            } elseif (gettype($values[$property]) !== $type['type'] && !$values[$property] instanceof $type['type']) {
932 932
                 throw AnnotationException::attributeTypeError(
933 933
                     $property,
934 934
                     $originalName,
@@ -950,7 +950,7 @@  discard block
 block discarded – undo
950 950
             }
951 951
 
952 952
             foreach ($values as $property => $value) {
953
-                if (! isset(self::$annotationMetadata[$name]['constructor_args'][$property])) {
953
+                if (!isset(self::$annotationMetadata[$name]['constructor_args'][$property])) {
954 954
                     throw AnnotationException::creationError(sprintf(
955 955
                         <<<'EXCEPTION'
956 956
 The annotation @%s declared on %s does not have a property named "%s"
@@ -980,7 +980,7 @@  discard block
 block discarded – undo
980 980
         $instance = new $name();
981 981
 
982 982
         foreach ($values as $property => $value) {
983
-            if (! isset(self::$annotationMetadata[$name]['properties'][$property])) {
983
+            if (!isset(self::$annotationMetadata[$name]['properties'][$property])) {
984 984
                 if ($property !== 'value') {
985 985
                     throw AnnotationException::creationError(sprintf(
986 986
                         <<<'EXCEPTION'
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
 
998 998
                 // handle the case if the property has no annotations
999 999
                 $property = self::$annotationMetadata[$name]['default_property'];
1000
-                if (! $property) {
1000
+                if (!$property) {
1001 1001
                     throw AnnotationException::creationError(sprintf(
1002 1002
                         'The annotation @%s declared on %s does not accept any values, but got %s.',
1003 1003
                         $originalName,
@@ -1025,13 +1025,13 @@  discard block
 block discarded – undo
1025 1025
     {
1026 1026
         $values = [];
1027 1027
 
1028
-        if (! $this->lexer->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) {
1028
+        if (!$this->lexer->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) {
1029 1029
             return $values;
1030 1030
         }
1031 1031
 
1032 1032
         $this->match(DocLexer::T_OPEN_PARENTHESIS);
1033 1033
 
1034
-        if (! $this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
1034
+        if (!$this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
1035 1035
             $values = $this->Values();
1036 1036
         }
1037 1037
 
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
     {
1090 1090
         $identifier = $this->Identifier();
1091 1091
 
1092
-        if (! defined($identifier) && strpos($identifier, '::') !== false && $identifier[0] !== '\\') {
1092
+        if (!defined($identifier) && strpos($identifier, '::') !== false && $identifier[0] !== '\\') {
1093 1093
             [$className, $const] = explode('::', $identifier);
1094 1094
 
1095 1095
             $pos          = strpos($className, '\\');
@@ -1098,7 +1098,7 @@  discard block
 block discarded – undo
1098 1098
             $loweredAlias = strtolower($alias);
1099 1099
 
1100 1100
             switch (true) {
1101
-                case ! empty($this->namespaces):
1101
+                case !empty($this->namespaces):
1102 1102
                     foreach ($this->namespaces as $ns) {
1103 1103
                         if (class_exists($ns . '\\' . $className) || interface_exists($ns . '\\' . $className)) {
1104 1104
                             $className = $ns . '\\' . $className;
@@ -1139,7 +1139,7 @@  discard block
 block discarded – undo
1139 1139
          */
1140 1140
         if (
1141 1141
             $this->identifierEndsWithClassConstant($identifier) &&
1142
-            ! $this->identifierStartsWithBackslash($identifier)
1142
+            !$this->identifierStartsWithBackslash($identifier)
1143 1143
         ) {
1144 1144
             return substr($identifier, 0, $this->getClassConstantPositionInIdentifier($identifier));
1145 1145
         }
@@ -1148,7 +1148,7 @@  discard block
 block discarded – undo
1148 1148
             return substr($identifier, 1, $this->getClassConstantPositionInIdentifier($identifier) - 1);
1149 1149
         }
1150 1150
 
1151
-        if (! defined($identifier)) {
1151
+        if (!defined($identifier)) {
1152 1152
             throw AnnotationException::semanticalErrorConstants($identifier, $this->context);
1153 1153
         }
1154 1154
 
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
     private function Identifier(): string
1182 1182
     {
1183 1183
         // check if we have an annotation
1184
-        if (! $this->lexer->isNextTokenAny(self::$classIdentifiers)) {
1184
+        if (!$this->lexer->isNextTokenAny(self::$classIdentifiers)) {
1185 1185
             throw $this->syntaxError('namespace separator or identifier');
1186 1186
         }
1187 1187
 
@@ -1254,12 +1254,12 @@  discard block
 block discarded – undo
1254 1254
             case DocLexer::T_INTEGER:
1255 1255
                 $this->match(DocLexer::T_INTEGER);
1256 1256
 
1257
-                return (int) $this->lexer->token['value'];
1257
+                return (int)$this->lexer->token['value'];
1258 1258
 
1259 1259
             case DocLexer::T_FLOAT:
1260 1260
                 $this->match(DocLexer::T_FLOAT);
1261 1261
 
1262
-                return (float) $this->lexer->token['value'];
1262
+                return (float)$this->lexer->token['value'];
1263 1263
 
1264 1264
             case DocLexer::T_TRUE:
1265 1265
                 $this->match(DocLexer::T_TRUE);
@@ -1436,14 +1436,14 @@  discard block
 block discarded – undo
1436 1436
 
1437 1437
             foreach (self::$annotationMetadata[$name]['constructor_args'] as $property => $parameter) {
1438 1438
                 $position = $parameter['position'];
1439
-                if (isset($values[$property]) || ! isset($positionalArguments[$position])) {
1439
+                if (isset($values[$property]) || !isset($positionalArguments[$position])) {
1440 1440
                     continue;
1441 1441
                 }
1442 1442
 
1443 1443
                 $values[$property] = $positionalArguments[$position];
1444 1444
             }
1445 1445
         } else {
1446
-            if (count($positionalArguments) > 0 && ! isset($values['value'])) {
1446
+            if (count($positionalArguments) > 0 && !isset($values['value'])) {
1447 1447
                 if (count($positionalArguments) === 1) {
1448 1448
                     $value = array_pop($positionalArguments);
1449 1449
                 } else {
Please login to merge, or discard this patch.
doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->delegate = $reader;
47 47
         $this->cache    = $cache;
48
-        $this->debug    = (bool) $debug;
48
+        $this->debug    = (bool)$debug;
49 49
     }
50 50
 
51 51
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         $data = $this->cache->fetch($cacheKey);
176 176
         if ($data !== false) {
177
-            if (! $this->debug || $this->isCacheFresh($cacheKey, $class)) {
177
+            if (!$this->debug || $this->isCacheFresh($cacheKey, $class)) {
178 178
                 return $data;
179 179
             }
180 180
         }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     private function saveToCache($cacheKey, $value)
194 194
     {
195 195
         $this->cache->save($cacheKey, $value);
196
-        if (! $this->debug) {
196
+        if (!$this->debug) {
197 197
             return;
198 198
         }
199 199
 
@@ -230,12 +230,12 @@  discard block
 block discarded – undo
230 230
 
231 231
         $parent = $class->getParentClass();
232 232
 
233
-        $lastModification =  max(array_merge(
233
+        $lastModification = max(array_merge(
234 234
             [$filename ? filemtime($filename) : 0],
235
-            array_map(function (ReflectionClass $reflectionTrait): int {
235
+            array_map(function(ReflectionClass $reflectionTrait): int {
236 236
                 return $this->getTraitLastModificationTime($reflectionTrait);
237 237
             }, $class->getTraits()),
238
-            array_map(function (ReflectionClass $class): int {
238
+            array_map(function(ReflectionClass $class): int {
239 239
                 return $this->getLastModification($class);
240 240
             }, $class->getInterfaces()),
241 241
             $parent ? [$this->getLastModification($parent)] : []
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         $lastModificationTime = max(array_merge(
258 258
             [$fileName ? filemtime($fileName) : 0],
259
-            array_map(function (ReflectionClass $reflectionTrait): int {
259
+            array_map(function(ReflectionClass $reflectionTrait): int {
260 260
                 return $this->getTraitLastModificationTime($reflectionTrait);
261 261
             }, $reflectionTrait->getTraits())
262 262
         ));
Please login to merge, or discard this patch.
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         $statements    = [];
105 105
         $explicitAlias = false;
106 106
         while (($token = $this->next())) {
107
-            if (! $explicitAlias && $token[0] === T_STRING) {
107
+            if (!$explicitAlias && $token[0] === T_STRING) {
108 108
                 $class .= $token[1];
109 109
                 $alias  = $token[1];
110 110
             } elseif ($explicitAlias && $token[0] === T_STRING) {
Please login to merge, or discard this patch.