Completed
Push — 2.0 ( fe8057...a5342d )
by Kirill
06:55
created
server/app/GraphQL/Queries/DocsQuery.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace App\GraphQL\Queries;
10 10
 
11 11
 use App\Models\Docs;
12
-use App\GraphQL\Types\DocsType;
13 12
 use GraphQL\Type\Definition\Type;
14 13
 use Illuminate\Database\Eloquent\Builder;
15 14
 use Illuminate\Support\Collection;
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
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         $query = $this->queryWithWhereIn($query, $args);
93 93
 
94
-        $this->whenExists($args, 'slug', function (string $slug) use ($query) {
94
+        $this->whenExists($args, 'slug', function(string $slug) use ($query) {
95 95
             return $query->where('slug', $slug);
96 96
         });
97 97
 
Please login to merge, or discard this patch.
server/app/GraphQL/Kernel/AttributeExists.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 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\Kernel;
11 11
 
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/Kernel/WhereInSelection.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\Kernel;
10 10
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         return array_merge($args, [
28 28
             'id'  => [
29 29
                 'type'        => Type::listOf(Type::id()),
30
-                'description' => 'Select ' . $this->getQueryName() . ' by identifier or identifier array',
30
+                'description' => 'Select '.$this->getQueryName().' by identifier or identifier array',
31 31
             ],
32 32
         ]);
33 33
     }
Please login to merge, or discard this patch.