Code Duplication    Length = 10-10 lines in 4 locations

src/svg/shape/PathBounds.php 4 locations

@@ 156-165 (lines=10) @@
153
        return $this->data;
154
    }
155
156
    private function getHBox()
157
    {
158
        $x1 = $this->vhValue('x');
159
        $y1 = $this->vhValue('y');
160
        $x2 = $this->current[0];
161
162
        $box = $this->getLineBox($x1, $y1, $x2, $y1);
163
164
        $this->union($box);
165
    }
166
167
168
    private function getHRelBox()
@@ 168-177 (lines=10) @@
165
    }
166
167
168
    private function getHRelBox()
169
    {
170
        $x1 = $this->vhValue('x');
171
        $y1 = $this->vhValue('y');
172
        $x2 = $this->current[0];
173
174
        $x2 += $x1;
175
176
        $this->union($this->getLineBox($x1, $y1, $x2, $y1));
177
    }
178
179
    private function getVBox()
180
    {
@@ 179-188 (lines=10) @@
176
        $this->union($this->getLineBox($x1, $y1, $x2, $y1));
177
    }
178
179
    private function getVBox()
180
    {
181
        $x1 = $this->vhValue('x');
182
        $y1 = $this->vhValue('y');
183
        $y2 = $this->current[0];
184
185
        $box = $this->getLineBox($x1, $y1, $x1, $y2);
186
187
        $this->union($box);
188
    }
189
190
191
    private function getVRelBox()
@@ 191-200 (lines=10) @@
188
    }
189
190
191
    private function getVRelBox()
192
    {
193
        $x1 = $this->vhValue('x');
194
        $y1 = $this->vhValue('y');
195
        $y2 = $this->current[0];
196
197
        $y2 += $y1;
198
199
        $this->union($this->getLineBox($x1, $y1, $x1, $y2));
200
    }
201
202
    private function getLineBox($x1, $y1, $x2, $y2)
203
    {