mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-25 05:19:36 -06:00
chore: apply the laravel code style linter
This commit is contained in:
@@ -22,10 +22,8 @@ class TopicLabelController extends Controller
|
||||
{
|
||||
/**
|
||||
* Apply/Remove Approved Label.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function approve(\App\Models\Topic $id): \Illuminate\Http\RedirectResponse
|
||||
public function approve(Topic $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->approved = $topic->approved == 0 ? '1' : '0';
|
||||
@@ -37,10 +35,8 @@ class TopicLabelController extends Controller
|
||||
|
||||
/**
|
||||
* Apply/Remove Denied Label.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function deny(\App\Models\Topic $id): \Illuminate\Http\RedirectResponse
|
||||
public function deny(Topic $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->denied = $topic->denied == 0 ? '1' : '0';
|
||||
@@ -52,10 +48,8 @@ class TopicLabelController extends Controller
|
||||
|
||||
/**
|
||||
* Apply/Remove Solved Label.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function solve(\App\Models\Topic $id): \Illuminate\Http\RedirectResponse
|
||||
public function solve(Topic $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->solved = $topic->solved == 0 ? '1' : '0';
|
||||
@@ -67,10 +61,8 @@ class TopicLabelController extends Controller
|
||||
|
||||
/**
|
||||
* Apply/Remove Invalid Label.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function invalid(\App\Models\Topic $id): \Illuminate\Http\RedirectResponse
|
||||
public function invalid(Topic $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->invalid = $topic->invalid == 0 ? '1' : '0';
|
||||
@@ -82,10 +74,8 @@ class TopicLabelController extends Controller
|
||||
|
||||
/**
|
||||
* Apply/Remove Bug Label.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function bug(\App\Models\Topic $id): \Illuminate\Http\RedirectResponse
|
||||
public function bug(Topic $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->bug = $topic->bug == 0 ? '1' : '0';
|
||||
@@ -97,10 +87,8 @@ class TopicLabelController extends Controller
|
||||
|
||||
/**
|
||||
* Apply/Remove Suggestion Label.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function suggest(\App\Models\Topic $id): \Illuminate\Http\RedirectResponse
|
||||
public function suggest(Topic $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->suggestion = $topic->suggestion == 0 ? '1' : '0';
|
||||
@@ -112,10 +100,8 @@ class TopicLabelController extends Controller
|
||||
|
||||
/**
|
||||
* Apply/Remove Implemented Label.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function implement(\App\Models\Topic $id): \Illuminate\Http\RedirectResponse
|
||||
public function implement(Topic $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->implemented = $topic->implemented == 0 ? '1' : '0';
|
||||
|
||||
Reference in New Issue
Block a user