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

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