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.
Test Setup Failed
Push — master ( bdbd26...ea9462 )
by Nikhil
09:20
created
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.
app/Transformers/SupplierTransformer.php 1 patch
Spacing   +4 added lines, -4 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 = ['purchases'];
15
+    protected $availableIncludes = [ 'purchases' ];
16 16
 
17 17
     /**
18 18
      * Turn this item object into a generic array.
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
     public function transform(Supplier $supplier)
25 25
     {
26 26
         return [
27
-            'id'       => (int)$supplier->id,
28
-            'name'     => (string)$supplier->name,
29
-            'location' => (string)$supplier->location,
27
+            'id'       => (int) $supplier->id,
28
+            'name'     => (string) $supplier->name,
29
+            'location' => (string) $supplier->location,
30 30
         ];
31 31
     }
32 32
 
Please login to merge, or discard this patch.
app/Transformers/WarehouseTransformer.php 1 patch
Spacing   +3 added lines, -3 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 = ['racks'];
15
+    protected $availableIncludes = [ 'racks' ];
16 16
 
17 17
     /**
18 18
      * Turn this item object into a generic array.
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     public function transform(Warehouse $warehouse)
25 25
     {
26 26
         return [
27
-            'id'   => (int)$warehouse->id,
28
-            'name' => (string)$warehouse->name,
27
+            'id'   => (int) $warehouse->id,
28
+            'name' => (string) $warehouse->name,
29 29
         ];
30 30
     }
31 31
 
Please login to merge, or discard this patch.
server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 $uri = urldecode(
11
-    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
11
+    parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH)
12 12
 );
13 13
 
14 14
 // This file allows us to emulate Apache's "mod_rewrite" functionality from the
Please login to merge, or discard this patch.
resources/lang/en/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,6 +105,6 @@
 block discarded – undo
105 105
     |
106 106
     */
107 107
 
108
-    'attributes' => [],
108
+    'attributes' => [ ],
109 109
 
110 110
 ];
Please login to merge, or discard this patch.
database/migrations/2016_02_27_130938_create_warehouses_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('warehouses', function (Blueprint $table) {
15
+        Schema::create('warehouses', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name');
18 18
         });
Please login to merge, or discard this patch.
database/migrations/2016_02_27_131312_create_purchases_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('purchases', function (Blueprint $table) {
15
+        Schema::create('purchases', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->integer('supplier_id')->unsigned();
18 18
             $table->foreign('supplier_id')->references('id')->on('suppliers')->onDelete('cascade');
Please login to merge, or discard this patch.
database/migrations/2016_02_27_131339_create_shops_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('shops', function (Blueprint $table) {
15
+        Schema::create('shops', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name');
18 18
             $table->string('address');
Please login to merge, or discard this patch.