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