Code Duplication    Length = 7-7 lines in 2 locations

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

app/Acme/Controller/Admin/Store/OwnerStoreController.php 1 location

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