public static function get($filePath)
    {
        $fileName = basename($filePath);
        if (!array_key_exists($fileName, static::$files)) {
            try {
                $file = new File($filePath);
            } catch (\Exception $e) {
                $file = false;
            }

            static::$files[$fileName] = $file;
        }

        return static::$files[$fileName];
    }
public static function get($filePath)
    {
        $fileName = basename($filePath);
        if (!array_key_exists($fileName, static::$files)) {
            try {
                $file = new File($filePath);
            } catch (\Exception $e) {
                $file = false;
            }

            static::$files[$fileName] = $file;
        }

        return static::$files[$fileName];
    }
public static function get ( $ filePath ) { $ fileName = basename ( $ filePath ) ; if ( ! array_key_exists ( $ fileName , static :: $ files ) ) { try { $ file = new File ( $ filePath ) ; } catch ( \ Exception $ e ) { $ file = false ; } static :: $ files [ $ fileName ] = $ file ; } return static :: $ files [ $ fileName ] ; }
Gets a file from container,
or create a new one if not present.

@param string $filePath

@return File
Gets a file from container or create a new one if not present .