src/Maleeby/MRest/Routing.php
public static function analizeUri() {
        $uri = self::getUri();
        $uriInfo = pathinfo($uri);

        if (!isset($uriInfo['dirname']) || $uriInfo['dirname'] == '.') {
            $uriInfo['dirname'] = '';
        }

        return [
            'type' => isset($uriInfo['extension']) ? $uriInfo['extension'] : MRest::getConfig()['contentType'],
            'uri' => self::fixUri($uriInfo['dirname'] . '/' . $uriInfo['filename'])
        ];
    }
public static function analizeUri() {
        $uri = self::getUri();
        $uriInfo = pathinfo($uri);

        if (!isset($uriInfo['dirname']) || $uriInfo['dirname'] == '.') {
            $uriInfo['dirname'] = '';
        }

        return [
            'type' => isset($uriInfo['extension']) ? $uriInfo['extension'] : MRest::getConfig()['contentType'],
            'uri' => self::fixUri($uriInfo['dirname'] . '/' . $uriInfo['filename'])
        ];
    }
public static function analizeUri ( ) { $ uri = self :: getUri ( ) ; $ uriInfo = pathinfo ( $ uri ) ; if ( ! isset ( $ uriInfo [ 'dirname' ] ) || $ uriInfo [ 'dirname' ] == '.' ) { $ uriInfo [ 'dirname' ] = '' ; } return [ 'type' => isset ( $ uriInfo [ 'extension' ] ) ? $ uriInfo [ 'extension' ] : MRest :: getConfig ( ) [ 'contentType' ] , 'uri' => self :: fixUri ( $ uriInfo [ 'dirname' ] . '/' . $ uriInfo [ 'filename' ] ) ] ; }
Make an analize of the URI.
Returns the output content type and the URI

@return array
Make an analize of the URI . Returns the output content type and the URI