| Total Complexity | 3 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class Controller |
||
| 10 | { |
||
| 11 | /** @var Engine */ |
||
| 12 | protected $view; |
||
| 13 | |||
| 14 | /** @var Router */ |
||
| 15 | protected $router; |
||
| 16 | |||
| 17 | /** @var Optimizer */ |
||
| 18 | protected $seo; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param ? $router |
||
| 22 | */ |
||
| 23 | public function __construct($router) |
||
| 24 | { |
||
| 25 | $this->router = $router; |
||
| 26 | $this->view = Engine::create(dirname(__DIR__, 2) . '/views', 'php'); |
||
| 27 | $this->view->addData(['router' => $this->router]); |
||
| 28 | |||
| 29 | $this->seo = new Optimizer(); |
||
| 30 | $this->seo |
||
| 31 | ->openGraph(site('name'), site('locale'), 'article') |
||
| 32 | ->publisher(SOCIAL['facebook_page'], SOCIAL['facebook_author']) |
||
| 33 | ->twitterCard(SOCIAL['twitter_creator'], SOCIAL['twitter_site'], site('domain')) |
||
| 34 | ->facebook(SOCIAL['facebook_appId']); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $param |
||
| 39 | * @param array $values |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function ajaxResponse(string $param, array $values): string |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param array $data |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | public function send(array $data): void |
||
| 55 | } |
||
| 56 | } |
||
| 57 |
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