Conditions | 3 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
70 | public static function getMobileUserLinkedSources(int $usersId): array |
||
71 | { |
||
72 | $userDevicesArray = [ |
||
73 | 2 => [], |
||
74 | 3 => [] |
||
75 | ]; |
||
76 | |||
77 | /** |
||
78 | * @todo change this from ID's to use the actual definition of the android / ios apps |
||
79 | */ |
||
80 | $linkedSource = UserLinkedSources::find([ |
||
81 | 'conditions' => 'users_id = ?0 and source_id in (2,3)', |
||
82 | 'bind' => [$usersId] |
||
83 | ]); |
||
84 | |||
85 | if ($linkedSource) { |
||
86 | //add to list of devices id |
||
87 | foreach ($linkedSource as $device) { |
||
88 | $userDevicesArray[$device->source_id][] = $device->source_users_id_text; |
||
89 | } |
||
90 | } |
||
91 | |||
92 | return $userDevicesArray; |
||
93 | |||
96 |
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