Passed
Push — master ( 48d769...5ccf6e )
by Michael
07:14
created

header.php (3 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
 * pedigree module
13
 *
14
 * @copyright       {@link https://xoops.org/  XOOPS Project}
15
 * @license         {@link http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later}
16
 * @package         pedigree
17
 * @author          Xoops Module Dev Team
18
 */
19
20
use XoopsModules\Pedigree;
21
22
require_once  dirname(dirname(__DIR__)) . '/mainfile.php';
23
require_once __DIR__ . '/include/common.php';
24
25
$moduleDirName = basename(__DIR__);
26
xoops_loadLanguage('main', $moduleDirName);
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

26
/** @scrutinizer ignore-call */ 
27
xoops_loadLanguage('main', $moduleDirName);
Loading history...
27
$pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16);
0 ignored issues
show
The type Xmf\Module\Admin 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...
28
29
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) {
0 ignored issues
show
The type XoopsTpl 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...
30
    require_once $GLOBALS['xoops']->path('class/template.php');
31
    $GLOBALS['xoopsTpl'] = new \XoopsTpl();
32
}
33
//$xoops = Xoops::getInstance();
34
//$xoopsTpl = $xoops->tpl();
35
36
$GLOBALS['xoopsTpl']->assign('mod_url', PEDIGREE_URL); //<{$mod_url}>
37
38
// uncomment the below line only if you are using Protector 3.x module
39
// and you trust your users when uploading files, it is recommended to not allow anonymous uploads if you do so!!
40
//define('PROTECTOR_SKIP_FILESCHECKER', true);
41