Xhgui_Middleware_Render::call()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
cc 2
nc 2
nop 0
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