Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 898-903 (lines=6) @@
895
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
896
                $eventExists = true;
897
898
                if (!class_exists($class)) {
899
                    $this['monolog']->warning("Event class for plugin {$code} not exists.", array(
900
                        'class' => $class,
901
                    ));
902
                    $eventExists = false;
903
                }
904
905
                if ($eventExists && isset($config['event'])) {
906
@@ 928-933 (lines=6) @@
925
            if (isset($config['service'])) {
926
                foreach ($config['service'] as $service) {
927
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
928
                    if (!class_exists($class)) {
929
                        $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array(
930
                            'class' => $class,
931
                        ));
932
                        continue;
933
                    }
934
                    $this->register(new $class($this));
935
                }
936
            }