@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | return null; |
139 | 139 | case 'unknown type': |
140 | 140 | default: |
141 | - throw new InvalidArgumentException('Cannot diff type [' . $this->type . '].'); |
|
141 | + throw new InvalidArgumentException('Cannot diff type ['.$this->type.'].'); |
|
142 | 142 | } |
143 | 143 | } |
144 | 144 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | return strlen($this->getValue()); |
160 | 160 | case 'unknown type': |
161 | 161 | default: |
162 | - throw new InvalidArgumentException('Cannot count type [' . $this->type . '].'); |
|
162 | + throw new InvalidArgumentException('Cannot count type ['.$this->type.'].'); |
|
163 | 163 | } |
164 | 164 | } |
165 | 165 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @param string $key |
36 | - * @return mixed |
|
36 | + * @return boolean |
|
37 | 37 | */ |
38 | 38 | public static function get($key) |
39 | 39 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function getKey($key) |
16 | 16 | { |
17 | - return $this->keyExists($key) ? $this->getValue()[$key] : false; |
|
17 | + return $this->keyExists($key) ? $this->getValue()[ $key ] : false; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function equals(ValueObject $object) |
35 | 35 | { |
36 | - if (! $object instanceof VOArray) { |
|
36 | + if (!$object instanceof VOArray) { |
|
37 | 37 | throw new InvalidTypeException($object, [ VOArray::class ]); |
38 | 38 | } |
39 | 39 |
@@ -26,8 +26,8 @@ |
||
26 | 26 | */ |
27 | 27 | public function __construct($value) |
28 | 28 | { |
29 | - if (! is_string($value)) { |
|
30 | - throw new InvalidTypeException($value, ['string']); |
|
29 | + if (!is_string($value)) { |
|
30 | + throw new InvalidTypeException($value, [ 'string' ]); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | parent::__construct($value); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public static function fromArray(array $array, $space = null) |
21 | 21 | { |
22 | - return new static(implode(',' . $space, $array)); |
|
22 | + return new static(implode(','.$space, $array)); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | /** |
17 | 17 | * @param array $array |
18 | - * @return string |
|
18 | + * @return Attribute |
|
19 | 19 | */ |
20 | 20 | public static function fromArray(array $array) |
21 | 21 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | /** |
16 | 16 | * @param array $array |
17 | - * @return string |
|
17 | + * @return Pair |
|
18 | 18 | */ |
19 | 19 | public static function fromArray(array $array) |
20 | 20 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public static function fromVariadic(VOClosure $value, array ...$array) |
21 | 21 | { |
22 | 22 | return new static( |
23 | - call_user_func_array('array_map', array_merge([$value->getValue()], $array)) |
|
23 | + call_user_func_array('array_map', array_merge([ $value->getValue() ], $array)) |
|
24 | 24 | ); |
25 | 25 | } |
26 | 26 | } |