Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 907-912 (lines=6) @@
904
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
905
                $eventExists = true;
906
907
                if (!class_exists($class)) {
908
                    $this['monolog']->warning("Event class for plugin {$code} not exists.", array(
909
                        'class' => $class,
910
                    ));
911
                    $eventExists = false;
912
                }
913
914
                if ($eventExists && isset($config['event'])) {
915
@@ 937-942 (lines=6) @@
934
            if (isset($config['service'])) {
935
                foreach ($config['service'] as $service) {
936
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
937
                    if (!class_exists($class)) {
938
                        $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array(
939
                            'class' => $class,
940
                        ));
941
                        continue;
942
                    }
943
                    $this->register(new $class($this));
944
                }
945
            }