original_string: public function getNextWeight($collection_id)
      {
          $sql = 'SELECT MAX(weight) FROM collection_item WHERE collection_id=?';
          $weight = (int) $this->db->fetchColumn($sql, array($collection_id));
          return ++$weight;
      }
code: public function getNextWeight($collection_id)
      {
          $sql = 'SELECT MAX(weight) FROM collection_item WHERE collection_id=?';
          $weight = (int) $this->db->fetchColumn($sql, array($collection_id));
          return ++$weight;
      }
code_tokens: public function getNextWeight ( $ collection_id ) { $ sql = 'SELECT MAX(weight) FROM collection_item WHERE collection_id=?' ; $ weight = ( int ) $ this -> db -> fetchColumn ( $ sql , array ( $ collection_id ) ) ; return ++ $ weight ; }
docstring: Returns the next possible weight for a collection item
  @param integer $collection_id
  @return integer
docstring_tokens: Returns the next possible weight for a collection item