diff --git a/dynamic_entity_reference.install b/dynamic_entity_reference.install index b6de8a3..2a61064 100644 --- a/dynamic_entity_reference.install +++ b/dynamic_entity_reference.install @@ -160,7 +160,8 @@ function dynamic_entity_reference_update_8202() { $table = $table_mapping->getFieldTableName($field_name); $column = $table_mapping->getFieldColumnName($field_storage_definition, 'target_id_int'); $index_column = $table_mapping->getFieldColumnName($field_storage_definition, 'target_type'); - } catch (SqlContentEntityStorageException $e) { + } + catch (SqlContentEntityStorageException $e) { // Custom storage? Broken site? No matter what, if there is no table // or column, there's little we can do. continue; @@ -170,8 +171,8 @@ function dynamic_entity_reference_update_8202() { $spec = [ 'fields' => [ $column => $column_spec, - $index_column => $schema_info['columns']['target_type'] - ] + $index_column => $schema_info['columns']['target_type'], + ], ]; if (!$schema->indexExists($table, $column)) { $schema->addIndex($table, $column, [$column, $index_column], $spec); diff --git a/src/Storage/IntColumnHandler.php b/src/Storage/IntColumnHandler.php index 4fac340..75dcb53 100644 --- a/src/Storage/IntColumnHandler.php +++ b/src/Storage/IntColumnHandler.php @@ -82,7 +82,7 @@ abstract class IntColumnHandler implements IntColumnHandlerInterface { $full_spec = [ 'fields' => [ $column_int => $spec, - ] + ], ]; if (!empty($index_columns)) { diff --git a/src/Storage/IntColumnHandlerInterface.php b/src/Storage/IntColumnHandlerInterface.php index 2be10d7..3cd09bd 100644 --- a/src/Storage/IntColumnHandlerInterface.php +++ b/src/Storage/IntColumnHandlerInterface.php @@ -15,7 +15,8 @@ interface IntColumnHandlerInterface { * @param array $columns * The DER target_id columns. * @param array $index_columns - * Table columns that should be added to the index that is created for the new _int column. + * Table columns that should be added to the index that is created for the + * new _int column. * * @return array * The list of new target_id_int columns. diff --git a/src/Storage/IntColumnHandlerPostgreSQL.php b/src/Storage/IntColumnHandlerPostgreSQL.php index 9993116..18b5f1e 100644 --- a/src/Storage/IntColumnHandlerPostgreSQL.php +++ b/src/Storage/IntColumnHandlerPostgreSQL.php @@ -52,7 +52,7 @@ class IntColumnHandlerPostgreSQL implements IntColumnHandlerInterface { $full_spec = [ 'fields' => [ $column_int => $spec, - ] + ], ]; if (!empty($index_columns)) { $full_spec['fields'] = array_merge($full_spec['fields'], $index_columns);