rhosocial/yii2-base-models

View on GitHub
traits/config/IPConfig.php

Summary

Maintainability
A
0 mins
Test Coverage

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 18 and the first side effect is on line 18.
Open

<?php
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var int Decide whether to enable IP attributes. Zero means not enabled.
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * All the parameters accepted are listed below.
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

The first parameter of a multi-line function declaration must be on the line after the opening bracket
Open

        public int $enableIP = self::IP_ALL_ENABLED,
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Arguments with default values must be at the end of the argument list
Open

        public string $ipTypeAttribute = 'ip_type',
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Closing brace must be on a line by itself
Open

    ) {}
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Expected 1 newline at end of file; 0 found
Open

}
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        public string $ipTypeAttribute = 'ip_type',
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        public string $ipAttribute = 'ip',
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        public int $enableIP = self::IP_ALL_ENABLED,
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

There are no issues that match your filters.

Category
Status