1 | <?php |
||
2 | |||
3 | namespace ItsMeLePassos\HandBag\Bags; |
||
4 | |||
5 | use ItsMeLePassos\HandBag\Bag; |
||
6 | use ItsMeLePassos\HandBag\WearBag; |
||
7 | use Override; |
||
0 ignored issues
–
show
|
|||
8 | |||
9 | class SportsBag extends Bag implements WearBag |
||
10 | { |
||
11 | private string $relatedTo; |
||
12 | |||
13 | /** |
||
14 | * Set the related to information |
||
15 | * |
||
16 | * @param string|array $relatedTo The related to information |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | public function setRelatedTo(string|array $relatedTo): void |
||
21 | { |
||
22 | $relatedTo = array_filter($relatedTo); |
||
23 | $relatedTo = implode(", ", $relatedTo); |
||
24 | $this->relatedTo = $relatedTo; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Returns the related to information as a string |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getRelatedTo(): string |
||
33 | { |
||
34 | $relatedTo = "<h2>Esta bolsa é relacionada ao(s) esporte(s)</h2>"; |
||
35 | $relatedTo .= "<p>{$this->relatedTo}</p>"; |
||
36 | |||
37 | return $relatedTo; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * This function overrides the parent class function |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function wearBag(): string |
||
46 | { |
||
47 | return "Para todos os viciados em esporte!"; |
||
48 | } |
||
49 | } |
||
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