@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | require_once __DIR__ . "/functions.php"; |
5 | 5 |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
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)); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MyTester\Bridges\NetteDI; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MyTester; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MyTester; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MyTester; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MyTester; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MyTester\Bridges\NetteDI; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace MyTester; |
5 | 5 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $skip = false; |
33 | 33 | $reason = ""; |
34 | 34 | foreach($value as $k => $v) { |
35 | - switch ($k) { |
|
35 | + switch($k) { |
|
36 | 36 | case "php": |
37 | 37 | $skip = version_compare(PHP_VERSION, (string) $v, "<"); |
38 | 38 | if($skip) { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $this->tearDown(); |
172 | 172 | } |
173 | 173 | Environment::$currentJob = ""; |
174 | - switch ($job->result) { |
|
174 | + switch($job->result) { |
|
175 | 175 | case "passed": |
176 | 176 | return "."; |
177 | 177 | case "skipped": |