| Conditions | 3 |
| Paths | 4 |
| Total Lines | 29 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 20 | function b_waiting_wgtransifex() |
||
| 21 | { |
||
| 22 | /** @var \XoopsMySQLDatabase $xoopsDB */ |
||
| 23 | $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
| 24 | $ret = []; |
||
| 25 | |||
| 26 | // packages notified as broken |
||
| 27 | $block = []; |
||
| 28 | $sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('wgtransifex_packages') . ' WHERE pkg_status=' . Constants::STATUS_BROKEN; |
||
| 29 | $result = $xoopsDB->query($sql); |
||
| 30 | if ($result) { |
||
| 31 | $block['adminlink'] = XOOPS_URL . '/modules/wgtransifex/admin/packages.php'; |
||
| 32 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
| 33 | $block['lang_linkname'] = _PI_WAITING_BROKENS; |
||
| 34 | } |
||
| 35 | $ret[] = $block; |
||
| 36 | |||
| 37 | // waiting requests for new language packages |
||
| 38 | $block = []; |
||
| 39 | $sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('wgtransifex_requests') . ' WHERE req_status=' . Constants::STATUS_PENDING; |
||
| 40 | $result = $xoopsDB->query($sql); |
||
| 41 | if ($result) { |
||
| 42 | $block['adminlink'] = XOOPS_URL . '/modules/wgtransifex/admin/requests.php'; |
||
| 43 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
| 44 | $block['lang_linkname'] = _PI_WAITING_REQUESTS; |
||
| 45 | } |
||
| 46 | $ret[] = $block; |
||
| 47 | |||
| 48 | return $ret; |
||
| 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