public function parse($request) {
        if (!preg_match('#'.self::PATTERN.'#', $request, $matches)) return false;
        return [
            $this->relativePath($matches[1].'.'.$matches[5]), // Path
            $matches[2] == '_' ? null : (int) $matches[2],    // Width
            $matches[3] == '_' ? null : (int) $matches[3],    // Height
            $this->options($matches[4]),                      // Options
        ];
    }
public function parse($request) {
        if (!preg_match('#'.self::PATTERN.'#', $request, $matches)) return false;
        return [
            $this->relativePath($matches[1].'.'.$matches[5]), // Path
            $matches[2] == '_' ? null : (int) $matches[2],    // Width
            $matches[3] == '_' ? null : (int) $matches[3],    // Height
            $this->options($matches[4]),                      // Options
        ];
    }
public function parse ( $ request ) { if ( ! preg_match ( '#' . self :: PATTERN . '#' , $ request , $ matches ) ) return false ; return [ $ this -> relativePath ( $ matches [ 1 ] . '.' . $ matches [ 5 ] ) , // Path $ matches [ 2 ] == '_' ? null : ( int ) $ matches [ 2 ] , // Width $ matches [ 3 ] == '_' ? null : ( int ) $ matches [ 3 ] , // Height $ this -> options ( $ matches [ 4 ] ) , // Options ] ; }
Parse a request path into Croppa instructions

@param string $request
@return array | boolean
Parse a request path into Croppa instructions