@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * For the full copyright and license information, please view the LICENSE |
7 | 7 | * file that was distributed with this source code. |
8 | 8 | */ |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace App\Models; |
12 | 12 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $avatar = self::DEFAULT_AVATAR_NAME; |
61 | 61 | } |
62 | 62 | |
63 | - return self::DEFAULT_AVATAR_PATH . $avatar; |
|
63 | + return self::DEFAULT_AVATAR_PATH.$avatar; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\GraphQL\Kernel; |
10 | 10 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | $validator = $factory->make($args, $rules, $this->messages()); |
32 | 32 | |
33 | - $validator->after(function ($validator) use ($args) { |
|
33 | + $validator->after(function($validator) use ($args) { |
|
34 | 34 | $this->afterValidation($validator, $args); |
35 | 35 | }); |
36 | 36 | |
@@ -57,14 +57,14 @@ discard block |
||
57 | 57 | * @param array $args |
58 | 58 | * @return \Generator|null |
59 | 59 | */ |
60 | - public function validate(Validator $validator, array $args = []): ?\Generator |
|
60 | + public function validate(Validator $validator, array $args = []): ? \Generator |
|
61 | 61 | { |
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @return array |
66 | 66 | */ |
67 | - public function messages(): array |
|
67 | + public function messages() : array |
|
68 | 68 | { |
69 | 69 | return []; |
70 | 70 | } |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\Services; |
10 | 10 | |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | * @param string $password |
51 | 51 | * @return Authenticatable |
52 | 52 | */ |
53 | - public function attemptFromEmailAndPassword(string $email, string $password): ?Authenticatable |
|
53 | + public function attemptFromEmailAndPassword(string $email, string $password): ? Authenticatable |
|
54 | 54 | { |
55 | - if (! $this->guard->validate(['email' => $email, 'password' => $password])) { |
|
55 | + if (!$this->guard->validate(['email' => $email, 'password' => $password])) { |
|
56 | 56 | return; |
57 | 57 | } |
58 | 58 | |
@@ -64,9 +64,9 @@ discard block |
||
64 | 64 | * @param string $password |
65 | 65 | * @return Authenticatable |
66 | 66 | */ |
67 | - public function resolveFromIdAndPassword(int $id, string $password): ?Authenticatable |
|
67 | + public function resolveFromIdAndPassword(int $id, string $password): ? Authenticatable |
|
68 | 68 | { |
69 | - if (! $this->guard->validate(['id' => $id, 'password' => $password])) { |
|
69 | + if (!$this->guard->validate(['id' => $id, 'password' => $password])) { |
|
70 | 70 | return; |
71 | 71 | } |
72 | 72 | |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | throw new UnprocessableEntityHttpException('Invalid remember token'); |
182 | 182 | } |
183 | 183 | |
184 | - if (! $user) { |
|
184 | + if (!$user) { |
|
185 | 185 | throw new UnprocessableEntityHttpException('Invalid user credentials.'); |
186 | 186 | } |
187 | 187 |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\Models\DocsPage; |
10 | 10 | |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | { |
36 | 36 | return DocsPage::query() |
37 | 37 | ->with('docs') |
38 | - ->where('content_source', 'LIKE', '%' . $query . '%') |
|
38 | + ->where('content_source', 'LIKE', '%'.$query.'%') |
|
39 | 39 | ->take($limit) |
40 | 40 | ->get(['docs_id', 'slug', 'title', 'content_rendered']) |
41 | - ->map(function (DocsPage $model) { |
|
41 | + ->map(function(DocsPage $model) { |
|
42 | 42 | return $this->transform($model); |
43 | 43 | }); |
44 | 44 | } |