| Conditions | 4 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | protected function applyRequestTransformers($transformer, $formData) |
||
| 56 | { |
||
| 57 | if ($transformer instanceof RequestTransformerInterface && $transformer->supports($formData)) { |
||
| 58 | $transformer->transform($formData); |
||
| 59 | } |
||
| 60 | |||
| 61 | if ($transformer instanceof \Closure) { |
||
| 62 | $transformer($formData); |
||
| 63 | } |
||
| 66 |