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

Postgres12::hasObjectID()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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