@@ -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 |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param string $projectName |
| 69 | 69 | * @param string $commitId |
| 70 | 70 | * @param int $numIter |
| 71 | - * @return array |
|
| 71 | + * @return string |
|
| 72 | 72 | * @throws BuildNotFoundException |
| 73 | 73 | */ |
| 74 | 74 | public function getLatestBuildFromCommitId(string $projectName, string $commitId, int $numIter = 0) : array |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | /** |
| 102 | 102 | * @param string $projectName |
| 103 | 103 | * @param string $branchName |
| 104 | - * @return array |
|
| 104 | + * @return string |
|
| 105 | 105 | * @throws BuildNotFoundException |
| 106 | 106 | */ |
| 107 | 107 | public function getLatestBuildFromBranch(string $projectName, string $branchName) : array |
@@ -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) |