@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Http\Client\Common\HttpMethodsClient; |
6 | 6 | use Http\Client\Exception as HttpClientException; |
7 | -use Psr\Http\Message\RequestInterface; |
|
8 | 7 | use Psr\Http\Message\ResponseInterface; |
9 | 8 | use TonicForHealth\ReportAggregator\Entity\Result; |
10 | 9 | use TonicForHealth\ReportAggregator\Entity\TestCase; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @param $normalizeTitle |
|
105 | + * @param string $normalizeTitle |
|
106 | 106 | * |
107 | 107 | * @return \Closure |
108 | 108 | */ |
@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | }; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param string $resourcePath |
|
118 | + */ |
|
116 | 119 | protected function getResourceUrl($resourcePath) |
117 | 120 | { |
118 | 121 | return $this->getApiUrl().$resourcePath; |
@@ -171,7 +174,7 @@ discard block |
||
171 | 174 | } |
172 | 175 | |
173 | 176 | /** |
174 | - * @param $testRunId |
|
177 | + * @param integer $testRunId |
|
175 | 178 | * |
176 | 179 | * @return array |
177 | 180 | * |
@@ -197,7 +200,7 @@ discard block |
||
197 | 200 | |
198 | 201 | /** |
199 | 202 | * @param TestRailRunReport $testRailReport |
200 | - * @param $testRunId |
|
203 | + * @param integer $testRunId |
|
201 | 204 | * |
202 | 205 | * @return ResponseInterface |
203 | 206 | * |
@@ -226,7 +229,7 @@ discard block |
||
226 | 229 | |
227 | 230 | /** |
228 | 231 | * @param ResponseInterface $request |
229 | - * @param $apiUrlResource |
|
232 | + * @param string $apiUrlResource |
|
230 | 233 | * |
231 | 234 | * @throws TestRailSyncServerException |
232 | 235 | */ |
@@ -108,7 +108,7 @@ |
||
108 | 108 | */ |
109 | 109 | protected function findByNormalizeTitleCallback($normalizeTitle) |
110 | 110 | { |
111 | - return function (TestCase $case) use ($normalizeTitle) { |
|
111 | + return function(TestCase $case) use ($normalizeTitle) { |
|
112 | 112 | return static::normalizeStrToCaseIdent($case->getTitle()) === $normalizeTitle; |
113 | 113 | }; |
114 | 114 | } |