Code Duplication    Length = 10-10 lines in 2 locations

src/database/Postgres.php 1 location

@@ 5489-5498 (lines=10) @@
5486
5487
        $sql .= "{$returns} AS ";
5488
5489
        if (is_array($definition)) {
5490
            $this->arrayClean($definition);
5491
            $sql .= "'" . $definition[0] . "'";
5492
            if ($definition[1]) {
5493
                $sql .= ",'" . $definition[1] . "'";
5494
            }
5495
        } else {
5496
            $this->clean($definition);
5497
            $sql .= "'" . $definition . "'";
5498
        }
5499
5500
        $sql .= " LANGUAGE \"{$language}\"";
5501

src/database/Postgres82.php 1 location

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