Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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