Quoter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A quoteSimpleTableName() 0 3 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Oracle;
6
7
use Yiisoft\Db\Schema\Quoter as BaseQuoter;
8
9
use function str_contains;
10
11
/**
12
 * Implements the Oracle Server quoting and unquoting methods.
13
 */
14
final class Quoter extends BaseQuoter
15
{
16 280
    public function quoteSimpleTableName(string $name): string
17
    {
18 280
        return str_contains($name, '"') ? $name : '"' . $name . '"';
19
    }
20
}
21