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 ( 44f2dc...e9faed )
by Nikhil
09:53
created
app/Guitar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @var array
20 20
      */
21
-    protected $guarded = [];
21
+    protected $guarded = [ ];
22 22
 
23 23
     /**
24 24
      * Sold guitars.
@@ -100,6 +100,6 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function isSold()
102 102
     {
103
-        return ! is_null($this->sale);
103
+        return !is_null($this->sale);
104 104
     }
105 105
 }
Please login to merge, or discard this patch.
app/Transformers/PurchaseTransformer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      *
42 42
      * @param Rack $rack
43 43
      *
44
-     * @return \League\Fractal\Resource\Collection
44
+     * @return \League\Fractal\Resource\Item
45 45
      */
46 46
     public function includeWarehouse(Rack $rack)
47 47
     {
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @var array
14 14
      */
15
-    protected $availableIncludes = ['supplier', 'guitars'];
15
+    protected $availableIncludes = [ 'supplier', 'guitars' ];
16 16
 
17 17
     /**
18 18
      * Turn this item object into a generic array.
@@ -24,27 +24,27 @@  discard block
 block discarded – undo
24 24
     public function transform(Purchase $purchase)
25 25
     {
26 26
         return [
27
-            'id'          => (int)$purchase->id,
28
-            'supplier_id' => (int)$purchase->supplier_id,
29
-            'quantity'    => (int)$purchase->quantity,
30
-            'price'       => (float)$purchase->price,
31
-            'stored'      => (int)$purchase->stored,
32
-            'sold'        => (int)$purchase->sold,
27
+            'id'          => (int) $purchase->id,
28
+            'supplier_id' => (int) $purchase->supplier_id,
29
+            'quantity'    => (int) $purchase->quantity,
30
+            'price'       => (float) $purchase->price,
31
+            'stored'      => (int) $purchase->stored,
32
+            'sold'        => (int) $purchase->sold,
33 33
             'make'        => [
34
-                'id'   => (int)$purchase->make->id,
35
-                'name' => (string)$purchase->make->name,
34
+                'id'   => (int) $purchase->make->id,
35
+                'name' => (string) $purchase->make->name,
36 36
             ],
37 37
             'purchased'   => [
38 38
                 'timestamp' => $purchase->date_purchased->getTimestamp(),
39
-                'date'      => (string)$purchase->date_purchased->toFormattedDateString(),
40
-                'readable'  => (string)$purchase->date_purchased->diffForHumans(),
39
+                'date'      => (string) $purchase->date_purchased->toFormattedDateString(),
40
+                'readable'  => (string) $purchase->date_purchased->diffForHumans(),
41 41
             ],
42 42
             'delivery'    => [
43 43
                 'timestamp' => $purchase->delivery_date->getTimestamp(),
44
-                'date'      => (string)$purchase->delivery_date->toFormattedDateString(),
45
-                'readable'  => (string)$purchase->delivery_date->diffForHumans(),
44
+                'date'      => (string) $purchase->delivery_date->toFormattedDateString(),
45
+                'readable'  => (string) $purchase->delivery_date->diffForHumans(),
46 46
             ],
47
-            'status'      => (string)$purchase->status,
47
+            'status'      => (string) $purchase->status,
48 48
         ];
49 49
     }
50 50
 
Please login to merge, or discard this patch.
app/Sale.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      *
19 19
      * @var array
20 20
      */
21
-    protected $guarded = [];
21
+    protected $guarded = [ ];
22 22
 
23 23
     /**
24 24
      * Models of this make.
Please login to merge, or discard this patch.
app/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      *
19 19
      * @var array
20 20
      */
21
-    protected $guarded = [];
21
+    protected $guarded = [ ];
22 22
 
23 23
     /**
24 24
      * Models of this make.
Please login to merge, or discard this patch.
app/Shop.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      *
19 19
      * @var array
20 20
      */
21
-    protected $guarded = [];
21
+    protected $guarded = [ ];
22 22
 
23 23
     /**
24 24
      * Models of this make.
Please login to merge, or discard this patch.
app/Http/Controllers/Settings/ProfileController.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
     {
39 39
         $this->validate($request, [
40 40
             'name'  => 'required|max:255',
41
-            'email' => 'required|email|unique:users,email,' . Auth::id(),
41
+            'email' => 'required|email|unique:users,email,'.Auth::id(),
42 42
         ]);
43 43
 
44 44
         Auth::user()->fill($request->all())->save();
Please login to merge, or discard this patch.
app/Providers/FractalServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
      */
15 15
     public function register()
16 16
     {
17
-        $this->app->bind('fractal', function () {
17
+        $this->app->bind('fractal', function() {
18 18
 
19 19
             $manager = new Manager();
20 20
 
21 21
             $fractal = new Fractal($manager);
22 22
             $fractal->serializeWith(new DataSerializer);
23
-            $fractal->parseIncludes(request('include', []));
23
+            $fractal->parseIncludes(request('include', [ ]));
24 24
 
25 25
             return $fractal;
26 26
         });
Please login to merge, or discard this patch.
app/Http/Controllers/WarehouseController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
             'racks.*.capacity' => 'required|integer|min:1',
41 41
         ]);
42 42
 
43
-        $warehouse = Warehouse::create($request->only(['name']));
44
-        $racks     = $request->input('racks', []);
43
+        $warehouse = Warehouse::create($request->only([ 'name' ]));
44
+        $racks     = $request->input('racks', [ ]);
45 45
         $warehouse->addRacks($racks);
46 46
     }
47 47
 
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
         ]);
63 63
 
64 64
         $warehouse = Warehouse::findOrFail($id);
65
-        $warehouse->update($request->only(['name']));
65
+        $warehouse->update($request->only([ 'name' ]));
66 66
 
67
-        $racks = $request->input('racks', []);
67
+        $racks = $request->input('racks', [ ]);
68 68
         $warehouse->removeRacksNotIn($this->getIdsFrom($racks));
69 69
         $warehouse->addOrUpdateRacks($racks);
70 70
     }
Please login to merge, or discard this patch.
app/Support/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if ( ! function_exists('fractal')) {
3
+if (!function_exists('fractal')) {
4 4
 
5 5
     /**
6 6
      * @return \Spatie\Fractal\Fractal
Please login to merge, or discard this patch.