Code Duplication    Length = 3-6 lines in 2 locations

Zewa/Router.php 2 locations

@@ 283-288 (lines=6) @@
280
                $class = '\\App\\Modules\\' . $module . '\\Controllers\\' . $controller;
281
                $methodExist = method_exists($class, $method);
282
                
283
                if ($methodExist === false) {
284
                    if (!empty($this->configuration->modules->$module->defaultMethod)) {
285
                        $method = $this->configuration->modules->$module->defaultMethod;
286
                        array_unshift($uriChunks, null);
287
                    }
288
                }
289
            } elseif (!empty($this->configuration->modules->$module->defaultMethod)) {
290
                $method = $this->configuration->modules->$module->defaultMethod;
291
            }
@@ 289-291 (lines=3) @@
286
                        array_unshift($uriChunks, null);
287
                    }
288
                }
289
            } elseif (!empty($this->configuration->modules->$module->defaultMethod)) {
290
                $method = $this->configuration->modules->$module->defaultMethod;
291
            }
292
293
            unset($uriChunks[0], $uriChunks[1], $uriChunks[2]);
294
        }