Code Duplication    Length = 3-6 lines in 2 locations

Zewa/Router.php 2 locations

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