GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( d22bab...41c46a )
by Nikhil
15:46 queued 08:03
created
app/Listeners/GenerateRackNotification.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\Events\GuitarWasCreated;
6 6
 use App\Notification;
7
-use Illuminate\Queue\InteractsWithQueue;
8
-use Illuminate\Contracts\Queue\ShouldQueue;
9 7
 
10 8
 class GenerateRackNotification
11 9
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
     public function handle(GuitarWasCreated $event)
20 20
     {
21 21
         $rack = $event->guitar->rack;
22
-        if($rack->usage > 90){
22
+        if ($rack->usage > 90) {
23 23
             $rack->makeNotification(Notification::findOrNew([
24 24
                 'icon'    => 'warning',
25 25
                 'link'    => '/warehouses',
26 26
                 'message' => "{$rack->name} in {$rack->warehouse->name} is almost full ({$rack->usedd} of {$rack->capacity} used).",
27 27
             ]));
28 28
         }
29
-        else if($rack->isFull()){
29
+        else if ($rack->isFull()) {
30 30
             $rack->makeNotification(Notification::findOrNew([
31 31
                 'icon'    => 'error',
32 32
                 'link'    => '/warehouses',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
                 'link'    => '/warehouses',
26 26
                 'message' => "{$rack->name} in {$rack->warehouse->name} is almost full ({$rack->usedd} of {$rack->capacity} used).",
27 27
             ]));
28
-        }
29
-        else if($rack->isFull()){
28
+        } else if($rack->isFull()){
30 29
             $rack->makeNotification(Notification::findOrNew([
31 30
                 'icon'    => 'error',
32 31
                 'link'    => '/warehouses',
Please login to merge, or discard this patch.
database/migrations/2016_03_24_191449_create_notifications_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('notifications', function (Blueprint $table) {
15
+        Schema::create('notifications', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('icon')->nullable();
18 18
             $table->string('link')->nullable();
Please login to merge, or discard this patch.
app/Events/PurchaseWasCreated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
      */
34 34
     public function broadcastOn()
35 35
     {
36
-        return ['default'];
36
+        return [ 'default' ];
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
app/Listeners/GeneratePurchaseNotification.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
         if ($purchase->hasArrived() && $purchase->isPendingStorage()) {
21 21
             $purchase->makeNotification(Notification::findOrNew([
22 22
                 'icon'    => 'flight_land',
23
-                'link'    => '/purchases/' . $purchase->id,
23
+                'link'    => '/purchases/'.$purchase->id,
24 24
                 'message' => "Purchase of {$purchase->quantity} {$purchase->make->name} has arrived from {$purchase->supplier->name}, {$purchase->supplier->location}.",
25 25
             ]));
26 26
         }
Please login to merge, or discard this patch.
app/Http/Controllers/MakeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             'name' => 'required|string|max:255'
39 39
         ]);
40 40
 
41
-        $make = Make::create($request->only(['name']));
41
+        $make = Make::create($request->only([ 'name' ]));
42 42
         event(new MakeWasCreated($make));
43 43
     }
44 44
 
Please login to merge, or discard this patch.
app/Http/Controllers/ModelController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
             'photo'   => 'required|image',
42 42
         ]);
43 43
         $photo    = $request->file('photo');
44
-        $fileName = sha1(time() . $photo->getClientOriginalName()) . '.' . $photo->getClientOriginalExtension();
44
+        $fileName = sha1(time().$photo->getClientOriginalName()).'.'.$photo->getClientOriginalExtension();
45 45
         $photo->move(config('shop.images.path'), $fileName);
46 46
         $model = Model::create($request->only([
47 47
                 'name',
48 48
                 'make_id'
49
-            ]) + ['photo' => config('shop.images.dir') . $fileName]);
49
+            ]) + [ 'photo' => config('shop.images.dir').$fileName ]);
50 50
         event(new ModelWasCreated($model));
51 51
     }
52 52
 
Please login to merge, or discard this patch.
app/Http/Controllers/SupplierController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             'location' => 'required|string|max:255',
40 40
         ]);
41 41
 
42
-        $supplier = Supplier::create($request->only(['name', 'location']));
42
+        $supplier = Supplier::create($request->only([ 'name', 'location' ]));
43 43
         event(new SupplierWasCreated($supplier));
44 44
     }
45 45
 
Please login to merge, or discard this patch.
app/Events/SupplierWasDeleted.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
      */
34 34
     public function broadcastOn()
35 35
     {
36
-        return ['default'];
36
+        return [ 'default' ];
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
app/Events/GuitarWasCreated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
      */
34 34
     public function broadcastOn()
35 35
     {
36
-        return ['default'];
36
+        return [ 'default' ];
37 37
     }
38 38
 }
Please login to merge, or discard this patch.