| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class CsrfMiddleware { |
||
| 19 | /** |
||
| 20 | * CSRF service. |
||
| 21 | * |
||
| 22 | * @var Csrf |
||
| 23 | */ |
||
| 24 | protected $csrf = null; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Constructor. |
||
| 28 | * |
||
| 29 | * @param Csrf $csrf |
||
| 30 | */ |
||
| 31 | public function __construct( $csrf ) { |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritDoc} |
||
| 37 | * @throws InvalidCsrfTokenException |
||
| 38 | */ |
||
| 39 | public function handle( RequestInterface $request, Closure $next ) { |
||
| 52 |