detain/iptools

View on GitHub

Showing 352 of 352 total issues

Whitespace found at end of line
Open

     * Same as contains but works on an array of IP|Network|Range and returns true if any of the array items are in the range 
Severity: Minor
Found in src/Range.php by phpcodesniffer

Whitespace found at end of line
Open

     * Same as contains but works on an array of IP|Network|Range and returns true if all of the array items are in the range 
Severity: Minor
Found in src/Range.php by phpcodesniffer

Whitespace found at end of line
Open

     * 
Severity: Minor
Found in src/Range.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 4
Open

        for ($i = 0; $i < $to; $i++)    {
Severity: Minor
Found in src/IP.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

            if(method_exists($this, $method)) {
Severity: Minor
Found in src/PropertyTrait.php by phpcodesniffer

No space found after comma in function call
Open

        if (strpos($data,'/') || strpos($data,' ')) {
Severity: Minor
Found in src/Range.php by phpcodesniffer

No space found after comma in function call
Open

        if (!preg_match('/^1*0*$/',$ip->toBin())) {
Severity: Minor
Found in src/Network.php by phpcodesniffer

No space found after comma in function call
Open

        if (strpos($data,'/') || strpos($data,' ')) {
Severity: Minor
Found in src/Range.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

        if(method_exists($this, $name)) {
Severity: Minor
Found in src/PropertyTrait.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 4
Open

        for ($i = 0; $i < $to; $i++)    {
Severity: Minor
Found in src/IP.php by phpcodesniffer

No space found after comma in function call
Open

        } elseif (strpos($data,' ')) {
Severity: Minor
Found in src/Network.php by phpcodesniffer

Whitespace found at end of line
Open

     * 
Severity: Minor
Found in src/Range.php by phpcodesniffer
Severity
Category
Status
Source
Language