Completed
Push — graphql-auth ( 67a3fb...eab2f1 )
by
unknown
03:31
created
server/app/Http/Controllers/ArticlesController.php 1 patch
Spacing   +3 added lines, -3 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\Http\Controllers;
12 12
 
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
         /** @var Article $article */
45 45
         $article = Article::where('slug', $slug)->firstOrFail();
46 46
 
47
-        if (! $article->isAllowedForUser($guard->user())) {
48
-            throw new AccessDeniedHttpException('Article [' . $article->slug . '] are not allowed for view');
47
+        if (!$article->isAllowedForUser($guard->user())) {
48
+            throw new AccessDeniedHttpException('Article ['.$article->slug.'] are not allowed for view');
49 49
         }
50 50
 
51 51
         return view('page.articles.show', [
Please login to merge, or discard this patch.
server/app/Http/Controllers/HomeController.php 2 patches
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\Controllers;
12 12
 
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
 
12 12
 use App\Models\User;
13 13
 use App\Models\Article;
14
-use Illuminate\Contracts\Events\Dispatcher;
15 14
 use Illuminate\Contracts\View\View;
16 15
 use Illuminate\Contracts\Auth\Guard;
17 16
 use Tymon\JWTAuth\Providers\JWT\JWTInterface;
Please login to merge, or discard this patch.
server/app/Http/Controllers/Controller.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\Controllers;
12 12
 
Please login to merge, or discard this patch.
server/app/Http/Kernel.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;
12 12
 
Please login to merge, or discard this patch.
server/app/Http/Middleware/TrimStrings.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/Http/Middleware/EncryptCookies.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/Http/Middleware/CurrentPageState.php 1 patch
Spacing   +2 added lines, -2 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\Http\Middleware;
12 12
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function handle(Request $request, \Closure $next): Response
73 73
     {
74
-        if (! $this->session->has(static::PAGE_NAME)) {
74
+        if (!$this->session->has(static::PAGE_NAME)) {
75 75
             $this->session->put(static::PAGE_NAME, '/');
76 76
         }
77 77
 
Please login to merge, or discard this patch.
server/app/Http/Middleware/VerifyCsrfToken.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/Http/Middleware/ApiAuthenticate.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\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.