Skip to content

Commit 4b202ba

Browse files
committed
formatting
1 parent 2cc6d1b commit 4b202ba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Illuminate/Database/Schema/Builder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,29 +171,29 @@ public function hasColumns($table, array $columns)
171171
}
172172

173173
/**
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.
175175
*
176176
* @param string $table
177177
* @param string $column
178178
* @param \Closure $callback
179179
* @return void
180180
*/
181-
public function whenTableHasColumn(string $table, string $column, Closure $callback): void
181+
public function whenTableHasColumn(string $table, string $column, Closure $callback)
182182
{
183183
if ($this->hasColumn($table, $column)) {
184184
$this->table($table, fn (Blueprint $table) => $callback($table));
185185
}
186186
}
187187

188188
/**
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.
190190
*
191191
* @param string $table
192192
* @param string $column
193193
* @param \Closure $callback
194194
* @return void
195195
*/
196-
public function whenTableHasNotColumn(string $table, string $column, Closure $callback): void
196+
public function whenTableDoesntHaveColumn(string $table, string $column, Closure $callback)
197197
{
198198
if (! $this->hasColumn($table, $column)) {
199199
$this->table($table, fn (Blueprint $table) => $callback($table));

src/Illuminate/Support/Facades/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @method static bool hasColumns(string $table, array $columns)
1717
* @method static bool dropColumns(string $table, array $columns)
1818
* @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)
2020
* @method static bool hasTable(string $table)
2121
* @method static void defaultStringLength(int $length)
2222
* @method static array getColumnListing(string $table)

0 commit comments

Comments
 (0)