Code Duplication    Length = 7-7 lines in 2 locations

app/Acme/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
                }

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

@@ 539-545 (lines=7) @@
536
537
                        // promotionアイテム
538
                        $i = 0;
539
                        foreach ($items as $item) {
540
                            if ($item['promotion'] == 1) {
541
                                $promotionItems[] = $item;
542
                                unset($items[$i]);
543
                            }
544
                            $i++;
545
                        }
546
547
                    } else {
548
                        $message = $data['error_code'].' : '.$data['error_message'];