| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 95.83% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Plugin extends CheckPluginAbstract |
||
| 22 | { |
||
| 23 | const DESCR = |
||
| 24 | <<<'TXT' |
||
| 25 | expression description |
||
| 26 | TXT; |
||
| 27 | |||
| 28 | const PATH = __DIR__; |
||
| 29 | |||
| 30 | const GROUP = 'php'; |
||
| 31 | const CHECK_NAME = 'core:expression'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @throws FeatureRequired |
||
| 35 | */ |
||
| 36 | 1 | public function checkRequirements(array $checkSettings) |
|
| 37 | { |
||
| 38 | 1 | if (!class_exists('Symfony\Component\ExpressionLanguage\ExpressionLanguage')) { |
|
| 39 | throw new FeatureRequired('The symfony/expression-language is required for '.static::class.' check.'); |
||
| 40 | } |
||
| 41 | 1 | } |
|
| 42 | |||
| 43 | 57 | protected function _check(ArrayNodeDefinition $node): ArrayNodeDefinition |
|
| 67 | } |
||
| 68 | } |
||
| 69 |