src/Thumbnail.php
public static function cleanThumbnail(): array
    {
        $result = [];
        $files = Finder::findFiles('*')->in(self::$parameters['thumbPath']);
        foreach ($files as $file) {
            if (unlink($file->getPathname())) {
                $result[] = $file->getPathname();
            }
        }
        return $result;
    }
public static function cleanThumbnail(): array
    {
        $result = [];
        $files = Finder::findFiles('*')->in(self::$parameters['thumbPath']);
        foreach ($files as $file) {
            if (unlink($file->getPathname())) {
                $result[] = $file->getPathname();
            }
        }
        return $result;
    }
public static function cleanThumbnail ( ) : array { $ result = [ ] ; $ files = Finder :: findFiles ( '*' ) -> in ( self :: $ parameters [ 'thumbPath' ] ) ; foreach ( $ files as $ file ) { if ( unlink ( $ file -> getPathname ( ) ) ) { $ result [ ] = $ file -> getPathname ( ) ; } } return $ result ; }
Clean thumbnail.

@return array
Clean thumbnail .