Code Duplication    Length = 3-3 lines in 2 locations

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

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