original_string: private static function generateColumns(array $columns, array $unique)
      {
          $definition = '';
          foreach ($columns as $column) {
              $tmp = sprintf("    '%s' => \$this->%s%s,\n",
                  $column->name, static::getSchemaType($column), static::other($column, $unique));
  
              if (null !== $column->enumValues) {
                  $tmp = static::replaceEnumColumn($tmp);
              }
              $definition .= $tmp;
          }
          return $definition;
      }
code: private static function generateColumns(array $columns, array $unique)
      {
          $definition = '';
          foreach ($columns as $column) {
              $tmp = sprintf("    '%s' => \$this->%s%s,\n",
                  $column->name, static::getSchemaType($column), static::other($column, $unique));
  
              if (null !== $column->enumValues) {
                  $tmp = static::replaceEnumColumn($tmp);
              }
              $definition .= $tmp;
          }
          return $definition;
      }
code_tokens: private static function generateColumns ( array $ columns , array $ unique ) { $ definition = '' ; foreach ( $ columns as $ column ) { $ tmp = sprintf ( "    '%s' => \$this->%s%s,\n" , $ column -> name , static :: getSchemaType ( $ column ) , static :: other ( $ column , $ unique ) ) ; if ( null !== $ column -> enumValues ) { $ tmp = static :: replaceEnumColumn ( $ tmp ) ; } $ definition .= $ tmp ; } return $ definition ; }
docstring: Returns the columns definition.
  @param array $columns
  @param array $unique unique indexes
  @return string
docstring_tokens: Returns the columns definition .