| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class UserCanMiddleware { |
||
| 20 | /** |
||
| 21 | * Response service. |
||
| 22 | * |
||
| 23 | * @var ResponseService |
||
| 24 | */ |
||
| 25 | protected $response_service = null; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor. |
||
| 29 | * |
||
| 30 | * @codeCoverageIgnore |
||
| 31 | * @param ResponseService $response_service |
||
| 32 | */ |
||
| 33 | public function __construct( ResponseService $response_service ) { |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | 4 | public function handle( RequestInterface $request, Closure $next, $capability = '', $object_id = '0', $url = '' ) { |
|
| 62 |