Code Duplication    Length = 7-7 lines in 2 locations

src/Http/Controllers/InventoryController.php 1 location

@@ 206-212 (lines=7) @@
203
      *
204
      * @return \Illuminate\Http\Response
205
      */
206
     public function load($name)
207
     {
208
         $path = storage_path().'/app/public/'.$name;
209
         if (file_exists($path)) {
210
             return Response::download($path);
211
         }
212
     }
213
214
    private function validateInput($request)
215
    {

src/Models/InventoryController.php 1 location

@@ 207-213 (lines=7) @@
204
      *
205
      * @return \Illuminate\Http\Response
206
      */
207
     public function load($name)
208
     {
209
         $path = storage_path().'/app/public/'.$name;
210
         if (file_exists($path)) {
211
             return Response::download($path);
212
         }
213
     }
214
215
    private function validateInput($request)
216
    {