protected function getItemsOfDeletedFiles(Storage $storage, Finder $finder)
    {
        $items = [];
        // check of delete file for item
        foreach ($storage->getItems() as $item) {
            foreach ($finder as $file) {
                if (pathinfo($item->getPath(), PATHINFO_BASENAME) == $file->getFilename()) {
                    continue 2;
                }
            }
            $items[] = $item;
        }

        return $items;
    }
protected function getItemsOfDeletedFiles(Storage $storage, Finder $finder)
    {
        $items = [];
        // check of delete file for item
        foreach ($storage->getItems() as $item) {
            foreach ($finder as $file) {
                if (pathinfo($item->getPath(), PATHINFO_BASENAME) == $file->getFilename()) {
                    continue 2;
                }
            }
            $items[] = $item;
        }

        return $items;
    }
protected function getItemsOfDeletedFiles ( Storage $ storage , Finder $ finder ) { $ items = [ ] ; // check of delete file for item foreach ( $ storage -> getItems ( ) as $ item ) { foreach ( $ finder as $ file ) { if ( pathinfo ( $ item -> getPath ( ) , PATHINFO_BASENAME ) == $ file -> getFilename ( ) ) { continue 2 ; } } $ items [ ] = $ item ; } return $ items ; }
Get items of deleted files.

@param Storage $storage
@param Finder $finder

@return array
Get items of deleted files .