Completed
Push — master ( 5eddcf...11d6c3 )
by Scott
02:36
created
models/Discount.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @var array Guarded fields
47 47
      */
48
-    protected $guarded = ['*'];
48
+    protected $guarded = [ '*' ];
49 49
 
50 50
     /**
51 51
      * @var array Fillable fields
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * @var array Relations
73 73
      */
74
-    public $hasMany = [];
75
-    public $morphMany = [];
74
+    public $hasMany = [ ];
75
+    public $morphMany = [ ];
76 76
 
77 77
     /**
78 78
      * @var  array Validation rules
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function filterFields($fields)
115 115
     {
116 116
         $fields->amount_exact->hidden = $this->is_percentage;
117
-        $fields->amount_percentage->hidden = ! $this->is_percentage;
117
+        $fields->amount_percentage->hidden = !$this->is_percentage;
118 118
     }
119 119
 
120 120
     /**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function scopeIsNotExpired($query)
127 127
     {
128
-        return $query->where(function ($discount) {
128
+        return $query->where(function($discount) {
129 129
             return $discount->whereNull('end_at')
130 130
                 ->orWhere('end_at', '>', (string) Carbon::now());
131 131
         });
Please login to merge, or discard this patch.