Code Duplication    Length = 7-7 lines in 2 locations

src/Eccube/Controller/Admin/Store/PluginController.php 1 location

@@ 552-558 (lines=7) @@
549
550
                        // promotionアイテム
551
                        $i = 0;
552
                        foreach ($items as $item) {
553
                            if ($item['promotion'] == 1) {
554
                                $promotionItems[] = $item;
555
                                unset($items[$i]);
556
                            }
557
                            $i++;
558
                        }
559
560
                    } else {
561
                        $message = $data['error_code'].' : '.$data['error_message'];

src/Eccube/Controller/Admin/Store/OwnerStoreController.php 1 location

@@ 126-132 (lines=7) @@
123
124
                    // Promotion item
125
                    $i = 0;
126
                    foreach ($items as $item) {
127
                        if ($item['promotion'] == 1) {
128
                            $promotionItems[] = $item;
129
                            unset($items[$i]);
130
                        }
131
                        $i++;
132
                    }
133
                } else {
134
                    $message = $data['error_code'] . ' : ' . $data['error_message'];
135
                }