Code Duplication    Length = 3-3 lines in 2 locations

src/Classification.php 2 locations

@@ 129-131 (lines=3) @@
126
                case 1:
127
                    $o[0][$key]= $this->simplifyItemDataArray($value, null, $selected['top_category']);
128
                    break;
129
                case 2:
130
                    $o[1][$key]= $this->simplifyItemDataArray($value, 'top_category', $selected['first_category']);
131
                    break;
132
                case 3:
133
                    $o[2][$key]= $this->simplifyItemDataArray($value, 'first_category', $selected['second_category']);
134
                    break;
@@ 132-134 (lines=3) @@
129
                case 2:
130
                    $o[1][$key]= $this->simplifyItemDataArray($value, 'top_category', $selected['first_category']);
131
                    break;
132
                case 3:
133
                    $o[2][$key]= $this->simplifyItemDataArray($value, 'first_category', $selected['second_category']);
134
                    break;
135
                case 4:
136
                    $o[3][$key]= $this->simplifyItemDataArray($value, 'second_category', $selected['code']);
137
                    // some second_category are missing