|
@@ -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); |