Passed
Push — master ( 6e001a...bf3cf2 )
by refat
04:12
created

AjaxMiddleware   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 2 1
1
<?php
2
3
namespace App\Middlewares;
4
5
use System\Application;
6
use App\Middlewares\MiddlewareIntrerface\MiddlewaresInterface as Middleware;
7
8
class AjaxMiddleware implements Middleware
9
{
10
  public function handle(Application $app, $next)
11
  {
12
    // if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) $this->url->redirectTo('error');
13
  }
14
}