Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 872-877 (lines=6) @@
869
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
870
                $eventExists = true;
871
872
                if (!class_exists($class)) {
873
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
874
                        'class' =>  $class,
875
                    ));
876
                    $eventExists = false;
877
                }
878
879
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
880
@@ 902-907 (lines=6) @@
899
            if (isset($config['service'])) {
900
                foreach ($config['service'] as $service) {
901
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
902
                    if (!class_exists($class)) {
903
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
904
                            'class' =>  $class,
905
                        ));
906
                        continue;
907
                    }
908
                    $this->register(new $class($this));
909
                }
910
            }