Code Duplication    Length = 8-10 lines in 4 locations

src/svg/shape/PathBounds.php 4 locations

@@ 160-167 (lines=8) @@
157
        return $this->data;
158
    }
159
160
    private function getHBox()
161
    {
162
        $x1 = $this->vhValue('x');
163
        $y1 = $this->vhValue('y');
164
        $x2 = $this->current[0];
165
166
        $this->union($x1, $y1, $x2, $y1);
167
    }
168
169
170
    private function getHRelBox()
@@ 170-179 (lines=10) @@
167
    }
168
169
170
    private function getHRelBox()
171
    {
172
        $x1 = $this->vhValue('x');
173
        $y1 = $this->vhValue('y');
174
        $x2 = $this->current[0];
175
176
        $x2 += $x1;
177
178
        $this->union($x1, $y1, $x2, $y1);
179
    }
180
181
    private function getVBox()
182
    {
@@ 181-188 (lines=8) @@
178
        $this->union($x1, $y1, $x2, $y1);
179
    }
180
181
    private function getVBox()
182
    {
183
        $x1 = $this->vhValue('x');
184
        $y1 = $this->vhValue('y');
185
        $y2 = $this->current[0];
186
187
        $this->union($x1, $y1, $x1, $y2);
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($x1, $y1, $x1, $y2);
200
    }
201
202
    /**
203
     * @return array