@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @return string |
| 56 | 56 | */ |
| 57 | - public function toString(){ |
|
| 57 | + public function toString() { |
|
| 58 | 58 | return $this->__toString(); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @return array |
| 65 | 65 | */ |
| 66 | - public function __serialize(){ |
|
| 66 | + public function __serialize() { |
|
| 67 | 67 | return $this->values; |
| 68 | 68 | } |
| 69 | 69 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @return array |
| 74 | 74 | */ |
| 75 | - public function toArray(){ |
|
| 75 | + public function toArray() { |
|
| 76 | 76 | return $this->__serialize(); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | public function offsetSet($key, $value) { |
| 107 | 107 | if (is_null($key)) { |
| 108 | 108 | $this->values[] = $value; |
| 109 | - } else { |
|
| 109 | + }else { |
|
| 110 | 110 | $this->values[$key] = $value; |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | if ($this->contains($value) === false) { |
| 181 | 181 | $this->values[] = $value; |
| 182 | 182 | } |
| 183 | - }else{ |
|
| 183 | + }else { |
|
| 184 | 184 | $this->values[] = $value; |
| 185 | 185 | } |
| 186 | 186 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * |
| 192 | 192 | * @return Attribute |
| 193 | 193 | */ |
| 194 | - public function setName($name){ |
|
| 194 | + public function setName($name) { |
|
| 195 | 195 | $this->name = $name; |
| 196 | 196 | |
| 197 | 197 | return $this; |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * |
| 203 | 203 | * @return string |
| 204 | 204 | */ |
| 205 | - public function getName(){ |
|
| 205 | + public function getName() { |
|
| 206 | 206 | return $this->name; |
| 207 | 207 | } |
| 208 | 208 | |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | * |
| 212 | 212 | * @return array |
| 213 | 213 | */ |
| 214 | - public function get(){ |
|
| 214 | + public function get() { |
|
| 215 | 215 | return $this->values; |
| 216 | 216 | } |
| 217 | 217 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * |
| 221 | 221 | * @return array |
| 222 | 222 | */ |
| 223 | - public function all(){ |
|
| 223 | + public function all() { |
|
| 224 | 224 | return $this->get(); |
| 225 | 225 | } |
| 226 | 226 | |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | * |
| 230 | 230 | * @return mixed|null |
| 231 | 231 | */ |
| 232 | - public function first(){ |
|
| 232 | + public function first() { |
|
| 233 | 233 | if (count($this->values) > 0) { |
| 234 | 234 | return $this->values[0]; |
| 235 | 235 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * |
| 242 | 242 | * @return mixed|null |
| 243 | 243 | */ |
| 244 | - public function last(){ |
|
| 244 | + public function last() { |
|
| 245 | 245 | $cnt = count($this->values); |
| 246 | 246 | if ($cnt > 0) { |
| 247 | 247 | return $this->values[$cnt - 1]; |