Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 873-878 (lines=6) @@
870
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
871
                $eventExists = true;
872
873
                if (!class_exists($class)) {
874
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
875
                        'class' =>  $class,
876
                    ));
877
                    $eventExists = false;
878
                }
879
880
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
881
@@ 903-908 (lines=6) @@
900
            if (isset($config['service'])) {
901
                foreach ($config['service'] as $service) {
902
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
903
                    if (!class_exists($class)) {
904
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
905
                            'class' =>  $class,
906
                        ));
907
                        continue;
908
                    }
909
                    $this->register(new $class($this));
910
                }
911
            }