Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 896-901 (lines=6) @@
893
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
894
                $eventExists = true;
895
896
                if (!class_exists($class)) {
897
                    $this['monolog']->warning("Event class for plugin {$code} not exists.", array(
898
                        'class' => $class,
899
                    ));
900
                    $eventExists = false;
901
                }
902
903
                if ($eventExists && isset($config['event'])) {
904
@@ 926-931 (lines=6) @@
923
            if (isset($config['service'])) {
924
                foreach ($config['service'] as $service) {
925
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
926
                    if (!class_exists($class)) {
927
                        $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array(
928
                            'class' => $class,
929
                        ));
930
                        continue;
931
                    }
932
                    $this->register(new $class($this));
933
                }
934
            }