Completed
Push — 2.0 ( fe8057...a5342d )
by Kirill
06:55
created
server/app/Exceptions/Handler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace App\Exceptions;
11 11
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $exception = $this->prepareException($exception);
68 68
 
69
-        $htmlAccepted = ! $request->ajax() && $request->acceptsHtml();
69
+        $htmlAccepted = !$request->ajax() && $request->acceptsHtml();
70 70
 
71 71
         if ($htmlAccepted && config('app.debug')) {
72 72
             $whoops = new Run();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             return $whoops->handleException($exception);
76 76
         }
77 77
 
78
-        if (! $this->isHttpException($exception)) {
78
+        if (!$this->isHttpException($exception)) {
79 79
             $exception = new HttpException(500, $exception->getMessage(), $exception);
80 80
         }
81 81
 
Please login to merge, or discard this patch.
server/app/Http/Middleware/ApiAuthenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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\Http\Middleware;
12 12
 
Please login to merge, or discard this patch.
server/app/GraphQL/Mutations/AbstractMutation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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\Mutations;
10 10
 
Please login to merge, or discard this patch.
server/app/GraphQL/Types/AuthUserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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\GraphQL\Types;
12 12
 
Please login to merge, or discard this patch.
server/app/GraphQL/Serializers/AuthUserSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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\GraphQL\Serializers;
12 12
 
Please login to merge, or discard this patch.
server/app/GraphQL/Queries/AuthQuery.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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\Queries;
10 10
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         $user = $this->tokenAuth->attemptFromEmailAndPassword($email, $password);
108 108
 
109
-        if (! $user) {
109
+        if (!$user) {
110 110
             throw new AccessDeniedHttpException('User password are not correct');
111 111
         }
112 112
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use App\Services\TokenAuth;
12 12
 use Illuminate\Support\Arr;
13 13
 use GraphQL\Type\Definition\Type;
14
-use App\GraphQL\Types\AuthUserType;
15 14
 use Illuminate\Contracts\Auth\Guard;
16 15
 use GraphQL\Type\Definition\ObjectType;
17 16
 use Illuminate\Contracts\Auth\StatefulGuard;
Please login to merge, or discard this patch.
server/app/GraphQL/Mutations/RegistrationMutation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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\Mutations;
10 10
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use App\Models\User;
12 12
 use Illuminate\Support\Arr;
13 13
 use GraphQL\Type\Definition\Type;
14
-use App\GraphQL\Types\AuthUserType;
15 14
 use App\GraphQL\Serializers\UserSerializer;
16 15
 
17 16
 /**
Please login to merge, or discard this patch.
server/app/GraphQL/Kernel/HasValidation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
server/app/Models/DocsPage/DocsPagesSearchRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.