Completed
Push — 2.0 ( eae3da...bfa80b )
by David
06:38 queued 04:54
created
src/Clover/CloverFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\WashingMachine\Clover;
5 5
 
Please login to merge, or discard this patch.
src/Clover/EmptyCloverFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\WashingMachine\Clover;
5 5
 
Please login to merge, or discard this patch.
src/Clover/Crap4JFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\WashingMachine\Clover;
5 5
 
Please login to merge, or discard this patch.
src/Gitlab/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         $url = $this->getArtifactFileUrl($file->getFilename(), $gitlabUrl, $projectName, $buildId);
126 126
 
127 127
         $this->msg .= sprintf("\n<strong>[%s](%s)</strong>\n", $file->getFilename(), $url);
128
-        $this->msg .= sprintf("```\n%s%s```\n", $text, $isComplete?'':"... (file truncated)\n");
128
+        $this->msg .= sprintf("```\n%s%s```\n", $text, $isComplete ? '' : "... (file truncated)\n");
129 129
 
130 130
         if (!$isComplete) {
131 131
             $this->msg .= sprintf("[Download complete file](%s)\n", $url);
Please login to merge, or discard this patch.
src/Commands/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
                 throw new \RuntimeException('Could not find the Gitlab URL in the "CI_REPOSITORY_URL" environment variable (usually set by Gitlab CI). Either set this environment variable or pass the URL via the --gitlab-url command line option.');
54 54
             }
55 55
             $parsed_url = parse_url($ciProjectUrl);
56
-            $scheme   = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
56
+            $scheme   = isset($parsed_url['scheme']) ? $parsed_url['scheme'].'://' : '';
57 57
             $host     = isset($parsed_url['host']) ? $parsed_url['host'] : '';
58
-            $port     = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
58
+            $port     = isset($parsed_url['port']) ? ':'.$parsed_url['port'] : '';
59 59
             $gitlabUrl = $scheme.$host.$port;
60 60
         }
61 61
         return rtrim($gitlabUrl, '/');
Please login to merge, or discard this patch.
src/Gitlab/BuildService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         return $this->pipelines[$projectName];
77 77
     }
78 78
 
79
-    public function findPipelineByCommit(string $projectName, string $commitId) : ?array
79
+    public function findPipelineByCommit(string $projectName, string $commitId) : ? array
80 80
     {
81 81
         $pipelines = $this->getPipelines($projectName);
82 82
 
Please login to merge, or discard this patch.
src/Git/GitRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     public function getMergeBase(string $commit1, string $commit2) : string
12 12
     {
13 13
         try {
14
-            $this->extractFromCommand('git merge-base --is-ancestor ' . escapeshellarg($commit1) . ' ' . escapeshellarg($commit2));
14
+            $this->extractFromCommand('git merge-base --is-ancestor '.escapeshellarg($commit1).' '.escapeshellarg($commit2));
15 15
         } catch (GitException $e) {
16 16
             // The command will return exit code 1 if $commit1 is an ancestor of $commit2
17 17
             // Exit code one triggers an exception. We catch it.
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
         }
20 20
 
21 21
 
22
-        $results = $this->extractFromCommand('git merge-base ' . escapeshellarg($commit1). ' '. escapeshellarg($commit2));
22
+        $results = $this->extractFromCommand('git merge-base '.escapeshellarg($commit1).' '.escapeshellarg($commit2));
23 23
 
24 24
         return $results[0];
25 25
     }
26 26
 
27 27
     public function getLatestCommitForBranch(string $branch) : string
28 28
     {
29
-        $results = $this->extractFromCommand('git log -n 1 --pretty=format:"%H" ' . escapeshellarg($branch));
29
+        $results = $this->extractFromCommand('git log -n 1 --pretty=format:"%H" '.escapeshellarg($branch));
30 30
 
31 31
         return $results[0];
32 32
     }
Please login to merge, or discard this patch.
src/Commands/RunCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
         $commit = $project->commit($commitRef);
261 261
 
262
-        return $commit->committer ? $commit->committer->id :  null;
262
+        return $commit->committer ? $commit->committer->id : null;
263 263
     }
264 264
 
265 265
     /**
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
             $buildService->dumpArtifactFromBranch($projectName, $targetBranch, $jobStage, $tmpFile);
279 279
             $zipFile = new \ZipArchive();
280
-            if ($zipFile->open($tmpFile)!==true) {
280
+            if ($zipFile->open($tmpFile) !== true) {
281 281
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
282 282
             }
283 283
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
             $pipeline = $buildService->getLatestPipelineFromCommitId($projectName, $commitId);
303 303
             $buildService->dumpArtifact($projectName, $pipeline['id'], $jobStage, $tmpFile);
304 304
             $zipFile = new \ZipArchive();
305
-            if ($zipFile->open($tmpFile)!==true) {
305
+            if ($zipFile->open($tmpFile) !== true) {
306 306
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
307 307
             }
308 308
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
Please login to merge, or discard this patch.