Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 141-147 (lines=7) @@
138
139
                    // Promotion item
140
                    $i = 0;
141
                    foreach ($items as $item) {
142
                        if ($item['promotion'] == 1) {
143
                            $promotionItems[] = $item;
144
                            unset($items[$i]);
145
                        }
146
                        $i++;
147
                    }
148
                } else {
149
                    $message = $data['error_code'] . ' : ' . $data['error_message'];
150
                }

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

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