Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 856-861 (lines=6) @@
853
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
854
                $eventExists = true;
855
856
                if (!class_exists($class)) {
857
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
858
                        'class' =>  $class,
859
                    ));
860
                    $eventExists = false;
861
                }
862
863
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
864
@@ 886-891 (lines=6) @@
883
            if (isset($config['service'])) {
884
                foreach ($config['service'] as $service) {
885
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
886
                    if (!class_exists($class)) {
887
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
888
                            'class' =>  $class,
889
                        ));
890
                        continue;
891
                    }
892
                    $this->register(new $class($this));
893
                }
894
            }