@@ -13,5 +13,8 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | interface CommandInterface |
| 15 | 15 | { |
| 16 | + /** |
|
| 17 | + * @return void |
|
| 18 | + */ |
|
| 16 | 19 | public function execute(); |
| 17 | 20 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | - * @param $key |
|
| 58 | + * @param string $key |
|
| 59 | 59 | * @throws \Doctrine\ORM\OptimisticLockException |
| 60 | 60 | * @throws \Exception |
| 61 | 61 | */ |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | - * @param $key |
|
| 81 | - * @param $newPassword |
|
| 80 | + * @param string $key |
|
| 81 | + * @param string $newPassword |
|
| 82 | 82 | * @throws \Doctrine\ORM\OptimisticLockException |
| 83 | 83 | */ |
| 84 | 84 | public function regeneratePassword($key, $newPassword) |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * @param $className |
| 11 | - * @param $method |
|
| 11 | + * @param string $method |
|
| 12 | 12 | * @param $annotationName |
| 13 | 13 | * @throws \ReflectionException |
| 14 | 14 | * @return array|boolean |
@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | return $this->getAnnotationFromArray($comments, $annotationName); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param \PHPUnit\Framework\MockObject\MockObject $httpRequest |
|
| 26 | + */ |
|
| 24 | 27 | public function validateMethods(array $allowedMethods, $httpRequest) |
| 25 | 28 | { |
| 26 | 29 | if (count($allowedMethods) < 1) { |
@@ -44,6 +47,9 @@ discard block |
||
| 44 | 47 | return []; |
| 45 | 48 | } |
| 46 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $string |
|
| 52 | + */ |
|
| 47 | 53 | private function getArrayFromComment($string) |
| 48 | 54 | { |
| 49 | 55 | $filteredString = str_replace(array('(', ')', '"', ','), '', $string); |
@@ -93,6 +93,9 @@ discard block |
||
| 93 | 93 | $forgotPassService->regeneratePassword('asd', 'newPass'); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param ForgotPassword $forgotPass |
|
| 98 | + */ |
|
| 96 | 99 | private function getMockedRepository($forgotPass) |
| 97 | 100 | { |
| 98 | 101 | $repository = $this->createMock(EntityRepository::class); |
@@ -103,6 +106,9 @@ discard block |
||
| 103 | 106 | return $repository; |
| 104 | 107 | } |
| 105 | 108 | |
| 109 | + /** |
|
| 110 | + * @param PHPUnit\Framework\MockObject\MockObject $repo |
|
| 111 | + */ |
|
| 106 | 112 | private function getMockedEntityManager($repo, $additionalChecks = []) |
| 107 | 113 | { |
| 108 | 114 | $gvEntityManager = $this->createMock(GvEntityManager::class); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | class CSRFFactory |
| 6 | 6 | { |
| 7 | 7 | /** |
| 8 | - * @return string |
|
| 8 | + * @return CSRFToken |
|
| 9 | 9 | * @throws \Exception |
| 10 | 10 | */ |
| 11 | 11 | public function createToken(): CSRFToken |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | private $token; |
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | - * @return mixed |
|
| 11 | + * @return string |
|
| 12 | 12 | */ |
| 13 | 13 | public function getTokenValue() |
| 14 | 14 | { |
@@ -13,7 +13,6 @@ discard block |
||
| 13 | 13 | /** |
| 14 | 14 | * PoolableClientCache constructor. |
| 15 | 15 | * @param int $bufferSize |
| 16 | - * @param string $clientClassName |
|
| 17 | 16 | * @param array $config |
| 18 | 17 | * @throws \ReflectionException |
| 19 | 18 | */ |
@@ -43,7 +42,7 @@ discard block |
||
| 43 | 42 | |
| 44 | 43 | |
| 45 | 44 | /** |
| 46 | - * @param $bufferSize |
|
| 45 | + * @param integer $bufferSize |
|
| 47 | 46 | * @param $clientClass |
| 48 | 47 | * @param $config |
| 49 | 48 | * @throws \ReflectionException |
@@ -250,7 +250,7 @@ |
||
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | /** |
| 253 | - * @param $client |
|
| 253 | + * @param Client $client |
|
| 254 | 254 | */ |
| 255 | 255 | private function executeBusInstructions($client) |
| 256 | 256 | { |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | ); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $key |
|
| 34 | + */ |
|
| 32 | 35 | public function getConfigItem($key) |
| 33 | 36 | { |
| 34 | 37 | return $this->config[$key]; |