| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public static function createDefault(array $safeRoutes = []): CsrfHeaderCheckMiddleware |
||
| 15 | { |
||
| 16 | return new CsrfHeaderCheckMiddleware( |
||
| 17 | new CompositeIsSafe( |
||
| 18 | IsSafeHttpMethod::fromDefaultSafeMethods(), |
||
| 19 | new IsSafeHttpRoute(...$safeRoutes), |
||
| 20 | IsBypassedCheck::fromDefault() |
||
| 21 | ) |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | } |
||
| 25 |