@@ -54,7 +54,7 @@ |
||
54 | 54 | * Set the dependencies. |
55 | 55 | * |
56 | 56 | * @author Andrea Marco Sartori |
57 | - * @param Illuminate\Contracts\Bus\Dispatcher $bus |
|
57 | + * @param Dispatcher $bus |
|
58 | 58 | * @return void |
59 | 59 | */ |
60 | 60 | public function __construct(Dispatcher $bus) |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Execute the job. |
25 | 25 | * |
26 | - * @return void |
|
26 | + * @return string |
|
27 | 27 | */ |
28 | 28 | public function handle() |
29 | 29 | { |
@@ -20,8 +20,8 @@ |
||
20 | 20 | * Set the dependencies. |
21 | 21 | * |
22 | 22 | * @author Andrea Marco Sartori |
23 | - * @param Illuminate\Contracts\Container\Container $container |
|
24 | - * @param Illuminate\Contracts\Events\Dispatcher $dispatcher |
|
23 | + * @param Container $container |
|
24 | + * @param Dispatcher $dispatcher |
|
25 | 25 | * @return void |
26 | 26 | */ |
27 | 27 | public function __construct(Container $container, Dispatcher $dispatcher) |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * Set the dependencies. |
21 | 21 | * |
22 | 22 | * @author Andrea Marco Sartori |
23 | - * @param Illuminate\Contracts\Container\Container $container |
|
23 | + * @param Container $container |
|
24 | 24 | * @return void |
25 | 25 | */ |
26 | 26 | public function __construct(Container $container) |
@@ -69,9 +69,9 @@ |
||
69 | 69 | */ |
70 | 70 | private function callIfExistsAndEnabled($method, array $parameters = []) |
71 | 71 | { |
72 | - if( ! $this->isEnabled()) return; |
|
72 | + if (!$this->isEnabled()) return; |
|
73 | 73 | |
74 | - if(method_exists($this, $method) && $this->{"{$method}IsEnabled"}()) |
|
74 | + if (method_exists($this, $method) && $this->{"{$method}IsEnabled"}()) |
|
75 | 75 | { |
76 | 76 | $this->container->call([$this, $method], $parameters); |
77 | 77 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | /** |
10 | 10 | * Run before the job is handled. |
11 | 11 | * |
12 | - * @param Cerbero\Auth\Services\Throttling\ThrottlerInterface $throttler |
|
12 | + * @param ThrottlerInterface $throttler |
|
13 | 13 | * @param Cerbero\Auth\Jobs\LoginJob $job |
14 | 14 | * @return mixed |
15 | 15 | */ |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Run after the handled job. |
48 | 48 | * |
49 | - * @param Cerbero\Auth\Services\Throttling\ThrottlerInterface $throttler |
|
49 | + * @param ThrottlerInterface $throttler |
|
50 | 50 | * @param mixed $handled |
51 | 51 | * @param Cerbero\Auth\Jobs\LoginJob $job |
52 | 52 | * @return mixed |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | $throttler->incrementAttempts(); |
21 | 21 | |
22 | - if($throttler->tooManyAttempts() || $throttler->lockedOut()) |
|
22 | + if ($throttler->tooManyAttempts() || $throttler->lockedOut()) |
|
23 | 23 | { |
24 | 24 | $throttler->lockOut(); |
25 | 25 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * Run after the handled job. |
10 | 10 | * |
11 | - * @param Illuminate\Contracts\Auth\Guard $auth |
|
11 | + * @param Guard $auth |
|
12 | 12 | * @param mixed $handled |
13 | 13 | * @param Cerbero\Auth\Jobs\LoginJob $job |
14 | 14 | * @return mixed |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * Run after the handled job. |
40 | 40 | * |
41 | - * @param Illuminate\Contracts\Mail\Mailer $mailer |
|
41 | + * @param Mailer $mailer |
|
42 | 42 | * @param mixed $handled |
43 | 43 | * @param Cerbero\Auth\Jobs\RegisterJob $job |
44 | 44 | * @return mixed |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * @author Andrea Marco Sartori |
74 | 74 | * @param User $user |
75 | 75 | * @param string $password |
76 | - * @return boolean |
|
76 | + * @return boolean|null |
|
77 | 77 | */ |
78 | 78 | public function resetPassword($user, $password) |
79 | 79 | { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * Set the dependencies. |
35 | 35 | * |
36 | 36 | * @author Andrea Marco Sartori |
37 | - * @param Illuminate\Contracts\Cache\Repository $cache |
|
37 | + * @param Cache $cache |
|
38 | 38 | * @return void |
39 | 39 | */ |
40 | 40 | public function __construct(Cache $cache) |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * Set univocal source where attempts come from. |
47 | 47 | * |
48 | 48 | * @author Andrea Marco Sartori |
49 | - * @return boolean |
|
49 | + * @return boolean|null |
|
50 | 50 | */ |
51 | 51 | public function setSource($source) |
52 | 52 | { |