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 ( d40dfb...7067a8 )
by Nikhil
19:14 queued 11:24
created
app/Transformers/GuitarTransformer.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
      * @var array
14 14
      */
15
-    protected $availableIncludes = ['purchase', 'sale'];
15
+    protected $availableIncludes = [ 'purchase', 'sale' ];
16 16
 
17 17
     /**
18 18
      * Turn this item object into a generic array.
Please login to merge, or discard this patch.
database/factories/ModelFactory.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\User::class, function (Faker\Generator $faker) {
3
+$factory->define(App\User::class, function(Faker\Generator $faker) {
4 4
     return [
5 5
         'name'           => $faker->name,
6 6
         'email'          => $faker->email,
@@ -9,47 +9,47 @@  discard block
 block discarded – undo
9 9
     ];
10 10
 });
11 11
 
12
-$factory->define(App\Warehouse::class, function (Faker\Generator $faker) {
12
+$factory->define(App\Warehouse::class, function(Faker\Generator $faker) {
13 13
     return [
14 14
         'name' => 'Warehouse #'.$faker->numberBetween(),
15 15
     ];
16 16
 });
17 17
 
18
-$factory->define(App\Make::class, function (Faker\Generator $faker) {
18
+$factory->define(App\Make::class, function(Faker\Generator $faker) {
19 19
     return [
20 20
         'name' => $faker->words(2, true),
21 21
     ];
22 22
 });
23 23
 
24
-$factory->define(App\Supplier::class, function (Faker\Generator $faker) {
24
+$factory->define(App\Supplier::class, function(Faker\Generator $faker) {
25 25
     return [
26 26
         'name'     => $faker->company,
27 27
         'location' => $faker->address,
28 28
     ];
29 29
 });
30 30
 
31
-$factory->define(App\Shop::class, function (Faker\Generator $faker) {
31
+$factory->define(App\Shop::class, function(Faker\Generator $faker) {
32 32
     return [
33 33
         'name'    => $faker->company,
34 34
         'address' => $faker->address,
35 35
     ];
36 36
 });
37 37
 
38
-$factory->define(App\Rack::class, function (Faker\Generator $faker) {
38
+$factory->define(App\Rack::class, function(Faker\Generator $faker) {
39 39
     return [
40 40
         'name'     => 'Rack #'.$faker->numberBetween(1, 20),
41 41
         'capacity' => $faker->randomNumber(3),
42 42
     ];
43 43
 });
44 44
 
45
-$factory->define(App\Model::class, function (Faker\Generator $faker) {
45
+$factory->define(App\Model::class, function(Faker\Generator $faker) {
46 46
     return [
47 47
         'name'  => 'Model #'.$faker->numberBetween(1, 20),
48 48
         'photo' => config('shop.images.dir').$faker->image(config('shop.images.path'), 640, 480, 'technics', null),
49 49
     ];
50 50
 });
51 51
 
52
-$factory->define(App\Purchase::class, function (Faker\Generator $faker) {
52
+$factory->define(App\Purchase::class, function(Faker\Generator $faker) {
53 53
     return [
54 54
         'quantity'       => $faker->randomNumber(2),
55 55
         'price'          => $faker->randomFloat(2, 1000),
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     ];
59 59
 });
60 60
 
61
-$factory->defineAs(App\Purchase::class, 'delivered', function (Faker\Generator $faker) use ($factory) {
61
+$factory->defineAs(App\Purchase::class, 'delivered', function(Faker\Generator $faker) use ($factory) {
62 62
     $user = $factory->raw(App\Purchase::class);
63 63
 
64 64
     return array_merge($user, [
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     ]);
68 68
 });
69 69
 
70
-$factory->define(App\Guitar::class, function (Faker\Generator $faker) {
70
+$factory->define(App\Guitar::class, function(Faker\Generator $faker) {
71 71
     return [
72 72
         'colour'    => $faker->colorName,
73 73
         'damaged'   => $faker->boolean(),
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
     ];
77 77
 });
78 78
 
79
-$factory->define(App\Sale::class, function (Faker\Generator $faker) {
79
+$factory->define(App\Sale::class, function(Faker\Generator $faker) {
80 80
     return [
81 81
         'name'    => $faker->name,
82 82
         'address' => $faker->address,
83 83
     ];
84 84
 });
85 85
 
86
-$factory->defineAs(App\Sale::class, 'shop', function (Faker\Generator $faker) {
86
+$factory->defineAs(App\Sale::class, 'shop', function(Faker\Generator $faker) {
87 87
     return [
88 88
         'shop_id' => factory(App\Shop::class)->create()->id,
89 89
     ];
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
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public function handle(PurchaseWasCreated $event)
19 19
     {
20 20
         $purchase = $event->purchase;
21
-        if ($purchase->hasArrived() && $purchase->isPendingStorage() && ! $purchase->notifications()->count()) {
21
+        if ($purchase->hasArrived() && $purchase->isPendingStorage() && !$purchase->notifications()->count()) {
22 22
             $purchase->makeNotification();
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +2 added lines, -2 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 $dates = ['deleted_at'];
15
+    protected $dates = [ 'deleted_at' ];
16 16
 
17 17
     /**
18 18
      * The attributes that are mass assignable.
@@ -42,6 +42,6 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function getAvatarAttribute()
44 44
     {
45
-        return 'http://www.gravatar.com/avatar/'.md5($this->attributes['email']);
45
+        return 'http://www.gravatar.com/avatar/'.md5($this->attributes[ 'email' ]);
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
app/Notification.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @var array
13 13
      */
