Code Duplication    Length = 9-9 lines in 2 locations

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

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