Completed
Push — 2.0 ( 70b5fd...92ff60 )
by David
01:49
created
src/Gitlab/BuildService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param string $projectName
72 72
      * @param string $commitId
73 73
      * @param int $numIter
74
-     * @return array
74
+     * @return string
75 75
      * @throws BuildNotFoundException
76 76
      */
77 77
     public function getLatestPipelineFromCommitId(string $projectName, string $commitId, int $numIter = 0) : array
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * @param string $projectName
110 110
      * @param string $branchName
111
-     * @return array
111
+     * @return string
112 112
      * @throws BuildNotFoundException
113 113
      */
114 114
     public function getLatestPipelineFromBranch(string $projectName, string $branchName) : 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
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
         $commit = $project->commit($commitRef);
245 245
 
246
-        return $commit->committer ? $commit->committer->id :  null;
246
+        return $commit->committer ? $commit->committer->id : null;
247 247
     }
248 248
 
249 249
     /**
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
             $buildService->dumpArtifactFromBranch($projectName, $targetBranch, $jobStage, $tmpFile);
263 263
             $zipFile = new \ZipArchive();
264
-            if ($zipFile->open($tmpFile)!==true) {
264
+            if ($zipFile->open($tmpFile) !== true) {
265 265
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
266 266
             }
267 267
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             $build = $buildService->getLatestPipelineFromCommitId($projectName, $commitId);
286 286
             $buildService->dumpArtifact($projectName, $build['id'], $jobStage, $tmpFile);
287 287
             $zipFile = new \ZipArchive();
288
-            if ($zipFile->open($tmpFile)!==true) {
288
+            if ($zipFile->open($tmpFile) !== true) {
289 289
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
290 290
             }
291 291
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
Please login to merge, or discard this patch.