HTMLAuthorizeRenderer::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 6
nc 1
nop 4
1
<?php
2
3
namespace TH\OAuth2;
4
5
class HTMLAuthorizeRenderer implements AuthorizeRenderer
6
{
7
    private $view;
8
9
    public function __construct($view)
10
    {
11
        $this->view = $view;
12
    }
13
14
    public function render($formUrl, $clientId, $responseType, $user)
15
    {
16
        ob_start();
17
        include $this->view;
18
        $response = ob_get_contents();
19
        ob_end_clean();
20
        return $response;
21
    }
22
}
23