Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | trait Submissions |
||
11 | { |
||
12 | /** |
||
13 | * Add submission |
||
14 | * |
||
15 | * @param \App\Entity\Submission $submission |
||
16 | * @return object |
||
17 | */ |
||
18 | public function addSubmission(Submission $submission) |
||
19 | { |
||
20 | if (!$this->submissions->contains($submission)) { |
||
21 | $this->submissions->add($submission); |
||
22 | } |
||
23 | |||
24 | return $this; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Remove submission |
||
29 | * |
||
30 | * @param \App\Entity\Submission $submission |
||
31 | * @return object |
||
32 | */ |
||
33 | public function removeSubmission(Submission $submission) |
||
34 | { |
||
35 | if ($this->submissions->contains($submission)) { |
||
36 | $this->submissions->removeElement($submission); |
||
37 | } |
||
38 | |||
39 | return $this; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Get submissions |
||
44 | * |
||
45 | * @return \Doctrine\Common\Collections\ArrayCollection |
||
|
|||
46 | */ |
||
47 | public function getSubmissions() |
||
50 | } |
||
51 | } |
||
52 |
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