Passed
Push — master ( 0a787f...f7fce9 )
by refat
05:37
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\Middleware;
4
5
use System\Application;
6
use App\Middleware\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
}