@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @param $className |
| 13 | - * @param $method |
|
| 13 | + * @param string $method |
|
| 14 | 14 | * @param $annotationName |
| 15 | 15 | * @throws ReflectionException |
| 16 | 16 | * @return array|boolean |
@@ -23,6 +23,9 @@ discard block |
||
| 23 | 23 | return $this->getAnnotationFromArray($comments, $annotationName); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param \PHPUnit\Framework\MockObject\MockObject $httpRequest |
|
| 28 | + */ |
|
| 26 | 29 | public function validateMethods(array $allowedMethods, $httpRequest): bool |
| 27 | 30 | { |
| 28 | 31 | if (count($allowedMethods) < 1) { |
@@ -46,6 +49,9 @@ discard block |
||
| 46 | 49 | return []; |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $string |
|
| 54 | + */ |
|
| 49 | 55 | private function getArrayFromComment($string) |
| 50 | 56 | { |
| 51 | 57 | $filteredString = str_replace(array('(', ')', '"', ','), '', $string); |