GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 20-28 lines in 4 locations

build/Classes/AdaptersDriver/Pgsql.php 2 locations

@@ 77-102 (lines=26) @@
74
     *
75
     * @return string[]
76
     */
77
    public function getListNameTable ()
78
    {
79
        if ( empty( $this->tableList ) ) {
80
81
            $sqlTables = !empty($this->tablesName)?"AND table_name IN ( $this->tablesName )":'';
82
83
            $strSchema = implode ( "', '", $this->schema );
84
85
            $this->tableList = $this->getPDO ()
86
                                    ->query (
87
                                        "SELECT table_schema,
88
              table_name
89
             FROM information_schema.tables
90
             WHERE
91
              table_type = 'BASE TABLE'
92
              AND table_schema IN ( '$strSchema' ) $sqlTables
93
              ORDER by
94
               table_schema,
95
               table_name
96
              ASC"
97
                                    )
98
                                    ->fetchAll ();
99
        }
100
101
        return $this->tableList;
102
    }
103
104
    /**
105
     * retorna multiplos arrays com dados da column em array
@@ 251-270 (lines=20) @@
248
     *
249
     * @return int
250
     */
251
    public function getTotalTables ()
252
    {
253
        if ( empty( $this->totalTables ) ) {
254
            $sqlTables = !empty($this->tablesName)?"AND table_name IN ( $this->tablesName )":'';
255
256
            $strSchema = implode ( "', '", $this->schema );
257
258
            $this->totalTables = $this->getPDO ()
259
                                      ->query (
260
                                          "SELECT COUNT(table_name)  AS total
261
             FROM information_schema.tables
262
             WHERE
263
              table_type = 'BASE TABLE'
264
              AND table_schema IN ( '" . $strSchema . "' ) $sqlTables"
265
                                      )
266
                                      ->fetchColumn ();
267
        }
268
269
        return (int) $this->totalTables;
270
    }
271
}
272

build/Classes/AdaptersDriver/Mssql.php 2 locations

@@ 101-128 (lines=28) @@
98
     * @inheritDoc
99
     * @return string[]
100
     */
101
    public function getListNameTable ()
102
    {
103
        if ( empty( $this->tableList ) )
104
        {
105
106
            $sqlTables = ! empty( $this->tablesName )
107
                ? "AND table_name IN ( $this->tablesName )" : '';
108
109
            $strSchema = implode ( "', '" , $this->schema );
110
111
            $this->tableList = $this->getPDO ()
112
                                    ->query (
113
                                        "SELECT table_schema,
114
              table_name
115
             FROM {$this->database}.information_schema.tables
116
             WHERE
117
              table_type = 'BASE TABLE'
118
              AND table_schema IN ( '$strSchema' ) $sqlTables
119
              ORDER by
120
               table_schema,
121
               table_name
122
              ASC"
123
                                    )
124
                                    ->fetchAll ();
125
        }
126
127
        return $this->tableList;
128
    }
129
130
    /**
131
     * retorna multiplos arrays com dados da column em array
@@ 171-192 (lines=22) @@
168
     *
169
     * @return int
170
     */
171
    public function getTotalTables ()
172
    {
173
        if ( empty( $this->totalTables ) )
174
        {
175
            $sqlTables = ! empty( $this->tablesName )
176
                ? "AND table_name IN ( $this->tablesName )" : '';
177
178
            $strSchema = implode ( "', '" , $this->schema );
179
180
            $this->totalTables = $this->getPDO ()
181
                                      ->query (
182
                                          "SELECT COUNT(table_name)  AS total
183
             FROM {$this->database}.information_schema.tables
184
             WHERE
185
              table_type = 'BASE TABLE'
186
              AND table_schema IN ( '" . $strSchema . "' ) $sqlTables"
187
                                      )
188
                                      ->fetchColumn ();
189
        }
190
191
        return (int) $this->totalTables;
192
    }
193
194
    public function getSequence ( $table , $column , $schema = 0 )
195
    {