@@ -670,7 +670,7 @@ |
||
| 670 | 670 | |
| 671 | 671 | $results = []; |
| 672 | 672 | |
| 673 | - $this->composerService->foreachRequires('ec-cube/'.$pluginCode, $pluginVersion, function($package) use(&$results) { |
|
| 673 | + $this->composerService->foreachRequires('ec-cube/'.$pluginCode, $pluginVersion, function ($package) use(&$results) { |
|
| 674 | 674 | $results[] = $package; |
| 675 | 675 | }, 'eccube-plugin'); |
| 676 | 676 | |
@@ -270,14 +270,14 @@ |
||
| 270 | 270 | // ストアからインストールしたプラグインは依存プラグインが有効化されているかを確認 |
| 271 | 271 | if ($Plugin->getSource()) { |
| 272 | 272 | $requires = $this->pluginService->getPluginRequired($Plugin); |
| 273 | - $requires = array_filter($requires, function($req) { |
|
| 273 | + $requires = array_filter($requires, function ($req) { |
|
| 274 | 274 | $code = preg_replace('/^ec-cube\//', '', $req['name']); |
| 275 | 275 | /** @var Plugin $DependPlugin */ |
| 276 | 276 | $DependPlugin = $this->pluginRepository->findOneBy(['code' => $code]); |
| 277 | 277 | return $DependPlugin->isEnabled() == false; |
| 278 | 278 | }); |
| 279 | 279 | if (!empty($requires)) { |
| 280 | - $names = array_map(function($req) { |
|
| 280 | + $names = array_map(function ($req) { |
|
| 281 | 281 | return "「${req['description']}」"; |
| 282 | 282 | }, $requires); |
| 283 | 283 | $message = trans('%depend_name%を先に有効化してください。', ['%name%' => $Plugin->getName(), '%depend_name%' => implode(', ', $names)]); |