Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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