Passed
Pull Request — master (#6)
by Christopher
01:38
created
src/ClassFinder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $map = self::getClassMap($namespace);
45 45
         // before we process the class list to autoload the resident classes, filter out the ones outside
46 46
         // desired namespace
47
-        $map = array_filter($map, function (string $value, string $key) use ($namespace) {
47
+        $map = array_filter($map, function(string $value, string $key) use ($namespace) {
48 48
             return self::strStartsWith($namespace, $value) ||
49 49
                    self::strStartsWith($namespace, $key);
50 50
         }, ARRAY_FILTER_USE_BOTH);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         self::checkState();
70 70
         if (self::$optimisedClassMap !== false) {
71 71
             assert(!is_bool(self::$optimisedClassMap));
72
-            return self::$optimisedClassMap ;
72
+            return self::$optimisedClassMap;
73 73
         }
74 74
         return array_reduce(self::getProjectSearchDirs($namespace),
75 75
             function($map, $dir) {
@@ -145,10 +145,10 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public static function getClasses(string $namespace = '', callable $conditional = null, bool $includeVendor = true):array
147 147
     {
148
-        $conditional = $conditional ?: function () {
148
+        $conditional = $conditional ?: function() {
149 149
             return true;
150 150
         };
151
-        $classes = array_values(array_filter(self::getProjectClasses($namespace), function (string $class) use (
151
+        $classes = array_values(array_filter(self::getProjectClasses($namespace), function(string $class) use (
152 152
             $namespace,
153 153
             $conditional,
154 154
             $includeVendor
Please login to merge, or discard this patch.