Passed
Pull Request — master (#18)
by Michael
02:50
created

xoops_module_pre_install_xoopspoll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
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
 * Xoopspoll install functions.php
14
 *
15
 * @copyright:: {@link https://xoops.org/ XOOPS Project}
16
 * @license  ::   {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
17
 * @package  ::   xoopspoll
18
 * @since    ::     1.40
19
 * @author   ::    zyspec <[email protected]>
20
 * @param \XoopsModule $module
21
 * @return bool
22
 */
23
function xoops_module_pre_install_xoopspoll(\XoopsModule $module)
0 ignored issues
show
Unused Code introduced by
The parameter $module is not used and could be removed. ( Ignorable by Annotation )

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

23
function xoops_module_pre_install_xoopspoll(/** @scrutinizer ignore-unused */ \XoopsModule $module)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
{
25
    //    $db = \XoopsDatabaseFactory::getDatabaseConnection();
26
    $retVal = true;
27
28
    return $retVal;
29
}
30
31
/**
32
 * @param \XoopsModule $module
33
 * @return bool
34
 */
35
function xoops_module_install_xoopspoll(\XoopsModule $module)
0 ignored issues
show
Unused Code introduced by
The parameter $module is not used and could be removed. ( Ignorable by Annotation )

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

35
function xoops_module_install_xoopspoll(/** @scrutinizer ignore-unused */ \XoopsModule $module)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
36
{
37
    $retVal = true;
38
39
    return $retVal;
40
}
41