Code Duplication    Length = 7-7 lines in 2 locations

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
                }

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'];