Passed
Push — master ( 757402...190707 )
by Malte
02:26
created
src/Attribute.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return string
59 59
      */
60
-    public function toString(){
60
+    public function toString() {
61 61
         return $this->__toString();
62 62
     }
63 63
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @return array
68 68
      */
69
-    public function toArray(){
69
+    public function toArray() {
70 70
         return $this->values;
71 71
     }
72 72
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      *
76 76
      * @return Carbon|null
77 77
      */
78
-    public function toDate(){
78
+    public function toDate() {
79 79
         $date = $this->first();
80 80
         if ($date instanceof Carbon) return $date;
81 81
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     public function offsetSet($key, $value) {
113 113
         if (is_null($key)) {
114 114
             $this->values[] = $value;
115
-        } else {
115
+        }else {
116 116
             $this->values[$key] = $value;
117 117
         }
118 118
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             if ($this->contains($value) === false) {
187 187
                 $this->values[] = $value;
188 188
             }
189
-        }else{
189
+        }else {
190 190
             $this->values[] = $value;
191 191
         }
192 192
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      *
198 198
      * @return Attribute
199 199
      */
200
-    public function setName($name){
200
+    public function setName($name) {
201 201
         $this->name = $name;
202 202
 
203 203
         return $this;
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      *
209 209
      * @return string
210 210
      */
211
-    public function getName(){
211
+    public function getName() {
212 212
         return $this->name;
213 213
     }
214 214
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      *
218 218
      * @return array
219 219
      */
220
-    public function get(){
220
+    public function get() {
221 221
         return $this->values;
222 222
     }
223 223
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      *
227 227
      * @return array
228 228
      */
229
-    public function all(){
229
+    public function all() {
230 230
         return $this->get();
231 231
     }
232 232
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      *
236 236
      * @return mixed|null
237 237
      */
238
-    public function first(){
238
+    public function first() {
239 239
         if ($this->offsetExists(0)) {
240 240
             return $this->values[0];
241 241
         }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      *
248 248
      * @return mixed|null
249 249
      */
250
-    public function last(){
250
+    public function last() {
251 251
         if (($cnt = $this->count()) > 0) {
252 252
             return $this->values[$cnt - 1];
253 253
         }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      *
260 260
      * @return int
261 261
      */
262
-    public function count(){
262
+    public function count() {
263 263
         return count($this->values);
264 264
     }
265 265
 }
266 266
\ No newline at end of file
Please login to merge, or discard this patch.