Completed
Push — master ( a7292a...85b851 )
by Vladimir
05:32
created
src/Check/CheckFinder.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function __construct(array $dirs = null)
23 23
     {
24
-        if($dirs) {
24
+        if ($dirs) {
25 25
             $this->searchDirs = array_merge($this->searchDirs, $dirs);
26 26
         }
27 27
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
             $code = $f->getContents();
42 42
             $class = $this->getConfigClass($code);
43
-            if(is_subclass_of($class, CheckConfigInterface::class)) {
43
+            if (is_subclass_of($class, CheckConfigInterface::class)) {
44 44
                 $res[] = $class;
45 45
             }
46 46
         }
@@ -58,43 +58,43 @@  discard block
 block discarded – undo
58 58
         do {
59 59
             $token = current($tokens);
60 60
 
61
-            if(isset($token[0]) && $token[0] == T_NAMESPACE) {
61
+            if (isset($token[0]) && $token[0] == T_NAMESPACE) {
62 62
                 next($tokens);
63 63
                 do {
64 64
                     $token = current($tokens);
65
-                    if($token == ';') {
65
+                    if ($token == ';') {
66 66
                         break 1;
67 67
                     }
68 68
                     $namespace[] = $token[1];
69
-                } while(next($tokens));
69
+                } while (next($tokens));
70 70
 
71 71
                 $namespace = trim(implode('', $namespace));
72 72
             }
73 73
 
74
-            if(isset($token[0]) && $token[0] == T_CLASS) {
74
+            if (isset($token[0]) && $token[0] == T_CLASS) {
75 75
                 next($tokens);
76 76
                 do {
77 77
                     $token = current($tokens);
78 78
 
79
-                    if($token[0] == T_EXTENDS) {
79
+                    if ($token[0] == T_EXTENDS) {
80 80
                         break 1;
81 81
                     }
82 82
 
83
-                    if($token[0] == T_STRING) {
83
+                    if ($token[0] == T_STRING) {
84 84
                         $class[] = $token[1];
85 85
                         break 1;
86 86
                     }
87 87
 
88
-                } while(next($tokens));
88
+                } while (next($tokens));
89 89
 
90 90
                 $class = trim(implode('', $class));
91 91
 
92 92
                 break;
93 93
             }
94 94
 
95
-        } while(next($tokens));
95
+        } while (next($tokens));
96 96
 
97
-        $configClass = (string)$namespace . '\\' . (string)$class;
97
+        $configClass = (string) $namespace.'\\'.(string) $class;
98 98
 
99 99
         return $configClass;
100 100
     }
Please login to merge, or discard this patch.