Code Duplication    Length = 10-11 lines in 2 locations

src/eXpansion/Framework/Gui/Layouts/layoutScrollable.php 2 locations

@@ 81-91 (lines=11) @@
78
79
        $container->addChild($quad);
80
        $container->addChild($contentFrame);
81
        if ($this->scrollbarV) {
82
            $contentFrame->setSize($this->width - 5, $this->height);
83
            $this->offset = 5;
84
            $container->addChild(new uiScrollbar(
85
                "Y",
86
                $this->getWidth(),
87
                0,
88
                10,
89
                $this->getHeight()
90
            ));
91
        }
92
93
        if ($this->scrollbarH) {
94
            $contentFrame->setSize($this->width - 5, $this->height - 5);
@@ 93-102 (lines=10) @@
90
            ));
91
        }
92
93
        if ($this->scrollbarH) {
94
            $contentFrame->setSize($this->width - 5, $this->height - 5);
95
            $container->addChild(new uiScrollbar(
96
                "X",
97
                0,
98
                -$this->getHeight(),
99
                10,
100
                $this->getWidth() - $this->offset
101
            ));
102
        }
103
104
105
        return $container->render($domDocument);