Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Test Failed
Push — development ( a51bef...1aad8e )
by José
08:14
created
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
          * Authenticate the user's personal channel...
21 21
          */
22 22
         Broadcast::channel(
23
-            'App.User.*', function ($user, $userId) {
23
+            'App.User.*', function($user, $userId) {
24 24
                 return (int) $user->id === (int) $userId;
25 25
             }
26 26
         );
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             [
56 56
             'middleware' => 'web',
57 57
             'namespace' => $this->namespace,
58
-            ], function ($router) {
58
+            ], function($router) {
59 59
                 include base_path('routes/web.php');
60 60
             }
61 61
         );
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             'middleware' => 'api',
76 76
             'namespace' => $this->namespace,
77 77
             'prefix' => 'api',
78
-            ], function ($router) {
78
+            ], function($router) {
79 79
                 include base_path('routes/api.php');
80 80
             }
81 81
         );
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace DoeSangue\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 class HomeController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
app/Console/Commands/MakeModelCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $name = str_replace_first($this->rootNamespace(), '', $name);
28 28
 
29
-        return $this->laravel['path'].'/Models/'.str_replace('\\', '/', $name).'.php';
29
+        return $this->laravel[ 'path' ].'/Models/'.str_replace('\\', '/', $name).'.php';
30 30
     }
31 31
     /**
32 32
      * Get the root namespace for the class.
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     protected function rootNamespace()
36 36
     {
37
-        return $this->laravel->getNamespace() . 'Models';
37
+        return $this->laravel->getNamespace().'Models';
38 38
     }
39 39
 
40 40
     /**
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         parent::__construct();
49 49
     }
50
-    */
50
+     */
51 51
 
52 52
     /**
53 53
      * Execute the console command.
@@ -58,5 +58,5 @@  discard block
 block discarded – undo
58 58
     {
59 59
         //
60 60
     }
61
-    */
61
+     */
62 62
 }
Please login to merge, or discard this patch.
app/Http/Controllers/API/V1/CampaignController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use DoeSangue\Http\Requests\CreateCampaignRequest;
7 7
 use DoeSangue\Http\Controllers\Controller;
8 8
 use Illuminate\Support\Facades\Mail;
9
-use DoeSangue\Models\Donor;
10 9
 use DoeSangue\Models\Campaign;
11 10
 use Carbon\Carbon;
12 11
 use Tymon\JWTAuth\Facades\JWTAuth;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         $campaign = new Campaign();
34 34
         $campaign->title = $request[ 'title' ];
35
-        $campaign->description = $request['description'];
35
+        $campaign->description = $request[ 'description' ];
36 36
       /*   $imageName = sprintf('%s.%s', hash_file('sha256', $request->file->getPathname()), $request->file->getExtension());
37 37
          if ($request->has('image') && $filesystem->has("uploads/{$imageName}")) {
38 38
              $image->storePubliclyAs($imageName, 'uploads/');
Please login to merge, or discard this patch.
app/Http/Controllers/API/V1/DonorsController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace DoeSangue\Http\Controllers\API\V1;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use DoeSangue\Http\Controllers\Controller;
7 6
 use DoeSangue\Models\Donor;
8 7
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         $donor = Donor::find($id);
27 27
 
28
-        if (! $donor) {
28
+        if (!$donor) {
29 29
             return response()->json(
30 30
                 [
31 31
                     'error_code' => 404,
Please login to merge, or discard this patch.
app/Http/Controllers/API/V1/UsersController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace DoeSangue\Http\Controllers\API\V1;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use DoeSangue\Http\Controllers\Controller;
7 6
 use DoeSangue\Repositories\Users;
8 7
 
Please login to merge, or discard this patch.
app/Models/User.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Returns the campaigns created by the user.
71 71
      *
72
-     * @return array relationship
72
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany relationship
73 73
      * @var    array
74 74
      */
75 75
     public function campaigns()
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * Returns the comments created by the user.
87 87
      *
88
-     * @return array relationship
88
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany relationship
89 89
      * @var    array
90 90
      */
91 91
     public function comments()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getFullNameAttribute($value)
65 65
     {
66
-        return ucfirst($this->first_name) . ' ' . ucfirst($this->last_name);
66
+        return ucfirst($this->first_name).' '.ucfirst($this->last_name);
67 67
     }
68 68
 
69 69
     /**
@@ -95,6 +95,6 @@  discard block
 block discarded – undo
95 95
 
96 96
     public function getIsActiveAttribute()
97 97
     {
98
-        return $this->attributes['active'] == true;
98
+        return $this->attributes[ 'active' ] == true;
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
app/Repositories/Users.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
         return User::whereUsername($username)->get();
17 17
     }
18 18
 
19
+    /**
20
+     * @return string
21
+     */
19 22
     public function filterActive()
20 23
     {
21 24
         //
Please login to merge, or discard this patch.