Completed
Push — 2.0 ( 17ce96 )
by David
07:29
created
src/Commands/RunCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
      * Returns the user id of the committer.
236 236
      *
237 237
      * @param Project $project
238
-     * @param $commitRef
238
+     * @param string $commitRef
239 239
      * @return int|null
240 240
      */
241 241
     private function getCommiterId(Project $project, $commitRef)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
285 285
             $build = $buildService->getLatestBuildFromCommitId($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);
Please login to merge, or discard this patch.
src/Commands/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
                 throw new \RuntimeException('Could not find the Gitlab URL in the "CI_REPOSITORY_URL" environment variable (usually set by Gitlab CI). Either set this environment variable or pass the URL via the --gitlab-url command line option.');
54 54
             }
55 55
             $parsed_url = parse_url($ciProjectUrl);
56
-            $scheme   = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
56
+            $scheme   = isset($parsed_url['scheme']) ? $parsed_url['scheme'].'://' : '';
57 57
             $host     = isset($parsed_url['host']) ? $parsed_url['host'] : '';
58
-            $port     = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
58
+            $port     = isset($parsed_url['port']) ? ':'.$parsed_url['port'] : '';
59 59
             $gitlabUrl = $scheme.$host.$port;
60 60
         }
61 61
         return rtrim($gitlabUrl, '/');
Please login to merge, or discard this patch.