We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up(): void |
13 | 13 | { |
14 | - Schema::create('uploaders', function (Blueprint $table) { |
|
14 | + Schema::create('uploaders', function(Blueprint $table) { |
|
15 | 15 | $table->increments('id'); |
16 | 16 | $table->string('upload')->nullable(); |
17 | 17 | $table->string('image')->nullable(); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $connection = $connection ?: config('database.default'); |
28 | 28 | |
29 | - self::$schema[$connection] = LazyCollection::make(self::getCreateSchema($connection)->getTables())->mapWithKeys(function ($table, $key) use ($connection) { |
|
29 | + self::$schema[$connection] = LazyCollection::make(self::getCreateSchema($connection)->getTables())->mapWithKeys(function($table, $key) use ($connection) { |
|
30 | 30 | $tableName = is_array($table) ? $table['name'] : $table->getName(); |
31 | 31 | |
32 | 32 | if ($existingTable = self::$schema[$connection][$tableName] ?? false) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | private static function generateDatabaseSchema(string $connection, string $table) |
67 | 67 | { |
68 | - if (! isset(self::$schema[$connection][$table])) { |
|
68 | + if (!isset(self::$schema[$connection][$table])) { |
|
69 | 69 | self::$schema[$connection][$table] = self::mapTable($connection, $table); |
70 | 70 | } |
71 | 71 | } |
@@ -74,13 +74,12 @@ discard block |
||
74 | 74 | { |
75 | 75 | try { |
76 | 76 | $table = method_exists(self::getCreateSchema($connection), 'getTable') ? |
77 | - self::getCreateSchema($connection)->getTable($tableName) : |
|
78 | - self::getCreateSchema($connection)->getColumns($tableName); |
|
77 | + self::getCreateSchema($connection)->getTable($tableName) : self::getCreateSchema($connection)->getColumns($tableName); |
|
79 | 78 | } catch (\Exception $e) { |
80 | 79 | return new Table($tableName, []); |
81 | 80 | } |
82 | 81 | |
83 | - if (! is_array($table)) { |
|
82 | + if (!is_array($table)) { |
|
84 | 83 | return $table; |
85 | 84 | } |
86 | 85 | |
@@ -91,7 +90,7 @@ discard block |
||
91 | 90 | $schemaManager = self::getSchemaManager($connection); |
92 | 91 | $indexes = $schemaManager->getIndexes($tableName); |
93 | 92 | |
94 | - $indexes = array_map(function ($index) { |
|
93 | + $indexes = array_map(function($index) { |
|
95 | 94 | return $index['columns']; |
96 | 95 | }, $indexes); |
97 | 96 | |
@@ -109,7 +108,7 @@ discard block |
||
109 | 108 | |
110 | 109 | $indexes = self::$schema[$connection][$table]->getIndexes(); |
111 | 110 | |
112 | - $indexes = \Illuminate\Support\Arr::flatten(array_map(function ($index) { |
|
111 | + $indexes = \Illuminate\Support\Arr::flatten(array_map(function($index) { |
|
113 | 112 | return is_string($index) ? $index : $index->getColumns(); |
114 | 113 | }, $indexes)); |
115 | 114 |