14
-    protected $dates = ['deleted_at'];
14
+    protected $dates = [ 'deleted_at' ];
15 15
     
16 16
     /**
17 17
      * The attributes that are not mass assignable.
18 18
      *
19 19
      * @var array
20 20
      */
21
-    protected $guarded = [];
21
+    protected $guarded = [ ];
22 22
 
23 23
     /**
24 24
      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
@@ -54,6 +54,6 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function dismiss()
56 56
     {
57
-        return $this->update(['dismissed' => true]);
57
+        return $this->update([ 'dismissed' => true ]);
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
     protected function schedule(Schedule $schedule)
29 29
     {
30 30
         $schedule->command('purchases:check')
31
-                 ->dailyAt('00:01');
31
+                    ->dailyAt('00:01');
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
app/Sale.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
     /**
12 12
      * @var array
13 13
      */
14
-    protected $dates = ['deleted_at'];
14
+    protected $dates = [ 'deleted_at' ];
15 15
     
16 16
     /**
17 17
      * The attributes that are not mass assignable.
18 18
      *
19 19
      * @var array
20 20
      */
21
-    protected $guarded = [];
21
+    protected $guarded = [ ];
22 22
 
23 23
     /**
24 24
      * Guitar that was sold.
Please login to merge, or discard this patch.
app/Shop.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,19 +31,19 @@
 block discarded – undo
31 31
     /**
32 32
      * @var array
33 33
      */
34
-    protected $dates = ['deleted_at'];
34
+    protected $dates = [ 'deleted_at' ];
35 35
     /**
36 36
      * The attributes that are not mass assignable.
37 37
      *
38 38
      * @var array
39 39
      */
40
-    protected $guarded = [];
40
+    protected $guarded = [ ];
41 41
 
42 42
     public static function boot()
43 43
     {
44 44
         parent::boot();
45 45
 
46
-        static::deleting(function (Shop $shop) {
46
+        static::deleting(function(Shop $shop) {
47 47
             $shop->sales()->delete();
48 48
         });
49 49
     }
Please login to merge, or discard this patch.
app/Rack.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,19 +40,19 @@
 block discarded – undo
40 40
     /**
41 41
      * @var array
42 42
      */
43
-    protected $dates = ['deleted_at'];
43
+    protected $dates = [ 'deleted_at' ];
44 44
     /**
45 45
      * The attributes that are not mass assignable.
46 46
      *
47 47
      * @var array
48 48
      */
49
-    protected $fillable = ['name', 'capacity', 'make_id', 'warehouse_id'];
49
+    protected $fillable = [ 'name', 'capacity', 'make_id', 'warehouse_id' ];
50 50
 
51 51
     public static function boot()
52 52
     {
53 53
         parent::boot();
54 54
 
55
-        static::deleting(function (Rack $rack) {
55
+        static::deleting(function(Rack $rack) {
56 56
             $rack->guitars()->delete();
57 57
         });
58 58
     }
Please login to merge, or discard this patch.