| Total Complexity | 7 |
| Total Lines | 70 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Widget implements IWidget |
||
| 17 | { |
||
| 18 | |||
| 19 | /** @var IURLGenerator */ |
||
| 20 | private $url; |
||
| 21 | /** @var IL10N */ |
||
| 22 | private $l10n; |
||
| 23 | |||
| 24 | public function __construct( |
||
| 25 | IURLGenerator $url, |
||
| 26 | IL10N $l10n |
||
| 27 | ) |
||
| 28 | { |
||
| 29 | $this->url = $url; |
||
| 30 | $this->l10n = $l10n; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritDoc |
||
| 35 | */ |
||
| 36 | public function getId(): string |
||
| 37 | { |
||
| 38 | return 'analytics'; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritDoc |
||
| 43 | */ |
||
| 44 | public function getTitle(): string |
||
| 45 | { |
||
| 46 | return $this->l10n->t('Reports'); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritDoc |
||
| 51 | */ |
||
| 52 | public function getOrder(): int |
||
| 53 | { |
||
| 54 | return 10; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @inheritDoc |
||
| 59 | */ |
||
| 60 | public function getIconClass(): string |
||
| 61 | { |
||
| 62 | return 'icon-analytics'; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @inheritDoc |
||
| 67 | */ |
||
| 68 | public function getUrl(): ?string |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @inheritDoc |
||
| 75 | */ |
||
| 76 | public function load(): void |
||
| 86 | } |
||
| 87 | } |
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