traits/config/IPConfig.php
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
Open
<?php
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 0 Open
Open
*/
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 0 Open
Open
* @var int Decide whether to enable IP attributes. Zero means not enabled.
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 0 Open
Open
* All the parameters accepted are listed below.
- Exclude checks
The first parameter of a multi-line function declaration must be on the line after the opening bracket Open
Open
public int $enableIP = self::IP_ALL_ENABLED,
- Exclude checks
Arguments with default values must be at the end of the argument list Open
Open
public string $ipTypeAttribute = 'ip_type',
- Exclude checks
Closing brace must be on a line by itself Open
Open
) {}
- Exclude checks
Expected 1 newline at end of file; 0 found Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
public string $ipTypeAttribute = 'ip_type',
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
public string $ipAttribute = 'ip',
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
public int $enableIP = self::IP_ALL_ENABLED,
- Exclude checks