Code Duplication    Length = 3-6 lines in 2 locations

Zewa/Router.php 2 locations

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