Passed
Push — develop ( 2969a7...df24bb )
by Felipe
05:41 queued 11s
created

Postgres12   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A hasObjectID() 0 3 1
1
<?php
2
3
/**
4
 * PHPPgAdmin v6.0.0-RC6
5
 */
6
7
namespace PHPPgAdmin\Database;
8
9
/**
10
 * @file
11
 * PostgreSQL 12.x support
12
 */
13
/**
14
 * Class to add support for Postgres12.
15
 */
16
class Postgres12 extends Postgres11
17
{
18
    public $major_version = 12;
19
20
    /**
21
     * Checks to see whether or not a table has a unique id column.
22
     *
23
     * @deprecated this field has been removed of pg_class as of PG 12
24
     * @see https://www.postgresql.org/docs/12/catalog-pg-class.html
25
     *
26
     * @param string $table The table name
27
     *
28
     * @return false
29
     */
30
    public function hasObjectID($table)
0 ignored issues
show
Unused Code introduced by
The parameter $table is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

30
    public function hasObjectID(/** @scrutinizer ignore-unused */ $table)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
    {
32
        return null;
33
    }
34
}
35