| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | trait PageRelatedPagesTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @ORM\ManyToMany(targetEntity="PiedWeb\CMSBundle\Entity\PageInterface") |
||
| 12 | */ |
||
| 13 | protected $relatedPages; |
||
| 14 | |||
| 15 | public function __constructRelatedPagesT() |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return Collection|Page[] |
||
| 22 | */ |
||
| 23 | public function getRelatedPages(): Collection |
||
| 24 | { |
||
| 25 | return $this->relatedPages; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function addRelatedPage(PageInterface $relatedPage): self |
||
| 29 | { |
||
| 30 | if (!$this->relatedPages->contains($relatedPage)) { |
||
| 31 | $this->relatedPages[] = $relatedPage; |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function removeRelatedPage(PageInterface $relatedPage): self |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
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