| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 2 | public function __construct(Sequence $unmatchedOperations) |
|
| 10 | { |
||
| 11 | 2 | $message = 'No handler was found '; |
|
| 12 | 2 | if ($unmatchedOperations->count() > 1) { |
|
| 13 | 1 | $message .= 'for the operators \''.implode(', ', $unmatchedOperations->all()).'\'. '; |
|
| 14 | } else { |
||
| 15 | 1 | $message .= 'for the operator \''.$unmatchedOperations->first()->get().'\'. '; |
|
| 16 | } |
||
| 17 | 2 | $message .= 'This is not allowed with strict_mode enabled'; |
|
| 18 | 2 | parent::__construct($message); |
|
| 19 | 2 | } |
|
| 21 |