Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 899-904 (lines=6) @@
896
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
897
                $eventExists = true;
898
899
                if (!class_exists($class)) {
900
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
901
                        'class' =>  $class,
902
                    ));
903
                    $eventExists = false;
904
                }
905
906
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
907
@@ 929-934 (lines=6) @@
926
            if (isset($config['service'])) {
927
                foreach ($config['service'] as $service) {
928
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
929
                    if (!class_exists($class)) {
930
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
931
                            'class' =>  $class,
932
                        ));
933
                        continue;
934
                    }
935
                    $this->register(new $class($this));
936
                }
937
            }