Completed
Push — 2.0 ( dff28c...eae3da )
by David
05:00
created
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.