| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 1 | public static function missingBlock(array $blockNames):MissingBlockException |
|
| 13 | { |
||
| 14 | 1 | $blocksName = implode(',', $blockNames); |
|
| 15 | 1 | $errorMsg = ($blocksName === '') ? 'No blocks found.' : 'Blocks found '.$blocksName.'.'; |
|
| 16 | |||
| 17 | 1 | return new self('Your template needs a subject block, a body_html block and a body_text block.'.$errorMsg); |
|
| 18 | } |
||
| 19 | } |
||
| 20 |