Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 867-872 (lines=6) @@
864
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
865
                $eventExists = true;
866
867
                if (!class_exists($class)) {
868
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
869
                        'class' =>  $class,
870
                    ));
871
                    $eventExists = false;
872
                }
873
874
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
875
@@ 897-902 (lines=6) @@
894
            if (isset($config['service'])) {
895
                foreach ($config['service'] as $service) {
896
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
897
                    if (!class_exists($class)) {
898
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
899
                            'class' =>  $class,
900
                        ));
901
                        continue;
902
                    }
903
                    $this->register(new $class($this));
904
                }
905
            }