Code Duplication    Length = 6-7 lines in 2 locations

src/JsynExtractor.php 2 locations

@@ 58-64 (lines=7) @@
55
    {
56
        $this->jsyn = json_decode(file_get_contents($jsynFile));
57
58
        if (isset($this->sqlSyntax)) {
59
            $sqlSyntax = $this->sqlSyntax;
60
            if (!isset($this->jsyn->$sqlSyntax)) {
61
                $sqlSyntax = "default";
62
            }
63
            $this->jsyn = $this->jsyn->$sqlSyntax;
64
        }
65
66
        return;
67
    }
@@ 80-85 (lines=6) @@
77
    {
78
        $this->sqlSyntax = $sqlSyntax;
79
80
        if (isset($this->jsyn->$sqlSyntax)) {
81
            $this->jsyn = $this->jsyn->$sqlSyntax;
82
        } else {
83
            $sqlSyntax ="default";
84
            $this->jsyn = $this->jsyn->$sqlSyntax;
85
        }
86
        
87
        return;
88
    }