@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace TheCodingMachine\WashingMachine\Clover; |
5 | 5 |
@@ -48,9 +48,9 @@ |
||
48 | 48 | throw new \RuntimeException('Could not find the Gitlab URL in the "CI_BUILD_REPO" environment variable (usually set by Gitlab CI). Either set this environment variable or pass the URL via the --gitlab-url command line option.'); |
49 | 49 | } |
50 | 50 | $parsed_url = parse_url($ciProjectUrl); |
51 | - $scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : ''; |
|
51 | + $scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'].'://' : ''; |
|
52 | 52 | $host = isset($parsed_url['host']) ? $parsed_url['host'] : ''; |
53 | - $port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : ''; |
|
53 | + $port = isset($parsed_url['port']) ? ':'.$parsed_url['port'] : ''; |
|
54 | 54 | $gitlabUrl = $scheme.$host.$port; |
55 | 55 | } |
56 | 56 | return rtrim($gitlabUrl, '/'); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace TheCodingMachine\WashingMachine\Clover; |
5 | 5 |
@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | $buildService->dumpArtifactFromBranch($projectName, $targetBranch, $tmpFile); |
144 | 144 | $zipFile = new \ZipArchive(); |
145 | - if ($zipFile->open($tmpFile)!==true) { |
|
145 | + if ($zipFile->open($tmpFile) !== true) { |
|
146 | 146 | throw new \RuntimeException('Invalid ZIP archive '.$tmpFile); |
147 | 147 | } |
148 | 148 | $cloverFileString = $zipFile->getFromName($cloverPath); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace TheCodingMachine\WashingMachine\Clover; |
5 | 5 |