@@ -259,7 +259,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 302 | 302 | $pipeline = $buildService->getLatestPipelineFromCommitId($projectName, $commitId); |
| 303 | 303 | $buildService->dumpArtifact($projectName, $pipeline['sha'], $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); |