Completed
Push — master ( ce9d78...9c08c3 )
by Marco
11s
created
src/SourceLocator/Type/AutoloadSourceLocator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $potentiallyLocatedFile = $this->attemptAutoloadForIdentifier($identifier);
72 72
 
73
-        if (! ($potentiallyLocatedFile && file_exists($potentiallyLocatedFile))) {
73
+        if (!($potentiallyLocatedFile && file_exists($potentiallyLocatedFile))) {
74 74
             return null;
75 75
         }
76 76
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         if (class_exists($className, false) || interface_exists($className, false) || trait_exists($className, false)) {
119 119
             $filename = (new ReflectionClass($className))->getFileName();
120 120
 
121
-            if (! is_string($filename)) {
121
+            if (!is_string($filename)) {
122 122
                 return null;
123 123
             }
124 124
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
         self::$autoloadLocatedFile = null;
129 129
         self::$currentAstLocator   = $this->astLocator; // passing the locator on to the implicitly instantiated `self`
130
-        $previousErrorHandler      = set_error_handler(function () : void {
130
+        $previousErrorHandler      = set_error_handler(function() : void {
131 131
         });
132 132
         stream_wrapper_unregister('file');
133 133
         stream_wrapper_register('file', self::class);
@@ -147,14 +147,14 @@  discard block
 block discarded – undo
147 147
      */
148 148
     private function locateFunctionByName(string $functionName) : ?string
149 149
     {
150
-        if (! function_exists($functionName)) {
150
+        if (!function_exists($functionName)) {
151 151
             return null;
152 152
         }
153 153
 
154 154
         $reflection         = new ReflectionFunction($functionName);
155 155
         $reflectionFileName = $reflection->getFileName();
156 156
 
157
-        if (! is_string($reflectionFileName)) {
157
+        if (!is_string($reflectionFileName)) {
158 158
             return null;
159 159
         }
160 160
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         stream_wrapper_restore('file');
195 195
 
196 196
         if ($flags & STREAM_URL_STAT_QUIET) {
197
-            set_error_handler(function () {
197
+            set_error_handler(function() {
198 198
                 // Use native error handler
199 199
                 return false;
200 200
             });
Please login to merge, or discard this patch.