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

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