protected function deletingFilesNamesList($files) : array
	{
		return $files->flatMap(function($item) {
			$path_parts = pathinfo($item);
			$result[] = $path_parts['filename'];

			return $result;
		})->filter(function($item) {
			return trim($item) != '';
		})->all();
	}
protected function deletingFilesNamesList($files) : array
	{
		return $files->flatMap(function($item) {
			$path_parts = pathinfo($item);
			$result[] = $path_parts['filename'];

			return $result;
		})->filter(function($item) {
			return trim($item) != '';
		})->all();
	}
protected function deletingFilesNamesList ( $ files ) : array { return $ files -> flatMap ( function ( $ item ) { $ path_parts = pathinfo ( $ item ) ; $ result [ ] = $ path_parts [ 'filename' ] ; return $ result ; } ) -> filter ( function ( $ item ) { return trim ( $ item ) != '' ; } ) -> all ( ) ; }
Returns a sanitized deleting files list.

@param  Collection $files

@return array
Returns a sanitized deleting files list .