Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 524-530 (lines=7) @@
521
522
                        // promotionアイテム
523
                        $i = 0;
524
                        foreach ($items as $item) {
525
                            if ($item['promotion'] == 1) {
526
                                $promotionItems[] = $item;
527
                                unset($items[$i]);
528
                            }
529
                            $i++;
530
                        }
531
532
                    } else {
533
                        $message = $data['error_code'].' : '.$data['error_message'];

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

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