Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 892-897 (lines=6) @@
889
            if (isset($config['service'])) {
890
                foreach ($config['service'] as $service) {
891
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
892
                    if (!class_exists($class)) {
893
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
894
                            'class' => $class,
895
                        ));
896
                        continue;
897
                    }
898
                    $this->register(new $class($this));
899
                }
900
            }
@@ 862-867 (lines=6) @@
859
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
860
                $eventExists = true;
861
862
                if (!class_exists($class)) {
863
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
864
                        'class' => $class,
865
                    ));
866
                    $eventExists = false;
867
                }
868
869
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
870