1 | <?php |
||||
2 | declare(strict_types = 1); |
||||
3 | |||||
4 | namespace Phauthentic\Presentation\Renderer; |
||||
5 | |||||
6 | use Phauthentic\Presentation\View\ViewInterface; |
||||
7 | use Cake\View\View as CakeView; |
||||
0 ignored issues
–
show
|
|||||
8 | |||||
9 | /** |
||||
10 | * CakePHP View Renderer |
||||
11 | */ |
||||
12 | class CakePHPRenderer implements RendererInterface |
||||
13 | { |
||||
14 | /** |
||||
15 | * CakePHP View Object |
||||
16 | * |
||||
17 | * @var \Cake\View\View; |
||||
18 | */ |
||||
19 | protected $cakeView; |
||||
20 | |||||
21 | /** |
||||
22 | * Constructor |
||||
23 | * |
||||
24 | * @param \Cake\View\View $view CakePHP View Object |
||||
25 | */ |
||||
26 | public function __construct(CakeView $view) |
||||
27 | { |
||||
28 | $this->cakeView = $view; |
||||
29 | } |
||||
30 | |||||
31 | /** |
||||
32 | * @inheritDoc |
||||
33 | */ |
||||
34 | public function render(ViewInterface $view) : string |
||||
35 | { |
||||
36 | return $this->cakeView |
||||
37 | ->setTemplatePath($view->getTemplatePath()) |
||||
0 ignored issues
–
show
The method
getTemplatePath() does not exist on Phauthentic\Presentation\View\ViewInterface .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||||
38 | ->setTemplate($view->getTemplate()) |
||||
0 ignored issues
–
show
The method
getTemplate() does not exist on Phauthentic\Presentation\View\ViewInterface .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||||
39 | ->set($view->viewVars()) |
||||
40 | ->render(); |
||||
41 | } |
||||
42 | } |
||||
43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths