Skip to content

Commit 9b8661a

Browse files
committed
Update variable name
1 parent 42c67d1 commit 9b8661a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Model.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ protected function getTable() : string
191191

192192
protected function makeTableName() : string
193193
{
194-
$class = static::class;
195-
$pos = \strrpos($class, '\\');
194+
$name = static::class;
195+
$pos = \strrpos($name, '\\');
196196
if ($pos) {
197-
$class = \substr($class, $pos + 1);
197+
$name = \substr($name, $pos + 1);
198198
}
199-
if (\str_ends_with($class, 'Model')) {
200-
$class = \substr($class, 0, -5);
199+
if (\str_ends_with($name, 'Model')) {
200+
$name = \substr($name, 0, -5);
201201
}
202-
return $class;
202+
return $name;
203203
}
204204

205205
#[Pure]

0 commit comments

Comments
 (0)