Code Duplication    Length = 9-9 lines in 2 locations

src/Eccube/Controller/Admin/Order/EditController.php 2 locations

@@ 349-357 (lines=9) @@
346
347
            $formatTel = '%s-%s-%s';
348
            $formatName = '%s%s(%s%s)';
349
            foreach ($Customers as $Customer) {
350
                $data[] = array(
351
                    'id' => $Customer->getId(),
352
                    'name' => sprintf($formatName, $Customer->getName01(), $Customer->getName02(), $Customer->getKana01(),
353
                        $Customer->getKana02()),
354
                    'tel' => sprintf($formatTel, $Customer->getTel01(), $Customer->getTel02(), $Customer->getTel03()),
355
                    'email' => $Customer->getEmail(),
356
                );
357
            }
358
359
            $event = new EventArgs(
360
                array(
@@ 437-445 (lines=9) @@
434
435
            $formatTel = '%s-%s-%s';
436
            $formatName = '%s%s(%s%s)';
437
            foreach ($Customers as $Customer) {
438
                $data[] = array(
439
                    'id' => $Customer->getId(),
440
                    'name' => sprintf($formatName, $Customer->getName01(), $Customer->getName02(), $Customer->getKana01(),
441
                        $Customer->getKana02()),
442
                    'tel' => sprintf($formatTel, $Customer->getTel01(), $Customer->getTel02(), $Customer->getTel03()),
443
                    'email' => $Customer->getEmail(),
444
                );
445
            }
446
447
            $event = new EventArgs(
448
                array(