HTMLAuthorizeRenderer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A render() 0 8 1
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