Passed
Push — master ( b1c492...cf95d8 )
by Malte
02:26
created
src/Attribute.php 1 patch
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,9 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function toDate(){
88 88
         $date = $this->first();
89
-        if ($date instanceof Carbon) return $date;
89
+        if ($date instanceof Carbon) {
90
+            return $date;
91
+        }
90 92
 
91 93
         return Carbon::parse($date);
92 94
     }
@@ -146,7 +148,7 @@  discard block
 block discarded – undo
146 148
     public function add($value, $strict = false) {
147 149
         if (is_array($value)) {
148 150
             return $this->merge($value, $strict);
149
-        }elseif ($value !== null) {
151
+        } elseif ($value !== null) {
150 152
             $this->attach($value, $strict);
151 153
         }
152 154
 
@@ -195,7 +197,7 @@  discard block
 block discarded – undo
195 197
             if ($this->contains($value) === false) {
196 198
                 $this->values[] = $value;
197 199
             }
198
-        }else{
200
+        } else{
199 201
             $this->values[] = $value;
200 202
         }
201 203
     }
Please login to merge, or discard this patch.