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

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