Skip to content

Commit

Permalink
Mini fixes (#490)
Browse files Browse the repository at this point in the history
* Mini fixes

* styleci
  • Loading branch information
darkdef committed Jan 22, 2023
1 parent 38a7ac5 commit 1d1dbf7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Schema/Quoter.php
Expand Up @@ -12,8 +12,6 @@
use function str_contains;
use function str_replace;
use function str_starts_with;
use function strlen;
use function strpos;
use function strrpos;
use function substr;

Expand Down Expand Up @@ -124,7 +122,7 @@ function ($matches) {

public function quoteTableName(string $name): string
{
if (str_starts_with($name, '(') && strpos($name, ')') === strlen($name) - 1) {
if (str_starts_with($name, '(') && str_ends_with($name, ')')) {
return $name;
}

Expand Down

0 comments on commit 1d1dbf7

Please sign in to comment.