original_string: public function destroy(UserPolicy $user, Gallery $gallery)
      {
          return $gallery->user_id == user_id() && $gallery->user_type == user_type();
      }
code: public function destroy(UserPolicy $user, Gallery $gallery)
      {
          return $gallery->user_id == user_id() && $gallery->user_type == user_type();
      }
code_tokens: public function destroy ( UserPolicy $ user , Gallery $ gallery ) { return $ gallery -> user_id == user_id ( ) && $ gallery -> user_type == user_type ( ) ; }
docstring: Determine if the given user can delete the given gallery.
  
  @param UserPolicy $user
  @param Gallery $gallery
  
  @return bool
docstring_tokens: Determine if the given user can delete the given gallery .