Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php:150 | 1 | array_merge($tableForeignKeys[$key], ['constraint_name' => isset($names[$id]) && $names[$id] !== '' ? $names[$id] : $id, 'deferrable' => isset($deferrable[$id]) && strtolower($deferrable[$id]) === 'deferrable', 'deferred' => isset($deferred[$id]) && strtolower($deferred[$id]) === 'deferred', ]) |
/lib/Doctrine/DBAL/Schema/Column.php:439 | 1 | array_merge(['name' => $this->_name, 'type' => $this->_type, 'default' => $this->_default, 'notnull' => $this->_notnull, 'length' => $this->_length, 'precision' => $this->_precision, 'scale' => $this->_scale, 'fixed' => $this->_fixed, 'unsigned' => $this->_unsigned, 'autoincrement' => $this->_autoincrement, 'columnDefinition' => $this->_columnDefinition, 'comment' => $this->_comment, ], $this->_platformOptions, $this->_customSchemaOptions) |
/lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php:109 | 1 | $options = ['length' => $length === 0 || !in_array($type, ['text', 'string']) ? null : $length, 'unsigned' => false, 'fixed' => (bool) $fixed, 'default' => $default, 'notnull' => (bool) $tableColumn['notnull'], 'scale' => $tableColumn['scale'], 'precision' => $tableColumn['precision'], 'autoincrement' => (bool) $tableColumn['autoincrement'], 'comment' => $tableColumn['comment'] !== '' ? $tableColumn['comment'] : null, ] |
/lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php:162 | 1 | $foreignKeys[$name] = ['local_columns' => [$tableForeignKey['ColumnName']], 'foreign_table' => $tableForeignKey['ReferenceTableName'], 'foreign_columns' => [$tableForeignKey['ReferenceColumnName']], 'name' => $name, 'options' => ['onUpdate' => str_replace('_', ' ', $tableForeignKey['update_referential_action_desc']), 'onDelete' => str_replace('_', ' ', $tableForeignKey['delete_referential_action_desc']), ], ] |
/lib/Doctrine/DBAL/Schema/OracleSchemaManager.php:244 | 1 | $result[] = new ForeignKeyConstraint(array_values($constraint['local']), $this->getQuotedIdentifierName($constraint['foreignTable']), array_values($constraint['foreign']), $this->getQuotedIdentifierName($constraint['name']), ['onDelete' => $constraint['onDelete']]) |
/lib/Doctrine/DBAL/Schema/DrizzleSchemaManager.php:27 | 1 | $options = ['notnull' => !(bool) $tableColumn['IS_NULLABLE'], 'length' => (int) $tableColumn['CHARACTER_MAXIMUM_LENGTH'], 'default' => $tableColumn['COLUMN_DEFAULT'] ?? null, 'autoincrement' => (bool) $tableColumn['IS_AUTO_INCREMENT'], 'scale' => (int) $tableColumn['NUMERIC_SCALE'], 'precision' => (int) $tableColumn['NUMERIC_PRECISION'], 'comment' => isset($tableColumn['COLUMN_COMMENT']) && $tableColumn['COLUMN_COMMENT'] !== '' ? $tableColumn['COLUMN_COMMENT'] : null, ] |
/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php:436 | 1 | $result[] = new ForeignKeyConstraint(array_values($constraint['local']), $constraint['foreignTable'], array_values($constraint['foreign']), $constraint['name'], ['onDelete' => $constraint['onDelete'], 'onUpdate' => $constraint['onUpdate'], 'deferrable' => $constraint['deferrable'], 'deferred' => $constraint['deferred'], ]) |
/lib/Doctrine/DBAL/Schema/OracleSchemaManager.php:197 | 1 | $options = ['notnull' => (bool) ($tableColumn['nullable'] === 'N'), 'fixed' => (bool) $fixed, 'unsigned' => (bool) $unsigned, 'default' => $tableColumn['data_default'], 'length' => $length, 'precision' => $precision, 'scale' => $scale, 'comment' => isset($tableColumn['comments']) && $tableColumn['comments'] !== '' ? $tableColumn['comments'] : null, ] |
/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php:150 | 1 | $tableForeignKeys[$key] = array_merge($tableForeignKeys[$key], ['constraint_name' => isset($names[$id]) && $names[$id] !== '' ? $names[$id] : $id, 'deferrable' => isset($deferrable[$id]) && strtolower($deferrable[$id]) === 'deferrable', 'deferred' => isset($deferred[$id]) && strtolower($deferred[$id]) === 'deferred', ]) |
/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php:418 | 1 | $list[$name] = ['name' => $name, 'local' => [ ], 'foreign' => [ ], 'foreignTable' => $value['table'], 'onDelete' => $value['on_delete'], 'onUpdate' => $value['on_update'], 'deferrable' => $value['deferrable'], 'deferred' => $value['deferred'], ] |
/lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php:620 | 1 | $sql[] = "DECLARE @sql NVARCHAR(MAX) = N''; " . "SELECT @sql += N'EXEC sp_rename N''' + dc.name + ''', N''' " . "+ REPLACE(dc.name, '" . $this->generateIdentifierName($diff->name) . "', " . "'" . $this->generateIdentifierName($newName->getName( )) . "') + ''', ''OBJECT'';' " . 'FROM sys.default_constraints dc ' . 'JOIN sys.tables tbl ON dc.parent_object_id = tbl.object_id ' . "WHERE tbl.name = '" . $newName->getName( ) . "';" . 'EXEC sp_executesql @sql' |
/lib/Doctrine/DBAL/Platforms/Keywords/MySQL80Keywords.php:29 | 1 | $keywords = array_merge($keywords, ['ADMIN', 'ARRAY', 'CUBE', 'CUME_DIST', 'DENSE_RANK', 'EMPTY', 'EXCEPT', 'FIRST_VALUE', 'FUNCTION', 'GROUPING', 'GROUPS', 'JSON_TABLE', 'LAG', 'LAST_VALUE', 'LATERAL', 'LEAD', 'MEMBER', 'NTH_VALUE', 'NTILE', 'OF', 'OVER', 'PERCENT_RANK', 'PERSIST', 'PERSIST_ONLY', 'RANK', 'RECURSIVE', 'ROW', 'ROWS', 'ROW_NUMBER', 'SYSTEM', 'WINDOW', ]) |
/lib/Doctrine/DBAL/Schema/Visitor/Graphviz.php:27 | 1 | $this->output .= $this->createNodeRelation($fkConstraint->getLocalTableName( ) . ':col' . current($fkConstraint->getLocalColumns( )) . ':se', $fkConstraint->getForeignTableName( ) . ':col' . current($fkConstraint->getForeignColumns( )) . ':se', ['dir' => 'back', 'arrowtail' => 'dot', 'arrowhead' => 'normal', ]) |
/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php:1605 | 1 | $columnData = array_merge($column->toArray( ), ['name' => $column->getQuotedName($this), 'version' => $column->hasPlatformOption('version') ? $column->getPlatformOption('version') : false, 'comment' => $this->getColumnComment($column), ]) |
/lib/Doctrine/DBAL/Schema/DB2SchemaManager.php:92 | 1 | $options = ['length' => $length, 'unsigned' => false, 'fixed' => (bool) $fixed, 'default' => $default, 'autoincrement' => (bool) $tableColumn['autoincrement'], 'notnull' => (bool) ($tableColumn['nulls'] === 'N'), 'scale' => null, 'precision' => null, 'comment' => isset($tableColumn['comment']) && $tableColumn['comment'] !== '' ? $tableColumn['comment'] : null, 'platformOptions' => [ ], ] |
/lib/Doctrine/DBAL/Schema/DB2SchemaManager.php:167 | 1 | $foreignKeys[$tableForeignKey['index_name']] = ['local_columns' => [$tableForeignKey['local_column']], 'foreign_table' => $tableForeignKey['foreign_table'], 'foreign_columns' => [$tableForeignKey['foreign_column']], 'name' => $tableForeignKey['index_name'], 'options' => ['onUpdate' => $tableForeignKey['on_update'], 'onDelete' => $tableForeignKey['on_delete'], ], ] |
/lib/Doctrine/DBAL/Schema/SQLAnywhereSchemaManager.php:177 | 1 | $foreignKeys[$tableForeignKey['index_name']] = ['local_columns' => [$tableForeignKey['local_column']], 'foreign_table' => $tableForeignKey['foreign_table'], 'foreign_columns' => [$tableForeignKey['foreign_column']], 'name' => $tableForeignKey['index_name'], 'options' => ['notnull' => $tableForeignKey['notnull'], 'match' => $tableForeignKey['match'], 'onUpdate' => $tableForeignKey['on_update'], 'onDelete' => $tableForeignKey['on_delete'], 'check_on_commit' => $tableForeignKey['check_on_commit'], 'clustered' => $tableForeignKey['clustered'], 'for_olap_workload' => $tableForeignKey['for_olap_workload'], ], ] |
/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php:200 | 1 | $options = ['length' => $length !== null ? (int) $length : null, 'unsigned' => strpos($tableColumn['type'], 'unsigned') !== false, 'fixed' => (bool) $fixed, 'default' => $columnDefault, 'notnull' => $tableColumn['null'] !== 'YES', 'scale' => null, 'precision' => null, 'autoincrement' => strpos($tableColumn['extra'], 'auto_increment') !== false, 'comment' => isset($tableColumn['comment']) && $tableColumn['comment'] !== '' ? $tableColumn['comment'] : null, ] |
/lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php:130 | 1 | $sql = sprintf('USE FEDERATION %s (%s = %s) WITH RESET, FILTERING = %s;', $platform->quoteIdentifier($this->federationName), $platform->quoteIdentifier($this->distributionKey), $this->conn->quote($distributionValue), ($this->filteringEnabled ? 'ON' : 'OFF')) |
/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php:457 | 1 | $options = ['length' => $length, 'notnull' => (bool) $tableColumn['isnotnull'], 'default' => $tableColumn['default'], 'precision' => $precision, 'scale' => $scale, 'fixed' => $fixed, 'unsigned' => false, 'autoincrement' => $autoincrement, 'comment' => isset($tableColumn['comment']) && $tableColumn['comment'] !== '' ? $tableColumn['comment'] : null, ] |
/lib/Doctrine/DBAL/Query/QueryBuilder.php:1155 | 1 | $query .= ($this->sqlParts['from'] ? ' FROM ' . implode(', ', $this->getFromClauses( )) : '') . ($this->sqlParts['where'] !== null ? ' WHERE ' . ((string) $this->sqlParts['where']) : '') . ($this->sqlParts['groupBy'] ? ' GROUP BY ' . implode(', ', $this->sqlParts['groupBy']) : '') . ($this->sqlParts['having'] !== null ? ' HAVING ' . ((string) $this->sqlParts['having']) : '') . ($this->sqlParts['orderBy'] ? ' ORDER BY ' . implode(', ', $this->sqlParts['orderBy']) : '') |
/lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php:42 | 1 | if(strpos($exception->getMessage( ), 'must be unique') !== false || strpos($exception->getMessage( ), 'is not unique') !== false || strpos($exception->getMessage( ), 'are not unique') !== false || strpos($exception->getMessage( ), 'UNIQUE constraint failed') !== false) { /**/ } |
/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php:1029 | 1 | if(!empty($diff->renamedColumns) || !empty($diff->addedForeignKeys) || !empty($diff->addedIndexes) || !empty($diff->changedColumns) || !empty($diff->changedForeignKeys) || !empty($diff->changedIndexes) || !empty($diff->removedColumns) || !empty($diff->removedForeignKeys) || !empty($diff->removedIndexes) || !empty($diff->renamedIndexes)) { /**/ } |
/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php:1005 | 1 | if(!$columnDiff->fromColumn instanceof Column || !$columnDiff->column instanceof Column || !$columnDiff->column->getAutoincrement( ) || !$columnDiff->column->getType( ) instanceof Types\IntegerType) { /**/ } |
/lib/Doctrine/DBAL/Schema/Comparator.php:496 | 1 | if($properties1['comment'] !== $properties2['comment'] && !($properties1['comment'] === null && $properties2['comment'] === '') && !($properties2['comment'] === null && $properties1['comment'] === '')) { /**/ } |