File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -171,29 +171,29 @@ public function hasColumns($table, array $columns)
171
171
}
172
172
173
173
/**
174
- * Execute a callback inside table builder if has a column
174
+ * Execute a table builder callback if the given table has a given column.
175
175
*
176
176
* @param string $table
177
177
* @param string $column
178
178
* @param \Closure $callback
179
179
* @return void
180
180
*/
181
- public function whenTableHasColumn (string $ table , string $ column , Closure $ callback ): void
181
+ public function whenTableHasColumn (string $ table , string $ column , Closure $ callback )
182
182
{
183
183
if ($ this ->hasColumn ($ table , $ column )) {
184
184
$ this ->table ($ table , fn (Blueprint $ table ) => $ callback ($ table ));
185
185
}
186
186
}
187
187
188
188
/**
189
- * Execute a callback inside table builder if does 't have a column
189
+ * Execute a table builder callback if the given table doesn 't have a given column.
190
190
*
191
191
* @param string $table
192
192
* @param string $column
193
193
* @param \Closure $callback
194
194
* @return void
195
195
*/
196
- public function whenTableHasNotColumn (string $ table , string $ column , Closure $ callback ): void
196
+ public function whenTableDoesntHaveColumn (string $ table , string $ column , Closure $ callback )
197
197
{
198
198
if (! $ this ->hasColumn ($ table , $ column )) {
199
199
$ this ->table ($ table , fn (Blueprint $ table ) => $ callback ($ table ));
Original file line number Diff line number Diff line change 16
16
* @method static bool hasColumns(string $table, array $columns)
17
17
* @method static bool dropColumns(string $table, array $columns)
18
18
* @method static void whenTableHasColumn(string $table, string $column, \Closure $callback)
19
- * @method static void whenTableNotHasColumn (string $table, string $column, \Closure $callback)
19
+ * @method static void whenTableDoesntHaveColumn (string $table, string $column, \Closure $callback)
20
20
* @method static bool hasTable(string $table)
21
21
* @method static void defaultStringLength(int $length)
22
22
* @method static array getColumnListing(string $table)
You can’t perform that action at this time.
0 commit comments