@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $this->_validator = new Validator($context); |
| 72 | 72 | } elseif(is_callable($context)) { |
| 73 | 73 | $this->_validator = new DelegateValidator($context); |
| 74 | - }elseif($context instanceof Validator) { |
|
| 74 | + } elseif($context instanceof Validator) { |
|
| 75 | 75 | $this->_validator = $context; |
| 76 | 76 | } else { |
| 77 | 77 | throw new \InvalidArgumentException('$context must be valid Validator'); |
@@ -107,7 +107,9 @@ |
||
| 107 | 107 | public function all() |
| 108 | 108 | { |
| 109 | 109 | $items = $this->getArrayCopy(); |
| 110 | - if(empty($items)) return []; |
|
| 110 | + if(empty($items)) { |
|
| 111 | + return []; |
|
| 112 | + } |
|
| 111 | 113 | |
| 112 | 114 | return call_user_func_array('array_merge', $items); |
| 113 | 115 | } |