mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 11:39:19 -05:00
Apply fixes from StyleCI
This commit is contained in:
@@ -2009,7 +2009,7 @@ class UserController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Flushes own Peers
|
||||
* Flushes own Peers.
|
||||
*
|
||||
* @param \App\Models\User $username
|
||||
*/
|
||||
@@ -2020,7 +2020,7 @@ class UserController extends Controller
|
||||
\abort_unless($request->user()->id == $user->id, 403);
|
||||
|
||||
// Check if User can flush
|
||||
if ($request->user()->own_flushes == 0){
|
||||
if ($request->user()->own_flushes == 0) {
|
||||
return \redirect()->back()->withErrors('You can only flush twice a day!');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user