original_string: public function getRelationSorting($tableName, $uidLocal)
      {
          if (!$this->relationSorting[$tableName][$uidLocal]) {
              $this->relationSorting[$tableName][$uidLocal] = 0;
          }
  
          $this->relationSorting[$tableName][$uidLocal]++;
  
          return $this->relationSorting[$tableName][$uidLocal];
      }
code: public function getRelationSorting($tableName, $uidLocal)
      {
          if (!$this->relationSorting[$tableName][$uidLocal]) {
              $this->relationSorting[$tableName][$uidLocal] = 0;
          }
  
          $this->relationSorting[$tableName][$uidLocal]++;
  
          return $this->relationSorting[$tableName][$uidLocal];
      }
code_tokens: public function getRelationSorting ( $ tableName , $ uidLocal ) { if ( ! $ this -> relationSorting [ $ tableName ] [ $ uidLocal ] ) { $ this -> relationSorting [ $ tableName ] [ $ uidLocal ] = 0 ; } $ this -> relationSorting [ $ tableName ] [ $ uidLocal ] ++ ; return $ this -> relationSorting [ $ tableName ] [ $ uidLocal ] ; }
docstring: Returns the next sorting value of the relation table which should be used.
  
  Note: This function does not take already existing relations in the
  database (which were created without using the testing framework) into
  account. So you always should create new dummy records and create a
  relation between these two dummy records, so you're sure there are not
  already relations for a local UID in the database.
  
  @param string $tableName
  the relation table, must not be empty
  @param int $uidLocal
  UID of the local table, must be > 0
  
  @return int the next sorting value to use (> 0)
  
  @see https://bugs.oliverklee.com/show_bug.cgi?id=1423
docstring_tokens: Returns the next sorting value of the relation table which should be used .