Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 893-898 (lines=6) @@
890
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
891
                $eventExists = true;
892
893
                if (!class_exists($class)) {
894
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
895
                        'class' => $class,
896
                    ));
897
                    $eventExists = false;
898
                }
899
900
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
901
@@ 923-928 (lines=6) @@
920
            if (isset($config['service'])) {
921
                foreach ($config['service'] as $service) {
922
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
923
                    if (!class_exists($class)) {
924
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
925
                            'class' => $class,
926
                        ));
927
                        continue;
928
                    }
929
                    $this->register(new $class($this));
930
                }
931
            }