@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @param string $commitId |
| 83 | 83 | * @param string|null $excludePipelineId A pipeline ID we want to exclude (we don't want to get the current pipeline ID). |
| 84 | 84 | * @param int $numIter |
| 85 | - * @return array |
|
| 85 | + * @return string |
|
| 86 | 86 | * @throws BuildNotFoundException |
| 87 | 87 | */ |
| 88 | 88 | public function getLatestPipelineFromCommitId(string $projectName, string $commitId, string $excludePipelineId = null, int $numIter = 0) : array |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * @param string $projectName |
| 117 | 117 | * @param string $branchName |
| 118 | 118 | * @param string $excludePipelineId A pipeline ID we want to exclude (we don't want to get the current pipeline ID). |
| 119 | - * @return array |
|
| 119 | + * @return string |
|
| 120 | 120 | * @throws BuildNotFoundException |
| 121 | 121 | */ |
| 122 | 122 | public function getLatestPipelineFromBranch(string $projectName, string $branchName, string $excludePipelineId) : array |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace TheCodingMachine\WashingMachine\Gitlab; |
| 3 | 3 | use Gitlab\Client; |
| 4 | 4 | use Gitlab\ResultPager; |
| 5 | -use GuzzleHttp\Psr7\Stream; |
|
| 6 | 5 | use GuzzleHttp\Psr7\StreamWrapper; |
| 7 | 6 | use Psr\Log\LoggerInterface; |
| 8 | 7 | use Symfony\Component\Filesystem\Filesystem; |