Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

@@ 578-584 (lines=7) @@
575
576
                        // promotionアイテム
577
                        $i = 0;
578
                        foreach ($items as $item) {
579
                            if ($item['promotion'] == 1) {
580
                                $promotionItems[] = $item;
581
                                unset($items[$i]);
582
                            }
583
                            $i++;
584
                        }
585
586
                    } else {
587
                        $message = $data['error_code'].' : '.$data['error_message'];