Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 2 locations

@@ 818-820 (lines=3) @@
815
        /**
816
         * Better safe than sorry: http://php.net/in_array#106319
817
         */
818
        if (in_array(trim(strtolower($value)), $this->booleanLiterals['false'], true)) {
819
            return $callback(false);
820
        }
821
822
        if (in_array(trim(strtolower($value)), $this->booleanLiterals['true'], true)) {
823
            return $callback(true);
@@ 822-824 (lines=3) @@
819
            return $callback(false);
820
        }
821
822
        if (in_array(trim(strtolower($value)), $this->booleanLiterals['true'], true)) {
823
            return $callback(true);
824
        }
825
826
        throw new \UnexpectedValueException("Unrecognized boolean literal '${value}'");
827
    }