Code Duplication    Length = 10-10 lines in 2 locations

src/database/Postgres.php 1 location

@@ 5612-5621 (lines=10) @@
5609
5610
        $sql .= "{$returns} AS ";
5611
5612
        if (is_array($definition)) {
5613
            $this->arrayClean($definition);
5614
            $sql .= "'".$definition[0]."'";
5615
            if ($definition[1]) {
5616
                $sql .= ",'".$definition[1]."'";
5617
            }
5618
        } else {
5619
            $this->clean($definition);
5620
            $sql .= "'".$definition."'";
5621
        }
5622
5623
        $sql .= " LANGUAGE \"{$language}\"";
5624

src/database/Postgres82.php 1 location

@@ 252-261 (lines=10) @@
249
250
            $sql .= "{$returns} AS ";
251
252
            if (is_array($definition)) {
253
                $this->arrayClean($definition);
254
                $sql .= "'".$definition[0]."'";
255
                if ($definition[1]) {
256
                    $sql .= ",'".$definition[1]."'";
257
                }
258
            } else {
259
                $this->clean($definition);
260
                $sql .= "'".$definition."'";
261
            }
262
263
            $sql .= " LANGUAGE \"{$language}\"";
264