| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | protected function getFormPlugins(): array |
||
| 27 | { |
||
| 28 | $formPlugins = [ |
||
| 29 | new ValidatorFormPlugin(), |
||
| 30 | new HttpFoundationFormPlugin(), |
||
| 31 | new CsrfFormPlugin(), |
||
| 32 | new NoValidateFormTypeExtensionFormPlugin(), |
||
| 33 | new SanitizeXssTypeExtensionFormPlugin(), |
||
| 34 | new MultiFactorAuthExtensionFormPlugin(), |
||
| 35 | ]; |
||
| 36 | |||
| 37 | if (class_exists(WebProfilerFormPlugin::class)) { |
||
| 38 | $formPlugins[] = new WebProfilerFormPlugin(); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $formPlugins; |
||
| 42 | } |
||
| 44 |