| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class ViewPresenter implements ShortcodePresenter |
||
| 9 | { |
||
| 10 | protected string $viewPath = ''; |
||
| 11 | |||
| 12 | protected array $viewParams = []; |
||
| 13 | |||
| 14 | 2 | public function render(string $key, array $attributes = [], array $options = []): string |
|
| 15 | { |
||
| 16 | 2 | return View::make( |
|
| 17 | 2 | $this->viewPath($key, $attributes, $options), |
|
| 18 | 2 | $this->viewParams($key, $attributes, $options), |
|
| 19 | 2 | )->render(); |
|
| 20 | } |
||
| 21 | |||
| 22 | 2 | public function viewPath(string $key, array $attributes = [], array $options = []): string |
|
| 29 | } |
||
| 30 | |||
| 31 | 2 | public function viewParams(string $key, array $attributes = [], array $options = []): array |
|
| 38 | 2 | ), |
|
| 39 | 2 | ]; |
|
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.