Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
17 | public function notify(array $error) |
||
18 | { |
||
19 | if (strpos($error['message'], 'Call to undefined method') === false) { |
||
20 | return; |
||
21 | } |
||
22 | |||
23 | $missing = trim(substr($error['message'], strlen('Call to undefined method'))); |
||
24 | list ($class, $method) = explode('::', $missing); |
||
25 | $this->exemplifyRunner->runExemplifyCommand($class, substr($method, 0, -2)); |
||
26 | } |
||
27 | } |
||
28 |