Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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