@@ -243,7 +243,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |