Xhgui_Middleware_Render   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A call() 0 12 2
1
<?php
2
use Slim\Middleware;
3
4
class Xhgui_Middleware_Render extends Middleware
5
{
6
    public function call()
7
    {
8
        $app = $this->app;
9
10
        // Run the controller action/route function
11
        $this->next->call();
12
13
        // Render the template.
14
        if (isset($app->controller)) {
15
            $app->controller->render();
16
        }
17
    }
18
19
}
20