We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | private static function generateDatabaseSchema(string $connection) |
| 57 | 57 | { |
| 58 | - if (! isset(self::$schema[$connection])) { |
|
| 58 | + if (!isset(self::$schema[$connection])) { |
|
| 59 | 59 | self::$schema[$connection] = self::mapTables($connection); |
| 60 | 60 | } |
| 61 | 61 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | private static function mapTables(string $connection) |
| 70 | 70 | { |
| 71 | - return LazyCollection::make(self::getCreateSchema($connection)->getTables())->mapWithKeys(function ($table, $key) use ($connection) { |
|
| 71 | + return LazyCollection::make(self::getCreateSchema($connection)->getTables())->mapWithKeys(function($table, $key) use ($connection) { |
|
| 72 | 72 | $tableName = is_array($table) ? $table['name'] : $table->getName(); |
| 73 | 73 | |
| 74 | 74 | if (self::$schema[$connection][$tableName] ?? false) { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $schemaManager = self::getSchemaManager($connection); |
| 89 | 89 | $indexes = method_exists($schemaManager, 'listTableIndexes') ? $schemaManager->listTableIndexes($table) : $schemaManager->getIndexes($table); |
| 90 | 90 | |
| 91 | - $indexes = array_map(function ($index) { |
|
| 91 | + $indexes = array_map(function($index) { |
|
| 92 | 92 | return is_array($index) ? $index['columns'] : $index->getColumns(); |
| 93 | 93 | }, $indexes); |
| 94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | { |
| 102 | 102 | $indexedColumns = self::getIndexColumnNames($connection, $table); |
| 103 | 103 | |
| 104 | - return LazyCollection::make(self::getSchemaManager($connection)->getColumns($table))->mapWithKeys(function ($column, $key) use ($indexedColumns) { |
|
| 104 | + return LazyCollection::make(self::getSchemaManager($connection)->getColumns($table))->mapWithKeys(function($column, $key) use ($indexedColumns) { |
|
| 105 | 105 | $column['index'] = array_key_exists($column['name'], $indexedColumns) ? true : false; |
| 106 | 106 | |
| 107 | 107 | return [$column['name'] => $column]; |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | $connection = DB::connection($connection); |
| 137 | 137 | |
| 138 | - if(method_exists($connection, 'getDoctrineSchemaManager')) { |
|
| 138 | + if (method_exists($connection, 'getDoctrineSchemaManager')) { |
|
| 139 | 139 | foreach (self::dbalTypes() as $key => $value) { |
| 140 | 140 | $connection->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping($key, $value); |
| 141 | 141 | } |