Conditions | 3 |
Paths | 4 |
Total Lines | 28 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types=1); |
||
20 | function b_waiting_wggallery() |
||
21 | { |
||
22 | /** @var \XoopsMySQLDatabase $xoopsDB */ |
||
23 | $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
24 | $ret = []; |
||
25 | // images waiting for approvement |
||
26 | $block = []; |
||
27 | $sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('wggallery_images') . ' WHERE img_state=' . Constants::STATE_APPROVAL_VAL; |
||
28 | $result = $xoopsDB->query($sql); |
||
29 | if ($result) { |
||
30 | $block['adminlink'] = XOOPS_URL . '/modules/wggallery/admin/images.php'; |
||
31 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
32 | $block['lang_linkname'] = _PI_WAITING_WAITINGS; |
||
33 | } |
||
34 | $ret[] = $block; |
||
35 | |||
36 | // albums waiting for approvement |
||
37 | $block = []; |
||
38 | $sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('wggallery_albums') . ' WHERE alb_state=' . Constants::STATE_APPROVAL_VAL; |
||
39 | $result = $xoopsDB->query($sql); |
||
40 | if ($result) { |
||
41 | $block['adminlink'] = XOOPS_URL . '/modules/wggallery/admin/albums.php'; |
||
42 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
43 | $block['lang_linkname'] = _PI_WAITING_WAITINGS; |
||
44 | } |
||
45 | $ret[] = $block; |
||
46 | |||
47 | return $ret; |
||
48 | } |
||
49 |
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