Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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