Code Duplication    Length = 3-3 lines in 2 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 2 locations

@@ 832-834 (lines=3) @@
829
        /**
830
         * Better safe than sorry: http://php.net/in_array#106319
831
         */
832
        if (in_array(strtolower(trim($value)), $this->booleanLiterals['false'], true)) {
833
            return $callback(false);
834
        }
835
836
        if (in_array(strtolower(trim($value)), $this->booleanLiterals['true'], true)) {
837
            return $callback(true);
@@ 836-838 (lines=3) @@
833
            return $callback(false);
834
        }
835
836
        if (in_array(strtolower(trim($value)), $this->booleanLiterals['true'], true)) {
837
            return $callback(true);
838
        }
839
840
        throw new \UnexpectedValueException("Unrecognized boolean literal '${value}'");
841
    }