Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 566-572 (lines=7) @@
563
564
                        // promotionアイテム
565
                        $i = 0;
566
                        foreach ($items as $item) {
567
                            if ($item['promotion'] == 1) {
568
                                $promotionItems[] = $item;
569
                                unset($items[$i]);
570
                            }
571
                            $i++;
572
                        }
573
574
                    } else {
575
                        $message = $data['error_code'].' : '.$data['error_message'];

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

@@ 153-159 (lines=7) @@
150
151
                    // Promotion item
152
                    $i = 0;
153
                    foreach ($items as $item) {
154
                        if ($item['promotion'] == 1) {
155
                            $promotionItems[] = $item;
156
                            unset($items[$i]);
157
                        }
158
                        $i++;
159
                    }
160
                } else {
161
                    $message = $data['error_code'].' : '.$data['error_message'];
162
                }