original_string: protected function get_row_attributes($capability) {
          $rowattributes = parent::get_row_attributes($capability);
          if ($this->permissions[$capability->name] !== 0) {
              if (empty($rowattributes['class'])) {
                  $rowattributes['class'] = "overriddenpermission";
              } else {
                  $rowattributes['class'] .= " overriddenpermission";
              }
          }
          return $rowattributes;
      }
code: protected function get_row_attributes($capability) {
          $rowattributes = parent::get_row_attributes($capability);
          if ($this->permissions[$capability->name] !== 0) {
              if (empty($rowattributes['class'])) {
                  $rowattributes['class'] = "overriddenpermission";
              } else {
                  $rowattributes['class'] .= " overriddenpermission";
              }
          }
          return $rowattributes;
      }
code_tokens: protected function get_row_attributes ( $ capability ) { $ rowattributes = parent :: get_row_attributes ( $ capability ) ; if ( $ this -> permissions [ $ capability -> name ] !== 0 ) { if ( empty ( $ rowattributes [ 'class' ] ) ) { $ rowattributes [ 'class' ] = "overriddenpermission" ; } else { $ rowattributes [ 'class' ] .= " overriddenpermission" ; } } return $ rowattributes ; }
docstring: This method adds an additional class to a row if capability is other than inherited.
  
  @param stdClass $capability
  @return array
docstring_tokens: This method adds an additional class to a row if capability is other than inherited .