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

NonTerminatedStringLiteral::new()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 6
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 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