Code Duplication    Length = 3-3 lines in 4 locations

src/Http/Traits/FluteRoutesTrait.php 4 locations

@@ 64-66 (lines=3) @@
61
        if (in_array(ControllerIndexInterface::class, $classInterfaces) === true) {
62
            $group->get($resourceName, $handler(JCI::METHOD_INDEX), $params(JCI::METHOD_INDEX));
63
        }
64
        if (in_array(ControllerCreateInterface::class, $classInterfaces) === true) {
65
            $group->post($resourceName, $handler(JCI::METHOD_CREATE), $params(JCI::METHOD_CREATE));
66
        }
67
        if (in_array(ControllerReadInterface::class, $classInterfaces) === true) {
68
            $group->get($resourceName . $indexSlug, $handler(JCI::METHOD_READ), $params(JCI::METHOD_READ));
69
        }
@@ 67-69 (lines=3) @@
64
        if (in_array(ControllerCreateInterface::class, $classInterfaces) === true) {
65
            $group->post($resourceName, $handler(JCI::METHOD_CREATE), $params(JCI::METHOD_CREATE));
66
        }
67
        if (in_array(ControllerReadInterface::class, $classInterfaces) === true) {
68
            $group->get($resourceName . $indexSlug, $handler(JCI::METHOD_READ), $params(JCI::METHOD_READ));
69
        }
70
        if (in_array(ControllerUpdateInterface::class, $classInterfaces) === true) {
71
            $group->patch($resourceName . $indexSlug, $handler(JCI::METHOD_UPDATE), $params(JCI::METHOD_UPDATE));
72
        }
@@ 70-72 (lines=3) @@
67
        if (in_array(ControllerReadInterface::class, $classInterfaces) === true) {
68
            $group->get($resourceName . $indexSlug, $handler(JCI::METHOD_READ), $params(JCI::METHOD_READ));
69
        }
70
        if (in_array(ControllerUpdateInterface::class, $classInterfaces) === true) {
71
            $group->patch($resourceName . $indexSlug, $handler(JCI::METHOD_UPDATE), $params(JCI::METHOD_UPDATE));
72
        }
73
        if (in_array(ControllerDeleteInterface::class, $classInterfaces) === true) {
74
            $group->delete($resourceName . $indexSlug, $handler(JCI::METHOD_DELETE), $params(JCI::METHOD_DELETE));
75
        }
@@ 73-75 (lines=3) @@
70
        if (in_array(ControllerUpdateInterface::class, $classInterfaces) === true) {
71
            $group->patch($resourceName . $indexSlug, $handler(JCI::METHOD_UPDATE), $params(JCI::METHOD_UPDATE));
72
        }
73
        if (in_array(ControllerDeleteInterface::class, $classInterfaces) === true) {
74
            $group->delete($resourceName . $indexSlug, $handler(JCI::METHOD_DELETE), $params(JCI::METHOD_DELETE));
75
        }
76
77
        return $group;
78
    }