src/Utility/HTTPUtilities.php
private static function splitFilename($name)
    {
        if (is_array($name)) {
            $name = array_pop($name);
        } else {
            $name = explode('/', $name);
            $name = array_pop($name);
        }
        if (strrpos($name, '.') !== false) {
            return explode('.', $name);
        } else {
            return array($name, null);
        }
    }
private static function splitFilename($name)
    {
        if (is_array($name)) {
            $name = array_pop($name);
        } else {
            $name = explode('/', $name);
            $name = array_pop($name);
        }
        if (strrpos($name, '.') !== false) {
            return explode('.', $name);
        } else {
            return array($name, null);
        }
    }
private static function splitFilename ( $ name ) { if ( is_array ( $ name ) ) { $ name = array_pop ( $ name ) ; } else { $ name = explode ( '/' , $ name ) ; $ name = array_pop ( $ name ) ; } if ( strrpos ( $ name , '.' ) !== false ) { return explode ( '.' , $ name ) ; } else { return array ( $ name , null ) ; } }
Splits the passed filename into a name and extension and returns an array. The first element is the name, the
second is the extension.

@param string|array $name

@return string[] The first element is the name, the second element is the extension, or null if no extension
Splits the passed filename into a name and extension and returns an array . The first element is the name the second is the extension .