@@ -13,5 +13,8 @@ |
||
13 | 13 | */ |
14 | 14 | interface CommandInterface |
15 | 15 | { |
16 | + /** |
|
17 | + * @return void |
|
18 | + */ |
|
16 | 19 | public function execute(); |
17 | 20 | } |
@@ -42,6 +42,10 @@ |
||
42 | 42 | return boolval($this->devMode); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $username |
|
47 | + * @param string $email |
|
48 | + */ |
|
45 | 49 | public function __construct($username, $email, $devMode = false) |
46 | 50 | { |
47 | 51 | $this->username = $username; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @return mixed |
|
51 | + * @return string |
|
52 | 52 | */ |
53 | 53 | public function getEmail() |
54 | 54 | { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | } |
155 | 155 | |
156 | 156 | /** |
157 | - * @return mixed |
|
157 | + * @return boolean |
|
158 | 158 | */ |
159 | 159 | public function getEnabled() |
160 | 160 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param mixed $enabled |
|
165 | + * @param boolean $enabled |
|
166 | 166 | */ |
167 | 167 | public function setEnabled($enabled): void |
168 | 168 | { |
@@ -1,7 +1,5 @@ |
||
1 | 1 | <?php namespace Gvera\Models; |
2 | 2 | |
3 | -use Gvera\Services\UserService; |
|
4 | - |
|
5 | 3 | /** |
6 | 4 | * @Entity |
7 | 5 | * @Table(name="users") |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Gvera\Exceptions\EmptyValidationStrategiesException; |
6 | 6 | use Gvera\Exceptions\InvalidValidationMethodException; |
7 | 7 | use Gvera\Helpers\validation\IsNotEmptyValidationStrategy; |
8 | -use Gvera\Helpers\validation\ValidationService; |
|
9 | 8 | |
10 | 9 | class Examples extends ControllerValidationAbstract |
11 | 10 | { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * TwigService constructor. |
18 | - * @param Config $config |
|
18 | + * @param \PHPUnit\Framework\MockObject\MockObject $config |
|
19 | 19 | */ |
20 | 20 | public function __construct(Config $config) |
21 | 21 | { |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
26 | - * @param $controllerName |
|
27 | - * @param $controllerMethod |
|
28 | - * @param null $path |
|
26 | + * @param string $controllerName |
|
27 | + * @param string $controllerMethod |
|
28 | + * @param string $path |
|
29 | 29 | * @return bool |
30 | 30 | */ |
31 | 31 | public function needsTwig($controllerName, $controllerMethod, $path = null): bool |
@@ -4,7 +4,6 @@ |
||
4 | 4 | use Doctrine\Common\Cache\ApcCache; |
5 | 5 | use Doctrine\Common\Cache\ArrayCache; |
6 | 6 | use Doctrine\Common\EventManager; |
7 | -use Doctrine\Common\Cache\RedisCache; |
|
8 | 7 | use Doctrine\DBAL\DBALException; |
9 | 8 | use Doctrine\DBAL\DriverManager; |
10 | 9 | use Doctrine\ORM\Configuration; |