Skip to content

Commit

Permalink
Combine similar cases and don't allocate an extra string.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 19, 2018
1 parent a88b2ab commit 04e0468
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Database/SqlDialectTrait.php
Expand Up @@ -33,12 +33,8 @@ public function quoteIdentifier($identifier)
{
$identifier = trim($identifier);

if ($identifier === '*') {
return '*';
}

if ($identifier === '') {
return '';
if ($identifier === '*' || $identifier === '') {
return $identifier;
}

// string
Expand Down

0 comments on commit 04e0468

Please sign in to comment.