Code Duplication    Length = 3-3 lines in 2 locations

src/Http/Traits/FluteRoutesTrait.php 2 locations

@@ 58-60 (lines=3) @@
55
56
        // if the class implements any of CRUD methods a corresponding route will be added
57
        $classInterfaces = class_implements($controllerClass);
58
        if (in_array(ControllerIndexInterface::class, $classInterfaces) === true) {
59
            $group->get($resourceName, $handler(CI::METHOD_INDEX), $params(CI::METHOD_INDEX));
60
        }
61
        if (in_array(ControllerCreateInterface::class, $classInterfaces) === true) {
62
            $group->post($resourceName, $handler(CI::METHOD_CREATE), $params(CI::METHOD_CREATE));
63
        }
@@ 97-99 (lines=3) @@
94
        // if the class implements any of CRUD methods a corresponding route will be added
95
        // as HTML forms do not support methods other than GET/POST we use POST and special URI for update and delete.
96
        $classInterfaces = class_implements($controllerClass);
97
        if (in_array(ControllerIndexInterface::class, $classInterfaces) === true) {
98
            $group->get($subUri, $handler(CI::METHOD_INDEX), $params(CI::METHOD_INDEX));
99
        }
100
        if (in_array(ControllerCreateInterface::class, $classInterfaces) === true) {
101
            $group->post($subUri, $handler(CI::METHOD_CREATE), $params(CI::METHOD_CREATE));
102
        }