Completed
Push — 2.0 ( 690f5b...db6f10 )
by Kirill
05:50
created
server/app/Services/TokenAuth.php 1 patch
Spacing   +6 added lines, -6 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\Services;
10 10
 
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
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 null;
57 57
         }
58 58
 
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
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 null;
71 71
         }
72 72
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
server/app/GraphQL/Queries/DocsQuery.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\Queries;
10 10
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param array $args
59 59
      * @return Builder|null
60 60
      */
61
-    private function checkProject(Builder $query, array $args): ?Builder
61
+    private function checkProject(Builder $query, array $args): ? Builder
62 62
     {
63 63
         return $this->whenExists($args, 'project', function(string $project) use ($query) {
64 64
             return $query->where('slug', $project);
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
      * @param array $args
71 71
      * @return Builder
72 72
      */
73
-    private function checkVersion(Builder $query, array $args): ?Builder
73
+    private function checkVersion(Builder $query, array $args): ? Builder
74 74
     {
75
-        return $this->whenExists($args, 'version', function (string $version) use ($query) {
75
+        return $this->whenExists($args, 'version', function(string $version) use ($query) {
76 76
             if ($version === 'latest') {
77 77
                 return $query->orderBy('version', 'desc')
78 78
                     ->take(1);
Please login to merge, or discard this patch.
server/app/GraphQL/Types/AbstractType.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/RawSerializer.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/PaginatorQuery.php 1 patch
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
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $paginator = PaginatorConfiguration::find($args['query']);
47 47
         if ($paginator === null) {
48
-            throw new NotFoundHttpException('No info about ' . $args['query'] . ' query');
48
+            throw new NotFoundHttpException('No info about '.$args['query'].' query');
49 49
         }
50 50
 
51 51
         return [
Please login to merge, or discard this patch.
server/app/GraphQL/Types/PaginatorType.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/Queries/Support/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\Queries\Support;
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/GraphQL/Queries/ArticlesQuery.php 1 patch
Spacing   +2 added lines, -2 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\GraphQL\Queries;
11 11
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $query = $this->queryFor(Article::class, $args);
51 51
 
52
-        $this->whenExists($args, 'slug', function (array $slug) use ($query) {
52
+        $this->whenExists($args, 'slug', function(array $slug) use ($query) {
53 53
             return $query->whereIn('slug', $slug);
54 54
         });
55 55
 
Please login to merge, or discard this patch.
server/app/GraphQL/Types/DocsType.php 1 patch
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\Types;
10 10
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         $query = $this->extendQuery($query, $args);
92 92
 
93
-        $this->whenExists($args, 'slug', function (string $slug) use ($query) {
93
+        $this->whenExists($args, 'slug', function(string $slug) use ($query) {
94 94
             return $query->where('slug', $slug);
95 95
         });
96 96
 
Please login to merge, or discard this patch.