original_string: public function getIssuesBySeverity(string $severity): array
      {
          return array_values(array_filter($this->getIssues(), function(Issue $i) use ($severity) {
              return $i->getSeverity() === $severity;
          }));
      }
code: public function getIssuesBySeverity(string $severity): array
      {
          return array_values(array_filter($this->getIssues(), function(Issue $i) use ($severity) {
              return $i->getSeverity() === $severity;
          }));
      }
code_tokens: public function getIssuesBySeverity ( string $ severity ) : array { return array_values ( array_filter ( $ this -> getIssues ( ) , function ( Issue $ i ) use ( $ severity ) { return $ i -> getSeverity ( ) === $ severity ; } ) ) ; }
docstring: Gets all issues for this file that have a certain severity.
  
  @param string $severity The severity. Should be one of the Issue class' SEVERITY_* constants
  @return Issue[] All issues with the given severity
docstring_tokens: Gets all issues for this file that have a certain severity .