public function parseAuthorizedIps($ips)
    {
        $ips = trim($ips);

        if (is_string($ips) && !empty($ips))
        {
            $ips = explode(PHP_EOL, $ips);
        }

        return $this->filterOutArrayValues(
            $ips, function($val) {
            return preg_match('/^[0-9\.\*]{5,15}$/i', $val);
        }
        );
    }
public function parseAuthorizedIps($ips)
    {
        $ips = trim($ips);

        if (is_string($ips) && !empty($ips))
        {
            $ips = explode(PHP_EOL, $ips);
        }

        return $this->filterOutArrayValues(
            $ips, function($val) {
            return preg_match('/^[0-9\.\*]{5,15}$/i', $val);
        }
        );
    }
public function parseAuthorizedIps ( $ ips ) { $ ips = trim ( $ ips ) ; if ( is_string ( $ ips ) && ! empty ( $ ips ) ) { $ ips = explode ( PHP_EOL , $ ips ) ; } return $ this -> filterOutArrayValues ( $ ips , function ( $ val ) { return preg_match ( '/^[0-9\.\*]{5,15}$/i' , $ val ) ; } ) ; }
Parses authorizedIps to ensure they are valid even when created from a string

@param array|string $ips

@return array
Parses authorizedIps to ensure they are valid even when created from a string