Code Duplication    Length = 10-10 lines in 7 locations

exercises/dependency-heaven/solution/vendor/klein/klein/src/Klein/Klein.php 7 locations

@@ 1093-1102 (lines=10) @@
1090
     * @param callable $callback
1091
     * @return Route
1092
     */
1093
    public function options($path = '*', $callback = null)
1094
    {
1095
        // Options the arguments in a very loose format
1096
        extract(
1097
            $this->parseLooseArgumentOrder(func_get_args()),
1098
            EXTR_OVERWRITE
1099
        );
1100
1101
        return $this->respond('OPTIONS', $path, $callback);
1102
    }
1103
1104
    /**
1105
     * HEAD alias for "respond()"
@@ 1112-1121 (lines=10) @@
1109
     * @param callable $callback
1110
     * @return Route
1111
     */
1112
    public function head($path = '*', $callback = null)
1113
    {
1114
        // Get the arguments in a very loose format
1115
        extract(
1116
            $this->parseLooseArgumentOrder(func_get_args()),
1117
            EXTR_OVERWRITE
1118
        );
1119
1120
        return $this->respond('HEAD', $path, $callback);
1121
    }
1122
1123
    /**
1124
     * GET alias for "respond()"
@@ 1131-1140 (lines=10) @@
1128
     * @param callable $callback
1129
     * @return Route
1130
     */
1131
    public function get($path = '*', $callback = null)
1132
    {
1133
        // Get the arguments in a very loose format
1134
        extract(
1135
            $this->parseLooseArgumentOrder(func_get_args()),
1136
            EXTR_OVERWRITE
1137
        );
1138
1139
        return $this->respond('GET', $path, $callback);
1140
    }
1141
1142
    /**
1143
     * POST alias for "respond()"
@@ 1150-1159 (lines=10) @@
1147
     * @param callable $callback
1148
     * @return Route
1149
     */
1150
    public function post($path = '*', $callback = null)
1151
    {
1152
        // Get the arguments in a very loose format
1153
        extract(
1154
            $this->parseLooseArgumentOrder(func_get_args()),
1155
            EXTR_OVERWRITE
1156
        );
1157
1158
        return $this->respond('POST', $path, $callback);
1159
    }
1160
1161
    /**
1162
     * PUT alias for "respond()"
@@ 1169-1178 (lines=10) @@
1166
     * @param callable $callback
1167
     * @return Route
1168
     */
1169
    public function put($path = '*', $callback = null)
1170
    {
1171
        // Get the arguments in a very loose format
1172
        extract(
1173
            $this->parseLooseArgumentOrder(func_get_args()),
1174
            EXTR_OVERWRITE
1175
        );
1176
1177
        return $this->respond('PUT', $path, $callback);
1178
    }
1179
1180
    /**
1181
     * DELETE alias for "respond()"
@@ 1188-1197 (lines=10) @@
1185
     * @param callable $callback
1186
     * @return Route
1187
     */
1188
    public function delete($path = '*', $callback = null)
1189
    {
1190
        // Get the arguments in a very loose format
1191
        extract(
1192
            $this->parseLooseArgumentOrder(func_get_args()),
1193
            EXTR_OVERWRITE
1194
        );
1195
1196
        return $this->respond('DELETE', $path, $callback);
1197
    }
1198
1199
    /**
1200
     * PATCH alias for "respond()"
@@ 1210-1219 (lines=10) @@
1207
     * @param callable $callback
1208
     * @return Route
1209
     */
1210
    public function patch($path = '*', $callback = null)
1211
    {
1212
        // Get the arguments in a very loose format
1213
        extract(
1214
            $this->parseLooseArgumentOrder(func_get_args()),
1215
            EXTR_OVERWRITE
1216
        );
1217
1218
        return $this->respond('PATCH', $path, $callback);
1219
    }
1220
}
1221