Completed
Push — 2.0 ( 4e07f8...e8af7e )
by David
14s
created
src/Commands/RunCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
         $commit = $project->commit($commitRef);
266 266
 
267
-        return $commit->committer ? $commit->committer->id :  null;
267
+        return $commit->committer ? $commit->committer->id : null;
268 268
     }
269 269
 
270 270
     /**
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 
283 283
             $buildService->dumpArtifactFromBranch($projectName, $targetBranch, $buildName, $jobStage, $tmpFile);
284 284
             $zipFile = new \ZipArchive();
285
-            if ($zipFile->open($tmpFile)!==true) {
285
+            if ($zipFile->open($tmpFile) !== true) {
286 286
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
287 287
             }
288 288
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
             $pipeline = $buildService->getLatestPipelineFromCommitId($projectName, $commitId);
308 308
             $buildService->dumpArtifact($projectName, $pipeline['id'], $buildName, $jobStage, $tmpFile);
309 309
             $zipFile = new \ZipArchive();
310
-            if ($zipFile->open($tmpFile)!==true) {
310
+            if ($zipFile->open($tmpFile) !== true) {
311 311
                 throw new \RuntimeException('Invalid ZIP archive '.$tmpFile);
312 312
             }
313 313
             return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
Please login to merge, or discard this patch.