@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | // Now, let's order the differences by crap order. |
62 | 62 | usort($differences, function(Difference $d1, Difference $d2) { |
63 | - return $d2->getCrapScore() <=> $d1->getCrapScore(); |
|
63 | + return $d2->getCrapScore() <=> $d1->getCrapScore(); |
|
64 | 64 | }); |
65 | 65 | |
66 | 66 | // Now, let's limit the number of returned differences |
@@ -235,7 +235,7 @@ |
||
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) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param string $projectName |
72 | 72 | * @param string $commitId |
73 | 73 | * @param int $numIter |
74 | - * @return array |
|
74 | + * @return string |
|
75 | 75 | * @throws BuildNotFoundException |
76 | 76 | */ |
77 | 77 | public function getLatestPipelineFromCommitId(string $projectName, string $commitId, int $numIter = 0) : array |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * @param string $projectName |
110 | 110 | * @param string $branchName |
111 | - * @return array |
|
111 | + * @return string |
|
112 | 112 | * @throws BuildNotFoundException |
113 | 113 | */ |
114 | 114 | public function getLatestPipelineFromBranch(string $projectName, string $branchName) : array |