@@ -32,7 +32,7 @@ public static function getTables(string $connection = null): array
3232 if ($ existingTable = self ::$ schema [$ connection ][$ tableName ] ?? false ) {
3333 return [$ tableName => $ existingTable ];
3434 }
35-
35+
3636 $ table = self ::mapTable ($ connection , $ tableName );
3737
3838 return [$ tableName => $ table ];
@@ -73,14 +73,14 @@ private static function generateDatabaseSchema(string $connection, string $table
7373 private static function mapTable (string $ connection , string $ tableName )
7474 {
7575 try {
76- $ table = method_exists (self ::getCreateSchema ($ connection ), 'getTable ' ) ?
77- self ::getCreateSchema ($ connection )->getTable ($ tableName ) :
76+ $ table = method_exists (self ::getCreateSchema ($ connection ), 'getTable ' ) ?
77+ self ::getCreateSchema ($ connection )->getTable ($ tableName ) :
7878 self ::getCreateSchema ($ connection )->getColumns ($ tableName );
7979 } catch (\Exception $ e ) {
8080 return new Table ($ tableName , []);
8181 }
82-
83- if (! is_array ($ table ) || empty ($ table )) {
82+
83+ if (! is_array ($ table ) || empty ($ table )) {
8484 return $ table ;
8585 }
8686
@@ -92,7 +92,7 @@ private static function mapTable(string $connection, string $tableName)
9292 }, $ indexes );
9393
9494 $ table = new Table ($ tableName , $ table );
95-
95+
9696 $ indexes = Arr::flatten ($ indexes );
9797 $ table ->setIndexes (array_unique ($ indexes ));
9898
@@ -104,7 +104,7 @@ private static function getIndexColumnNames(string $connection, string $table)
104104 self ::generateDatabaseSchema ($ connection , $ table );
105105
106106 $ indexes = self ::$ schema [$ connection ][$ table ]->getIndexes ();
107-
107+
108108 $ indexes = \Illuminate \Support \Arr::flatten (array_map (function ($ index ) {
109109 return is_string ($ index ) ? $ index : $ index ->getColumns ();
110110 }, $ indexes ));
0 commit comments