original_string: private static function other($column, array $unique)
      {
          $definition = '';
  
          // size
          if (null !== $column->scale && 0 < $column->scale) {
              $definition .= "($column->precision,$column->scale)";
  
          } elseif (null !== $column->size && !$column->autoIncrement && 'tinyint(1)' !== $column->dbType) {
              $definition .= "($column->size)";
  
          } elseif (null !== $column->size && !$column->isPrimaryKey && $column->unsigned) {
              $definition .= "($column->size)";
          }
  
          // unsigned
          if ($column->unsigned) {
              $definition .= '->unsigned()';
          }
  
          // null
          if ($column->allowNull) {
              $definition .= '->null()';
  
          } elseif (!$column->autoIncrement) {
              $definition .= '->notNull()';
          }
  
          // unique key
          if (!$column->isPrimaryKey && !empty($unique)) {
              foreach ($unique as $name) {
                  if (reset($name) === $column->name) {
                      $definition .= '->unique()';
                  }
              }
          }
  
          // default value
          if ($column->defaultValue instanceof Expression) {
              $definition .= "->defaultExpression('$column->defaultValue')";
  
          } elseif (is_int($column->defaultValue)) {
              $definition .= "->defaultValue($column->defaultValue)";
  
          } elseif (is_bool($column->defaultValue)) {
              $definition .= '->defaultValue('.var_export($column->defaultValue, true).')';
  
          } elseif (is_string($column->defaultValue)) {
              $definition .= "->defaultValue('".addslashes($column->defaultValue)."')";
          }
  
          // comment
          if (null !== $column->comment && '' !== $column->comment) {
              $definition .= "->comment('".addslashes($column->comment)."')";
          }
  
          // append
  
          return $definition;
      }
code: private static function other($column, array $unique)
      {
          $definition = '';
  
          // size
          if (null !== $column->scale && 0 < $column->scale) {
              $definition .= "($column->precision,$column->scale)";
  
          } elseif (null !== $column->size && !$column->autoIncrement && 'tinyint(1)' !== $column->dbType) {
              $definition .= "($column->size)";
  
          } elseif (null !== $column->size && !$column->isPrimaryKey && $column->unsigned) {
              $definition .= "($column->size)";
          }
  
          // unsigned
          if ($column->unsigned) {
              $definition .= '->unsigned()';
          }
  
          // null
          if ($column->allowNull) {
              $definition .= '->null()';
  
          } elseif (!$column->autoIncrement) {
              $definition .= '->notNull()';
          }
  
          // unique key
          if (!$column->isPrimaryKey && !empty($unique)) {
              foreach ($unique as $name) {
                  if (reset($name) === $column->name) {
                      $definition .= '->unique()';
                  }
              }
          }
  
          // default value
          if ($column->defaultValue instanceof Expression) {
              $definition .= "->defaultExpression('$column->defaultValue')";
  
          } elseif (is_int($column->defaultValue)) {
              $definition .= "->defaultValue($column->defaultValue)";
  
          } elseif (is_bool($column->defaultValue)) {
              $definition .= '->defaultValue('.var_export($column->defaultValue, true).')';
  
          } elseif (is_string($column->defaultValue)) {
              $definition .= "->defaultValue('".addslashes($column->defaultValue)."')";
          }
  
          // comment
          if (null !== $column->comment && '' !== $column->comment) {
              $definition .= "->comment('".addslashes($column->comment)."')";
          }
  
          // append
  
          return $definition;
      }
code_tokens: private static function other ( $ column , array $ unique ) { $ definition = '' ; // size if ( null !== $ column -> scale && 0 < $ column -> scale ) { $ definition .= "($column->precision,$column->scale)" ; } elseif ( null !== $ column -> size && ! $ column -> autoIncrement && 'tinyint(1)' !== $ column -> dbType ) { $ definition .= "($column->size)" ; } elseif ( null !== $ column -> size && ! $ column -> isPrimaryKey && $ column -> unsigned ) { $ definition .= "($column->size)" ; } // unsigned if ( $ column -> unsigned ) { $ definition .= '->unsigned()' ; } // null if ( $ column -> allowNull ) { $ definition .= '->null()' ; } elseif ( ! $ column -> autoIncrement ) { $ definition .= '->notNull()' ; } // unique key if ( ! $ column -> isPrimaryKey && ! empty ( $ unique ) ) { foreach ( $ unique as $ name ) { if ( reset ( $ name ) === $ column -> name ) { $ definition .= '->unique()' ; } } } // default value if ( $ column -> defaultValue instanceof Expression ) { $ definition .= "->defaultExpression('$column->defaultValue')" ; } elseif ( is_int ( $ column -> defaultValue ) ) { $ definition .= "->defaultValue($column->defaultValue)" ; } elseif ( is_bool ( $ column -> defaultValue ) ) { $ definition .= '->defaultValue(' . var_export ( $ column -> defaultValue , true ) . ')' ; } elseif ( is_string ( $ column -> defaultValue ) ) { $ definition .= "->defaultValue('" . addslashes ( $ column -> defaultValue ) . "')" ; } // comment if ( null !== $ column -> comment && '' !== $ column -> comment ) { $ definition .= "->comment('" . addslashes ( $ column -> comment ) . "')" ; } // append return $ definition ; }
docstring: Returns the other definition.
  @param ColumnSchema[] $column
  @param array $unique
  @return string the other definition
docstring_tokens: Returns the other definition .