| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 136 | public static function getAll() |
|
| 18 | { |
||
| 19 | return [ |
||
| 20 | 136 | self::NONE => 'Send me no alerts, ever', |
|
| 21 | 136 | self::CHANGE_BAD => 'Only send me an alert when the result of a test changes to FAILED (or ERROR)', |
|
| 22 | 136 | self::CHANGE => 'Send me alerts when the result of a test changes (default)', |
|
| 23 | 136 | self::CHANGE_ALL => 'Send me alerts for every test failure and when the result of a test changes', |
|
| 24 | 136 | self::ALL => 'Send me the results of every test, regardless of if the status changes' |
|
| 25 | 136 | ]; |
|
| 26 | } |
||
| 27 | |||
| 35 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.