protected function parsePattern($pattern)
    {
        $patterns = explode(';', $pattern);
        if (!isset($patterns[1])) {
            // No explicit negative pattern was provided, construct it.
            $patterns[1] = '-' . $patterns[0];
        }
        return $patterns;
    }
protected function parsePattern($pattern)
    {
        $patterns = explode(';', $pattern);
        if (!isset($patterns[1])) {
            // No explicit negative pattern was provided, construct it.
            $patterns[1] = '-' . $patterns[0];
        }
        return $patterns;
    }
protected function parsePattern ( $ pattern ) { $ patterns = explode ( ';' , $ pattern ) ; if ( ! isset ( $ patterns [ 1 ] ) ) { // No explicit negative pattern was provided, construct it. $ patterns [ 1 ] = '-' . $ patterns [ 0 ] ; } return $ patterns ; }
Parses the given pattern and returns patterns for positive and negative numbers

@param string $pattern
@return array
Parses the given pattern and returns patterns for positive and negative numbers