Issues (584)

header.php (2 issues)

Labels
Severity
1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
/**
13
 * wgGitHub module for xoops
14
 *
15
 * @copyright      2020 XOOPS Project (https://xooops.org)
16
 * @license        GPL 2.0 or later
17
 * @package        wggithub
18
 * @since          1.0
19
 * @min_xoops      2.5.10
20
 * @author         Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com>
21
 */
22
23
include \dirname(__DIR__, 2) . '/mainfile.php';
24
include __DIR__ . '/include/common.php';
25
$moduleDirName = \basename(__DIR__);
26
27
$helper = \XoopsModules\Wggithub\Helper::getInstance();
28
29
// Breadcrumbs
30
$xoBreadcrumbs = [];
31
if ($helper->getConfig('show_breadcrumbs')) {
32
    if (isset($GLOBALS['xoopsModule']) && \is_object($GLOBALS['xoopsModule'])) {
33
        $xoBreadcrumbs[] = ['title' => $GLOBALS['xoopsModule']->getVar('name'), 'link' => \WGGITHUB_URL . '/'];
34
    }
35
}
36
// Get instance of module
37
$settingsHandler = $helper->getHandler('Settings');
38
$repositoriesHandler = $helper->getHandler('Repositories');
39
$directoriesHandler = $helper->getHandler('Directories');
40
$logsHandler = $helper->getHandler('Logs');
41
$readmesHandler = $helper->getHandler('Readmes');
42
$releasesHandler = $helper->getHandler('Releases');
43
$permissionsHandler = $helper->getHandler('Permissions');
44
// 
45
$myts = MyTextSanitizer::getInstance();
0 ignored issues
show
The type MyTextSanitizer was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
46
// Default Css Style
47
$style = \WGGITHUB_URL . '/assets/css/style.css';
48
// Smarty Default
49
$sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16');
50
$sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32');
51
$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
52
$modPathIcon16 = $GLOBALS['xoopsModule']->getInfo('modicons16');
53
$modPathIcon32 = $GLOBALS['xoopsModule']->getInfo('modicons16');
54
// Load Languages
55
\xoops_loadLanguage('main');
0 ignored issues
show
The function xoops_loadLanguage was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

55
/** @scrutinizer ignore-call */ 
56
\xoops_loadLanguage('main');
Loading history...
56
\xoops_loadLanguage('modinfo');
57