Code Duplication    Length = 10-10 lines in 2 locations

src/Http/Controllers/InventoryController.php 1 location

@@ 221-230 (lines=10) @@
218
        ]);
219
    }
220
221
    private function createQueryInput($keys, $request)
222
    {
223
        $queryInput = [];
224
        for ($i = 0; $i < count($keys); $i++) {
225
            $key = $keys[$i];
226
            $queryInput[$key] = $request[$key];
227
        }
228
229
        return $queryInput;
230
    }
231
}
232

src/Models/InventoryController.php 1 location

@@ 234-243 (lines=10) @@
231
        ]);
232
    }
233
234
    private function createQueryInput($keys, $request)
235
    {
236
        $queryInput = [];
237
        for ($i = 0; $i < count($keys); $i++) {
238
            $key = $keys[$i];
239
            $queryInput[$key] = $request[$key];
240
        }
241
242
        return $queryInput;
243
    }
244
}
245