@@ -160,11 +160,11 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function getElement($name, array $params = []) |
| 162 | 162 | { |
| 163 | - if (!array_key_exists($name, $this->_elements)) { |
|
| 164 | - throw new Exception("The requested element '$name' does not exist in the list. You may register the element first with `addElement(name, closure)`."); |
|
| 165 | - } |
|
| 163 | + if (!array_key_exists($name, $this->_elements)) { |
|
| 164 | + throw new Exception("The requested element '$name' does not exist in the list. You may register the element first with `addElement(name, closure)`."); |
|
| 165 | + } |
|
| 166 | 166 | |
| 167 | - return call_user_func_array($this->_elements[$name], $params); |
|
| 167 | + return call_user_func_array($this->_elements[$name], $params); |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | public function run($name, array $params = []) |
| 182 | 182 | { |
| 183 | - trigger_error('method `run()` is deprectaed, use `getElement` instead.', E_NOTICE); |
|
| 183 | + trigger_error('method `run()` is deprectaed, use `getElement` instead.', E_NOTICE); |
|
| 184 | 184 | return $this->getElement($name, $params); |
| 185 | 185 | } |
| 186 | 186 | |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | 16 | * Convert Object to Array |
| 17 | - * |
|
| 18 | - * @since 1.0.0-beta7 |
|
| 17 | + * |
|
| 18 | + * @since 1.0.0-beta7 |
|
| 19 | 19 | * @param object $object |
| 20 | 20 | */ |
| 21 | 21 | public static function toArray($object) |