Code Duplication    Length = 3-6 lines in 2 locations

Zewa/Router.php 2 locations

@@ 303-308 (lines=6) @@
300
                $class = '\\App\\Modules\\' . $module . '\\Controllers\\' . $controller;
301
                $methodExist = method_exists($class, $method);
302
                
303
                if ($methodExist === false) {
304
                    if (!empty($this->configuration->modules->$module->defaultMethod)) {
305
                        $method = $this->configuration->modules->$module->defaultMethod;
306
                        array_unshift($uriChunks, null);
307
                    }
308
                }
309
            } elseif (!empty($this->configuration->modules->$module->defaultMethod)) {
310
                $method = $this->configuration->modules->$module->defaultMethod;
311
            }
@@ 309-311 (lines=3) @@
306
                        array_unshift($uriChunks, null);
307
                    }
308
                }
309
            } elseif (!empty($this->configuration->modules->$module->defaultMethod)) {
310
                $method = $this->configuration->modules->$module->defaultMethod;
311
            }
312
313
            unset($uriChunks[0], $uriChunks[1], $uriChunks[2]);
314
        }