Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 714-719 (lines=6) @@
711
                $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];
712
                $eventExists = true;
713
714
                if (!class_exists($class)) {
715
                    $this['monolog']->warning("skip {$code} loading. event class not foud.", array(
716
                        'class' =>  $class,
717
                    ));
718
                    $eventExists = false;
719
                }
720
721
                if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) {
722
@@ 744-749 (lines=6) @@
741
            if (isset($config['service'])) {
742
                foreach ($config['service'] as $service) {
743
                    $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service;
744
                    if (!class_exists($class)) {
745
                        $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array(
746
                            'class' =>  $class,
747
                        ));
748
                        continue;
749
                    }
750
                    $this->register(new $class($this));
751
                }
752
            }