Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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