Completed
Push — 2.0 ( e8af7e...491a66 )
by David
15s
created
src/Gitlab/BuildService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param string $commitId
83 83
      * @param string|null $excludePipelineId A pipeline ID we want to exclude (we don't want to get the current pipeline ID).
84 84
      * @param int $numIter
85
-     * @return array
85
+     * @return string
86 86
      * @throws BuildNotFoundException
87 87
      */
88 88
     public function getLatestPipelineFromCommitId(string $projectName, string $commitId, string $excludePipelineId = null, int $numIter = 0) : array
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * @param string $projectName
117 117
      * @param string $branchName
118 118
      * @param string $excludePipelineId A pipeline ID we want to exclude (we don't want to get the current pipeline ID).
119
-     * @return array
119
+     * @return string
120 120
      * @throws BuildNotFoundException
121 121
      */
122 122
     public function getLatestPipelineFromBranch(string $projectName, string $branchName, string $excludePipelineId) : array
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
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
         $commit = $project->commit($commitRef);
271 271
 
272
-        return $commit->committer ? $commit->committer->id :  null;
272
+        return $commit->committer ? $commit->committer->id : null;
273 273
     }
274 274
 
275 275
     /**
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 
289 289
             $buildService->dumpArtifactFromBranch($projectName, $targetBranch, $buildName, $jobStage, $tmpFile, $excludePipelineId);
290 290
             $zipFile = new \ZipArchive();
291
-            if ($zipFile->open($tmpFile)!==true) {
291
+            if ($zipFile->open($tmpFile) !== true) {
292 292
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
293 293
             }
294 294
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
             $pipeline = $buildService->getLatestPipelineFromCommitId($projectName, $commitId, $excludePipelineId);
314 314
             $buildService->dumpArtifact($projectName, $pipeline['id'], $buildName, $jobStage, $tmpFile);
315 315
             $zipFile = new \ZipArchive();
316
-            if ($zipFile->open($tmpFile)!==true) {
316
+            if ($zipFile->open($tmpFile) !== true) {
317 317
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
318 318
             }
319 319
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
Please login to merge, or discard this patch.