Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 933-938 (lines=6) @@
930
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
931
                $eventExists = true;
932
933
                if (!class_exists($class)) {
934
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
935
                        'class' =>  $class,
936
                    ));
937
                    $eventExists = false;
938
                }
939
940
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
941
@@ 963-968 (lines=6) @@
960
            if (isset($config['service'])) {
961
                foreach ($config['service'] as $service) {
962
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
963
                    if (!class_exists($class)) {
964
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
965
                            'class' =>  $class,
966
                        ));
967
                        continue;
968
                    }
969
                    $this->register(new $class($this));
970
                }
971
            }