Code Duplication    Length = 3-3 lines in 2 locations

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

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