@@ -39,14 +39,14 @@ discard block |
||
39 | 39 | |
40 | 40 | if (is_callable($callable)) { |
41 | 41 | // Converting method array-callable to closure |
42 | - if(is_array($callable) && count($callable) == 2 && is_object($callable[0])) { |
|
42 | + if (is_array($callable) && count($callable) == 2 && is_object($callable[0])) { |
|
43 | 43 | $method = new \ReflectionMethod($callable[0], $callable[1]); |
44 | 44 | $callable = $method->getClosure($callable[0]); |
45 | 45 | } |
46 | 46 | |
47 | 47 | $this->accessors[$varName][$accessor] = $callable; |
48 | 48 | } else { |
49 | - throw new \Exception('Error assigning callable in ' . get_called_class() . '::setAccessor()! Callable typed [' . $accessor . '] is not a callable or not accessible in the scope'); |
|
49 | + throw new \Exception('Error assigning callable in '.get_called_class().'::setAccessor()! Callable typed ['.$accessor.'] is not a callable or not accessible in the scope'); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function invokeAccessor($varName, $accessor, $params) { |
84 | 84 | if (!$this->haveAccessor($varName, $accessor)) { |
85 | - throw new \Exception("No [{$accessor}] accessor found for variable [{$varName}] on " . get_called_class() . "::" . __METHOD__); |
|
85 | + throw new \Exception("No [{$accessor}] accessor found for variable [{$varName}] on ".get_called_class()."::".__METHOD__); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | return call_user_func_array($this->getAccessor($varName, $accessor), $params); |