original_string: private function performDeleteMedia($type, $path)
      {
          switch (Str::lower($type)) {
              case Media::MEDIA_TYPE_FILE:
                  return $this->media->deleteFile($path);
  
              case Media::MEDIA_TYPE_DIRECTORY:
                  return $this->media->deleteDirectory(trim($path, '/'));
  
              default:
                  return false;
          }
      }
code: private function performDeleteMedia($type, $path)
      {
          switch (Str::lower($type)) {
              case Media::MEDIA_TYPE_FILE:
                  return $this->media->deleteFile($path);
  
              case Media::MEDIA_TYPE_DIRECTORY:
                  return $this->media->deleteDirectory(trim($path, '/'));
  
              default:
                  return false;
          }
      }
code_tokens: private function performDeleteMedia ( $ type , $ path ) { switch ( Str :: lower ( $ type ) ) { case Media :: MEDIA_TYPE_FILE : return $ this -> media -> deleteFile ( $ path ) ; case Media :: MEDIA_TYPE_DIRECTORY : return $ this -> media -> deleteDirectory ( trim ( $ path , '/' ) ) ; default : return false ; } }
docstring: Perform the media deletion.
  
  @param  string  $type
  @param  string  $path
  
  @return bool
docstring_tokens: Perform the media deletion .