src/UploadedFile.php
public static function createFromGlobals(array $globals)
    {
        $env = new \Sofi\Base\Collection($globals);
        if (is_array($env['slim.files']) && $env->has('slim.files')) {
            return $env['slim.files'];
        } elseif (isset($_FILES)) {
            return static::parseUploadedFiles($_FILES);
        }
        return [];
    }
public static function createFromGlobals(array $globals)
    {
        $env = new \Sofi\Base\Collection($globals);
        if (is_array($env['slim.files']) && $env->has('slim.files')) {
            return $env['slim.files'];
        } elseif (isset($_FILES)) {
            return static::parseUploadedFiles($_FILES);
        }
        return [];
    }
public static function createFromGlobals ( array $ globals ) { $ env = new \ Sofi \ Base \ Collection ( $ globals ) ; if ( is_array ( $ env [ 'slim.files' ] ) && $ env -> has ( 'slim.files' ) ) { return $ env [ 'slim.files' ] ; } elseif ( isset ( $ _FILES ) ) { return static :: parseUploadedFiles ( $ _FILES ) ; } return [ ] ; }
Create a normalized tree of UploadedFile instances from global server variables.

@param array $globals The global server variables.

@return array|null A normalized tree of UploadedFile instances or null if none are provided.
Create a normalized tree of UploadedFile instances from global server variables .