Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Application.php 1 location

@@ 901-903 (lines=3) @@
898
                // サブリクエストのREMOTE_ADDRも動的に設定を行う必要があるため、KernelEvents::REQUESTを使用する
899
                Request::setTrustedProxies(array_merge(array($event->getRequest()->server->get('REMOTE_ADDR')), $config['trusted_proxies']));
900
            }, self::EARLY_EVENT);
901
        } elseif (isset($config['trusted_proxies']) && !empty($config['trusted_proxies'])) {
902
            Request::setTrustedProxies($config['trusted_proxies']);
903
        }
904
    }
905
906
    public function initializePlugin()

src/Eccube/Controller/Install/InstallController.php 1 location

@@ 392-394 (lines=3) @@
389
        if (isset($config['trusted_proxies_connection_only']) && !empty($config['trusted_proxies_connection_only'])) {
390
            Request::setTrustedProxies(array_merge(array($request->server->get('REMOTE_ADDR')),
391
                $config['trusted_proxies']));
392
        } elseif (isset($config['trusted_proxies']) && !empty($config['trusted_proxies'])) {
393
            Request::setTrustedProxies($config['trusted_proxies']);
394
        }
395
396
        $pathConfig = require $this->configDir.'/path.php';
397
        $host = $request->getSchemeAndHttpHost();