original_string: protected function deleteRelatedFiles($deleting)
  	{
  		$files = $this->deletingFilesNamesList($deleting);
  
  		foreach ($files as $file) {
  			foreach (Storage::files($this->directory) as $relative) {
  				if (strpos($relative, $file) !== false) {
  					Storage::delete($relative);
  				}
  			}
  		}
  	}
code: protected function deleteRelatedFiles($deleting)
  	{
  		$files = $this->deletingFilesNamesList($deleting);
  
  		foreach ($files as $file) {
  			foreach (Storage::files($this->directory) as $relative) {
  				if (strpos($relative, $file) !== false) {
  					Storage::delete($relative);
  				}
  			}
  		}
  	}
code_tokens: protected function deleteRelatedFiles ( $ deleting ) { $ files = $ this -> deletingFilesNamesList ( $ deleting ) ; foreach ( $ files as $ file ) { foreach ( Storage :: files ( $ this -> directory ) as $ relative ) { if ( strpos ( $ relative , $ file ) !== false ) { Storage :: delete ( $ relative ) ; } } } }
docstring: Delete the files related to the ones to be delete.
  
  @param Collection $deleting
  
  @return void
docstring_tokens: Delete the files related to the ones to be delete .