Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 917-922 (lines=6) @@
914
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
915
                $eventExists = true;
916
917
                if (!class_exists($class)) {
918
                    $this['monolog']->warning("Event class for plugin {$code} not exists.", array(
919
                        'class' => $class,
920
                    ));
921
                    $eventExists = false;
922
                }
923
924
                if ($eventExists && isset($config['event'])) {
925
@@ 947-952 (lines=6) @@
944
            if (isset($config['service'])) {
945
                foreach ($config['service'] as $service) {
946
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
947
                    if (!class_exists($class)) {
948
                        $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array(
949
                            'class' => $class,
950
                        ));
951
                        continue;
952
                    }
953
                    $this->register(new $class($this));
954
                }
955
            }