Code Duplication    Length = 3-3 lines in 3 locations

src/svg/util/transform/Packer.php 3 locations

@@ 145-147 (lines=3) @@
142
    private function sumTranslate(array $first, array $second)
143
    {
144
        $y = null;
145
        if ($first[1] !== null || $second[1] !== null) {
146
            $y = $first[1] + $second[1];
147
        }
148
149
        return [
150
            $first[0] + $second[0],
@@ 184-186 (lines=3) @@
181
        $sumRotate = $first[0] + $second[0];
182
183
        $rotateCx = null;
184
        if ($first[1] !== null || $second[1] !== null) {
185
            $rotateCx = ($first[1] + $second[1]) / 2;
186
        }
187
188
        $rotateCy = null;
189
        if ($first[2] !== null || $second[2] !== null) {
@@ 189-191 (lines=3) @@
186
        }
187
188
        $rotateCy = null;
189
        if ($first[2] !== null || $second[2] !== null) {
190
            $rotateCy = ($first[2] + $second[2]) / 2;
191
        }
192
193
        return [
194
            $sumRotate,