Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | final class OutputLoader extends \WebServCo\Framework\AbstractOutputLoader |
||
7 | { |
||
8 | public function __construct($projectPath) |
||
9 | { |
||
10 | parent::__construct( |
||
11 | $projectPath, |
||
12 | Framework::library('HtmlOutput'), |
||
13 | Framework::library('JsonOutput') |
||
14 | ); |
||
15 | } |
||
16 | |||
17 | public function html($data, $template) |
||
18 | { |
||
19 | return parent::html($data, $template); |
||
20 | } |
||
21 | |||
22 | public function htmlPage($data, $pageTemplate, $mainTemplate = null) |
||
23 | { |
||
24 | return parent::htmlPage($data, $pageTemplate, $mainTemplate); |
||
25 | } |
||
26 | |||
27 | public function json($data) |
||
28 | { |
||
29 | return parent::json($data); |
||
30 | } |
||
31 | |||
32 | public function cli($string, $eol = true) |
||
35 | } |
||
36 | } |
||
37 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.