Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 887-892 (lines=6) @@
884
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
885
                $eventExists = true;
886
887
                if (!class_exists($class)) {
888
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
889
                        'class' => $class,
890
                    ));
891
                    $eventExists = false;
892
                }
893
894
                if ($eventExists && isset($config['event'])) {
895
@@ 917-922 (lines=6) @@
914
            if (isset($config['service'])) {
915
                foreach ($config['service'] as $service) {
916
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
917
                    if (!class_exists($class)) {
918
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
919
                            'class' => $class,
920
                        ));
921
                        continue;
922
                    }
923
                    $this->register(new $class($this));
924
                }
925
            }