Skip to content

Commit 1d1dbf7

Browse files
authored
Mini fixes (#490)
* Mini fixes * styleci
1 parent 38a7ac5 commit 1d1dbf7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Schema/Quoter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
use function str_contains;
1313
use function str_replace;
1414
use function str_starts_with;
15-
use function strlen;
16-
use function strpos;
1715
use function strrpos;
1816
use function substr;
1917

@@ -124,7 +122,7 @@ function ($matches) {
124122

125123
public function quoteTableName(string $name): string
126124
{
127-
if (str_starts_with($name, '(') && strpos($name, ')') === strlen($name) - 1) {
125+
if (str_starts_with($name, '(') && str_ends_with($name, ')')) {
128126
return $name;
129127
}
130128

0 commit comments

Comments
 (0)