Code Duplication    Length = 3-3 lines in 2 locations

src/SQLParser/Node/NodeFactory.php 2 locations

@@ 36-38 (lines=3) @@
33
                } else {
34
                    $const->setIsString(false);
35
                }
36
                if (strrpos($expr, "'") === strlen($expr) - 1) {
37
                    $expr = substr($expr, 0, -1);
38
                }
39
                $expr = stripslashes($expr);
40
41
                $const->setValue($expr);
@@ 437-439 (lines=3) @@
434
            if (strpos($expr, "'") === 0) {
435
                $expr = substr($expr, 1);
436
            }
437
            if (strrpos($expr, "'") === strlen($expr) - 1) {
438
                $expr = substr($expr, 0, -1);
439
            }
440
            $expr = stripslashes($expr);
441
442
            $instance->setValue($expr);