Postgres12   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A hasObjectID() 0 3 1
1
<?php
2
3
/**
4
 * PHPPgAdmin 6.1.3
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
    /**
19
     * @var float
20
     */
21
    public $major_version = 12;
22
23
    /**
24
     * @var class-string
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
25
     */
26
    public $help_classname = \PHPPgAdmin\Help\PostgresDoc12::class;
27
28
    /**
29
     * Checks to see whether or not a table has a unique id column.
30
     *
31
     * @deprecated this field has been removed of pg_class as of PG 12
32
     * @see https://www.postgresql.org/docs/12/catalog-pg-class.html
33
     *
34
     * @param string $table The table name
35
     *
36
     * @return bool
37
     */
38
    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

38
    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...
39
    {
40
        return false;
41
    }
42
}
43