Code Duplication    Length = 10-10 lines in 2 locations

src/DI/CDIFactoryDefault.php 2 locations

@@ 76-85 (lines=10) @@
73
            $router = new \Anax\Route\CRouterBasic();
74
            $router->setDI($this);
75
76
            $router->addInternal('403', function () {
77
                $this->dispatcher->forward([
78
                    'controller' => 'error',
79
                    'action' => 'statusCode',
80
                    'params' => [
81
                        'code' => 403,
82
                        'message' => "HTTP Status Code 403: This is a forbidden route.",
83
                    ],
84
                ]);
85
            })->setName('403');
86
            
87
            $router->addInternal('404', function () {
88
                $this->dispatcher->forward([
@@ 102-111 (lines=10) @@
99
                ]);
100
            })->setName('404');
101
            
102
            $router->addInternal('500', function () {
103
                $this->dispatcher->forward([
104
                    'controller' => 'error',
105
                    'action' => 'statusCode',
106
                    'params' => [
107
                        'code' => 500,
108
                        'message' => "HTTP Status Code 500: There was an internal server or processing error.",
109
                    ],
110
                ]);
111
            })->setName('500');
112
            
113
            return $router;
114
        });