Showing 589 of 589 total issues
Expected 1 blank line at end of file; 2 found Open
Open
];
- Exclude checks
There must be one blank line after the last USE statement; 0 found; Open
Open
use XoopsModules\Xlanguage;
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{Common\Configurator,
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{Helper
- Exclude checks
Function getEditor
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function getEditor($helper = null, $options = null)
{
if (null === $options) {
$options = [];
$options['name'] = 'Editor';
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{Helper,
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{
- Exclude checks
There must be one blank line after the last USE statement; 0 found; Open
Open
use XoopsModules\Xlanguage\Helper;
- Exclude checks
There must be one blank line after the last USE statement; 13 found; Open
Open
use XoopsObject;
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{Helper
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
There must be one blank line after the last USE statement; 3 found; Open
Open
use XoopsModules\Xlanguage;
- Exclude checks
There must be one blank line after the last USE statement; 17 found; Open
Open
use XoopsObjectHandler;
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{Common
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $dirname;
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Xlanguage\{Helper,
- Exclude checks
Expected 1 blank line at end of file; 2 found Open
Open
}
- Exclude checks
There must be one blank line after the last USE statement; 3 found; Open
Open
use XoopsDatabaseFactory;
- Exclude checks
There must be one blank line after the last USE statement; 27 found; Open
Open
use XoopsModule;
- Exclude checks