original_string: protected function _getMax()
      {
          $field = $this->_config['right'];
          $rightField = $this->_config['rightField'];
          $edge = $this->_scope($this->_table->find())
              ->select([$field])
              ->orderDesc($rightField)
              ->first();
  
          if (empty($edge->{$field})) {
              return 0;
          }
  
          return $edge->{$field};
      }
code: protected function _getMax()
      {
          $field = $this->_config['right'];
          $rightField = $this->_config['rightField'];
          $edge = $this->_scope($this->_table->find())
              ->select([$field])
              ->orderDesc($rightField)
              ->first();
  
          if (empty($edge->{$field})) {
              return 0;
          }
  
          return $edge->{$field};
      }
code_tokens: protected function _getMax ( ) { $ field = $ this -> _config [ 'right' ] ; $ rightField = $ this -> _config [ 'rightField' ] ; $ edge = $ this -> _scope ( $ this -> _table -> find ( ) ) -> select ( [ $ field ] ) -> orderDesc ( $ rightField ) -> first ( ) ; if ( empty ( $ edge -> { $ field } ) ) { return 0 ; } return $ edge -> { $ field } ; }
docstring: Returns the maximum index value in the table.
  
  @return int
docstring_tokens: Returns the maximum index value in the table .