Test Failed
Push — feature-laravel-5.4 ( bce2b2...556e60 )
by Kirill
03:14
created
app/Console/Commands/GitHubDocsSync.php 1 patch
Spacing   +8 added lines, -8 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\Console\Commands;
11 11
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $config = $importer->config($repo->importer_config);
57 57
 
58 58
             foreach ($importer->files($config) as $file) {
59
-                $prefix = '[' . $repo->title . ']::' . $file->getRoute();
59
+                $prefix = '['.$repo->title.']::'.$file->getRoute();
60 60
 
61 61
                 /*
62 62
                 |--------------------------------------------------------------------------
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
                 */
66 66
                 $updateRequired = $repo->pages->where('hash', $file->getHash())->isEmpty();
67 67
 
68
-                if (! $updateRequired) {
69
-                    $this->comment($prefix . ' has no available updates.');
68
+                if (!$updateRequired) {
69
+                    $this->comment($prefix.' has no available updates.');
70 70
 
71
-                    if (! $isForce) {
71
+                    if (!$isForce) {
72 72
                         continue;
73 73
                     } else {
74
-                        $this->comment($prefix . ' will force update.');
74
+                        $this->comment($prefix.' will force update.');
75 75
                     }
76 76
                 }
77 77
 
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
                 */
83 83
                 $page = $repo->pages->where('identify', $file->getId())->first();
84 84
 
85
-                $message = $prefix . ' found. Updating sources...';
85
+                $message = $prefix.' found. Updating sources...';
86 86
 
87 87
                 if ($page === null) {
88
-                    $message = $prefix . ' not exists. Uploading new...';
88
+                    $message = $prefix.' not exists. Uploading new...';
89 89
                     $page = new DocsPage(['identify' => $file->getId()]);
90 90
                 }
91 91
 
Please login to merge, or discard this patch.
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.