source); if ($file !== false && $file !== '.' && $file !== '..') { $file = trim(Filesystem::normalizePath($file), '/'); } return $file; } /** * @param resource $source * @return resource|false */ public static function wrap($source) { return self::wrapSource($source, [ 'source' => $source, ]); } }