Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI authored and StyleCIBot committed Aug 26, 2018
1 parent 3dfc11b commit 84ac541
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
1 change: 0 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@
Route::get('logs/{log}', \KABBOUCHI\LogsTool\Http\Controllers\LogsController::class.'@show');
Route::get('daily-log-files', \KABBOUCHI\LogsTool\Http\Controllers\LogsController::class.'@dailyLogFiles');
Route::delete('logs', \KABBOUCHI\LogsTool\Http\Controllers\LogsController::class.'@destroy');

36 changes: 18 additions & 18 deletions src/Http/Controllers/LogsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ public function dailyLogFiles()
});
}

/**
* @param $log
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
* @throws \Exception
*/
public function show($log)
{
return response()->download(Ward::pathToLogFile($log));
}

/**
* @throws \Exception
*/
public function destroy()
{
app('files')->delete(Ward::pathToLogFile(request('file')));
cache()->clear();
}
/**
* @param $log
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
* @throws \Exception
*/
public function show($log)
{
return response()->download(Ward::pathToLogFile($log));
}

/**
* @throws \Exception
*/
public function destroy()
{
app('files')->delete(Ward::pathToLogFile(request('file')));
cache()->clear();
}
}

0 comments on commit 84ac541

Please sign in to comment.