Failed Conditions
Push — master ( 379085...b45ed5 )
by Marco
54s queued 28s
created

PostgreSQL94Keywords   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 20
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getKeywords() 0 5 1
A getName() 0 3 1
1
<?php
2
3
namespace Doctrine\DBAL\Platforms\Keywords;
4
5
use function array_diff;
6
use function array_merge;
7
8
/**
9
 * PostgreSQL 9.4 reserved keywords list.
10
 *
11
 * @link   www.doctrine-project.org
12
 */
13
class PostgreSQL94Keywords extends PostgreSQL92Keywords
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function getName()
19
    {
20
        return 'PostgreSQL94';
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     *
26
     * @link http://www.postgresql.org/docs/9.4/static/sql-keywords-appendix.html
27
     */
28 1932
    protected function getKeywords()
29
    {
30 1932
        $parentKeywords = array_diff(parent::getKeywords(), ['OVER']);
31
32 1932
        return array_merge($parentKeywords, ['LATERAL']);
33
    }
34
}
35