Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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