Completed
Push — master ( bfc8bb...04db0e )
by Marco
20s queued 15s
created

NonTerminatedStringLiteral   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A new() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Driver\OCI8;
6
7
use function sprintf;
8
9
final class NonTerminatedStringLiteral extends OCI8Exception
10
{
11
    public static function new(int $offset) : self
12
    {
13
        return new self(
14
            sprintf(
15
                'The statement contains non-terminated string literal starting at offset %d.',
16
                $offset
17
            )
18
        );
19
    }
20
}
21