Passed
Push — master ( 8005c7...9b803d )
by Goffy
03:14
created

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
// Breadcrumbs
27
$xoBreadcrumbs = [];
28
$xoBreadcrumbs[] = ['title' => _MA_WGGITHUB_TITLE, 'link' => WGGITHUB_URL . '/'];
29
// Get instance of module
30
$helper = \XoopsModules\Wggithub\Helper::getInstance();
31
$settingsHandler = $helper->getHandler('Settings');
32
$repositoriesHandler = $helper->getHandler('Repositories');
33
$directoriesHandler = $helper->getHandler('Directories');
34
$logsHandler = $helper->getHandler('Logs');
35
$readmesHandler = $helper->getHandler('Readmes');
36
$releasesHandler = $helper->getHandler('Releases');
37
$permissionsHandler = $helper->getHandler('Permissions');
38
// 
39
$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...
40
// Default Css Style
41
$style = WGGITHUB_URL . '/assets/css/style.css';
42
// Smarty Default
43
$sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16');
44
$sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32');
45
$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
46
$modPathIcon16 = $GLOBALS['xoopsModule']->getInfo('modicons16');
47
$modPathIcon32 = $GLOBALS['xoopsModule']->getInfo('modicons16');
48
// Load Languages
49
\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

49
/** @scrutinizer ignore-call */ 
50
\xoops_loadLanguage('main');
Loading history...
50
\xoops_loadLanguage('modinfo');
51