Completed
Push — master ( 4ade3c...a706a2 )
by Johannes Skov
04:52 queued 02:29
created
src/Api/Action/Test.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             ->append($files)
77 77
             ->in($dir);
78 78
         
79
-        if (! empty($bootstrap)) {
79
+        if (!empty($bootstrap)) {
80 80
             foreach ($bootstrap as $file) {
81 81
                 require_once $file->getRealPath();
82 82
             }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     private function isPhpUnitTestCase($path)
150 150
     {
151
-        return ! empty(preg_grep('/extends.+PHPUnit_Framework_TestCase$/', file($path)));
151
+        return !empty(preg_grep('/extends.+PHPUnit_Framework_TestCase$/', file($path)));
152 152
     }
153 153
 
154 154
     /**
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     private function isLaravelTestCase($path)
162 162
     {
163
-        return ! empty(preg_grep('/extends\s*TestCase$/', file($path)));
163
+        return !empty(preg_grep('/extends\s*TestCase$/', file($path)));
164 164
     }
165 165
 
166 166
     /**
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
             preg_match('/^class\s([A-Za-z0-9]+).+$/', array_pop($result2), $matches2);
187 187
             $class = $matches2[1];
188 188
             require_once $path;
189
-            $obj = new ReflectionClass($namespace . '\\' . $class);
189
+            $obj = new ReflectionClass($namespace.'\\'.$class);
190 190
             $methods = [];
191 191
             foreach ($obj->getMethods() as $method) {
192
-                if ($method->class == $namespace . '\\' . $class) {
192
+                if ($method->class == $namespace.'\\'.$class) {
193 193
                     if ($method->isPublic()) {
194 194
                         $methods[] = $method->name;
195 195
                     }
Please login to merge, or discard this patch.