| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class ConfigMenu extends \Nette\Application\UI\Control |
||
| 18 | { |
||
| 19 | /** @var array */ |
||
| 20 | protected $menu; |
||
| 21 | |||
| 22 | /** @var \Nepttune\Model\Authorizator */ |
||
|
|
|||
| 23 | protected $authorizator; |
||
| 24 | |||
| 25 | public function __construct(array $menu, \Nette\DI\Container $container) |
||
| 26 | { |
||
| 27 | parent::__construct(); |
||
| 28 | |||
| 29 | $this->menu = $menu; |
||
| 30 | $this->authorizator = $container->getService('authorizator'); |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function beforeRender() : void |
||
| 36 | } |
||
| 37 | |||
| 38 | public function render() : void |
||
| 43 | } |
||
| 44 | |||
| 45 | public function hasAccess(string $resource) : bool |
||
| 50 |
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