Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public static function dbFleetsOnHoldOnPlanetsByIds($planetIds, $time = SN_TIME_NOW) { |
||
21 | if(empty($planetIds) || !is_array($planetIds)) { |
||
22 | return new EmptyCountableIterator(); |
||
23 | } |
||
24 | |||
25 | return SN::$db->selectIterator("SELECT `{{fleets}}`.* |
||
26 | FROM `{{fleets}}` |
||
27 | LEFT JOIN `{{users}}` ON id = fleet_owner |
||
28 | WHERE |
||
29 | fleet_end_planet_id IN (" . implode(',', $planetIds) . ") |
||
30 | AND fleet_mess = 0 |
||
31 | AND fleet_start_time <= " . $time . " |
||
32 | AND fleet_end_stay >= " . $time . " |
||
33 | FOR UPDATE"); |
||
55 |
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