Skip to content

Commit e87660e

Browse files
committed
#1930 rename argument names, in line with parent method
Also remove second argument, only one argument needed
1 parent 3f060d4 commit e87660e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/Eloquent/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function update(array $values, array $options = [])
7171
return 1;
7272
}
7373

74-
return $this->toBase()->update($this->addUpdatedAtColumn($values), $options);
74+
return $this->toBase()->update($this->addUpdatedAtColumn($values));
7575
}
7676

7777
/** @inheritdoc */

src/Schema/Builder.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public function hasCollection($name)
4444
}
4545

4646
/** @inheritdoc */
47-
public function hasTable($collection)
47+
public function hasTable($table)
4848
{
49-
return $this->hasCollection($collection);
49+
return $this->hasCollection($table);
5050
}
5151

5252
/**
@@ -66,15 +66,15 @@ public function collection($collection, Closure $callback)
6666
}
6767

6868
/** @inheritdoc */
69-
public function table($collection, Closure $callback)
69+
public function table($table, Closure $callback)
7070
{
71-
$this->collection($collection, $callback);
71+
$this->collection($table, $callback);
7272
}
7373

7474
/** @inheritdoc */
75-
public function create($collection, ?Closure $callback = null, array $options = [])
75+
public function create($table, ?Closure $callback = null, array $options = [])
7676
{
77-
$blueprint = $this->createBlueprint($collection);
77+
$blueprint = $this->createBlueprint($table);
7878

7979
$blueprint->create($options);
8080

@@ -84,17 +84,17 @@ public function create($collection, ?Closure $callback = null, array $options =
8484
}
8585

8686
/** @inheritdoc */
87-
public function dropIfExists($collection)
87+
public function dropIfExists($table)
8888
{
89-
if ($this->hasCollection($collection)) {
90-
$this->drop($collection);
89+
if ($this->hasCollection($table)) {
90+
$this->drop($table);
9191
}
9292
}
9393

9494
/** @inheritdoc */
95-
public function drop($collection)
95+
public function drop($table)
9696
{
97-
$blueprint = $this->createBlueprint($collection);
97+
$blueprint = $this->createBlueprint($table);
9898

9999
$blueprint->drop();
100100
}
@@ -108,9 +108,9 @@ public function dropAllTables()
108108
}
109109

110110
/** @inheritdoc */
111-
protected function createBlueprint($collection, ?Closure $callback = null)
111+
protected function createBlueprint($table, ?Closure $callback = null)
112112
{
113-
return new Blueprint($this->connection, $collection);
113+
return new Blueprint($this->connection, $table);
114114
}
115115

116116
/**

0 commit comments

Comments
 (0)