@@ -68,7 +68,7 @@ |
||
68 | 68 | if($skipped["reason"]) { |
69 | 69 | $reason = ": {$skipped["reason"]}"; |
70 | 70 | } |
71 | - Environment::printLine("Skipped {$skipped["name"]}$reason"); |
|
71 | + Environment::printLine("skipped {$skipped["name"]}$reason"); |
|
72 | 72 | } |
73 | 73 | if($failed) { |
74 | 74 | Environment::printLine("Failed"); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $skip = false; |
32 | 32 | $reason = ""; |
33 | 33 | foreach($value as $k => $v) { |
34 | - switch ($k) { |
|
34 | + switch($k) { |
|
35 | 35 | case "php": |
36 | 36 | $skip = version_compare(PHP_VERSION, (string) $v, "<"); |
37 | 37 | if($skip) { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $this->tearDown(); |
162 | 162 | } |
163 | 163 | Environment::$currentJob = ""; |
164 | - switch ($job->result) { |
|
164 | + switch($job->result) { |
|
165 | 165 | case "passed": |
166 | 166 | return "."; |
167 | 167 | case "skipped": |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | function findVendorDirectory(): string { |
5 | 5 | $recursionLimit = 10; |
6 | - $findVendor = function ($dirName = "vendor/bin", $dir = __DIR__) use (&$findVendor, &$recursionLimit) { |
|
7 | - if (!$recursionLimit--) { |
|
6 | + $findVendor = function($dirName = "vendor/bin", $dir = __DIR__) use (&$findVendor, &$recursionLimit) { |
|
7 | + if(!$recursionLimit--) { |
|
8 | 8 | throw new \Exception("Cannot find vendor directory."); |
9 | 9 | } |
10 | 10 | $found = $dir . "/$dirName"; |
11 | - if (is_dir($found) || is_file($found)) { |
|
11 | + if(is_dir($found) || is_file($found)) { |
|
12 | 12 | return dirname($found); |
13 | 13 | } |
14 | 14 | return $findVendor($dirName, dirname($dir)); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | if($skipped["reason"]) { |
69 | 69 | $reason = ": {$skipped["reason"]}"; |
70 | 70 | } |
71 | - Environment::printLine("Skipped {$skipped["name"]}$reason"); |
|
71 | + Environment::printLine("skipped {$skipped["name"]}$reason"); |
|
72 | 72 | } |
73 | 73 | if($failed) { |
74 | 74 | Environment::printLine("Failed"); |