We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | final class SortedException extends ValidationException |
||
| 23 | { |
||
| 24 | public const ASCENDING = 'ascending'; |
||
| 25 | public const DESCENDING = 'descending'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public static $defaultTemplates = [ |
||
| 31 | self::MODE_DEFAULT => [ |
||
| 32 | self::ASCENDING => '{{name}} must be sorted in ascending order', |
||
| 33 | self::DESCENDING => '{{name}} must be sorted in descending order', |
||
| 34 | ], |
||
| 35 | self::MODE_NEGATIVE => [ |
||
| 36 | self::ASCENDING => '{{name}} must not be sorted in ascending order', |
||
| 37 | self::DESCENDING => '{{name}} must not be sorted in descending order', |
||
| 38 | ], |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 1 | protected function chooseTemplate(): string |
|
| 49 |