original_string: public function is_discussion_locked(discussion_entity $discussion) : bool {
          if ($discussion->is_locked()) {
              return true;
          }
  
          return $this->is_discussion_time_locked($discussion);
      }
code: public function is_discussion_locked(discussion_entity $discussion) : bool {
          if ($discussion->is_locked()) {
              return true;
          }
  
          return $this->is_discussion_time_locked($discussion);
      }
code_tokens: public function is_discussion_locked ( discussion_entity $ discussion ) : bool { if ( $ discussion -> is_locked ( ) ) { return true ; } return $ this -> is_discussion_time_locked ( $ discussion ) ; }
docstring: Is the discussion locked? - Takes into account both discussion settings AND forum's criteria
  
  @param discussion_entity $discussion The discussion to check
  @return bool
docstring_tokens: Is the discussion locked? - Takes into account both discussion settings AND forum s criteria