| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | private function getErrorMessage(callable $callable, ParameterException $e) : string |
||
| 50 | { |
||
| 51 | if (is_array($callable) && count($callable) === 2) { |
||
| 52 | return sprintf('%s in %s::%s', $e->getMessage(), get_class($callable[0]), (string) $callable[1]); |
||
| 53 | } |
||
| 54 | |||
| 55 | return sprintf('%s', $e->getMessage()); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |