| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2.003 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 5 | #[Override] |
|
| 33 | public function getCurrentUserDepositMinings(ColonyInterface $colony): array |
||
| 34 | { |
||
| 35 | 5 | $result = []; |
|
| 36 | |||
| 37 | foreach ( |
||
| 38 | 5 | $this->findBy( |
|
| 39 | 5 | [ |
|
| 40 | 5 | 'user' => $colony->getUser(), |
|
| 41 | 5 | 'colony' => $colony |
|
| 42 | 5 | ], |
|
| 43 | 5 | ['commodity_id' => 'ASC'] |
|
| 44 | 5 | ) as $deposit |
|
| 45 | ) { |
||
| 46 | $result[$deposit->getCommodity()->getId()] = $deposit; |
||
| 47 | } |
||
| 48 | |||
| 49 | 5 | return $result; |
|
| 50 | } |
||
| 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