Test Failed
Push — feature-laravel-5.4 ( 89a18e...6715ec )
by Kirill
04:11
created
app/Models/DocsPage.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;
10 10
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function getNav(...$level): Collection
67 67
     {
68 68
         return $this->nav->whereIn('level', $level)
69
-            ->map(function (array $data) {
69
+            ->map(function(array $data) {
70 70
                 return (object) $data;
71 71
             });
72 72
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public static function scopeWhereVersion(Builder $builder, string $version): Builder
80 80
     {
81
-        return $builder->whereHas('docs', function (Builder $query) use ($version) {
81
+        return $builder->whereHas('docs', function(Builder $query) use ($version) {
82 82
             return $query->where('version', $version);
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
app/Http/Middleware/ApiAuthenticate.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,9 @@
 block discarded – undo
16 16
 use Illuminate\Http\Response;
17 17
 use Illuminate\Support\Arr;
18 18
 use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
19
-use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
20 19
 use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException;
21 20
 use Tymon\JWTAuth\Exceptions\JWTException;
22 21
 use Tymon\JWTAuth\Exceptions\TokenExpiredException;
23
-use Tymon\JWTAuth\Exceptions\TokenInvalidException;
24 22
 use Tymon\JWTAuth\Providers\JWT\JWTInterface;
25 23
 
26 24
 /**
Please login to merge, or discard this 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\Http\Middleware;
10 10
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         $user = User::where('id', $id)->where('password', $password)->first();
124 124
 
125
-        if (! $user) {
125
+        if (!$user) {
126 126
             throw new UnprocessableEntityHttpException('Invalid user credentials.');
127 127
         }
128 128
 
Please login to merge, or discard this patch.
app/GraphQL/Queries/DocsQuery.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Folklore\GraphQL\Support\Query;
18 18
 use GraphQL\Type\Definition\ListOfType;
19 19
 use App\GraphQL\Queries\Support\QueryLimit;
20
-use App\GraphQL\Serializers\ArticleSerializer;
21 20
 
22 21
 /**
23 22
  * Class DocsQuery.
Please login to merge, or discard this 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\Queries;
12 12
 
Please login to merge, or discard this patch.
app/GraphQL/Types/DocsPageType.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.
app/GraphQL/Types/DocsType.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.
app/GraphQL/Serializers/DocsPageSerializer.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.
app/GraphQL/Serializers/AbstractSerializer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 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
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @param  Collection|Model[]|null $collection
24 24
      * @return Collection
25 25
      */
26
-    public static function collection(?Collection $collection): Collection
26
+    public static function collection(? Collection $collection) : Collection
27 27
     {
28 28
         if ($collection === null) {
29 29
             return new Collection();
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param  Model|null $model
37 37
      * @return array
38 38
      */
39
-    public static function serialize(?Model $model): array
39
+    public static function serialize(? Model $model) : array
40 40
     {
41 41
         if ($model === null) {
42 42
             return [];
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function map(): \Closure
52 52
     {
53
-        return function (Model $model) {
53
+        return function(Model $model) {
54 54
             return static::serialize($model);
55 55
         };
56 56
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param \DateTime|null $date
69 69
      * @return string
70 70
      */
71
-    protected function formatDateTime(?\DateTime $date): string
71
+    protected function formatDateTime(? \DateTime $date) : string
72 72
     {
73 73
         if ($date === null) {
74 74
             $date = Carbon::now();
Please login to merge, or discard this patch.
app/GraphQL/Serializers/DocsSerializer.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.
app/Console/Commands/StartWebSocketServer.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\Console\Commands;
12 12
 
Please login to merge, or discard this patch.