Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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