Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 539-542 (lines=4) @@
536
                                // 未対象バージョン
537
                                $item['version_check'] = 0;
538
                            }
539
                            if ($item['price'] != '0' && $item['purchased'] == '0') {
540
                                // 有料商品で未購入
541
                                $item['update_status'] = 4;
542
                            }
543
                        }
544
                        unset($item);
545

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

@@ 134-137 (lines=4) @@
131
                            // Match version
132
                            $item['version_check'] = 1;
133
                        }
134
                        if ($item['price'] != '0' && $item['purchased'] == '0') {
135
                            // Not purchased with paid items
136
                            $item['update_status'] = 4;
137
                        }
138
139
                        // Add plugin dependency
140
                        $item['depend'] = $this->pluginService->getRequirePluginName($items, $item);