mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-25 21:40:13 -06:00
PHP Style Change (Laravel Pint CI)
This commit is contained in:
@@ -26,7 +26,7 @@ class TopicLabelController extends Controller
|
||||
public function approve(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->approved = ! $topic->approved;
|
||||
$topic->approved = !$topic->approved;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
@@ -39,7 +39,7 @@ class TopicLabelController extends Controller
|
||||
public function deny(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->denied = ! $topic->denied;
|
||||
$topic->denied = !$topic->denied;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
@@ -52,7 +52,7 @@ class TopicLabelController extends Controller
|
||||
public function solve(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->solved = ! $topic->solved;
|
||||
$topic->solved = !$topic->solved;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
@@ -65,7 +65,7 @@ class TopicLabelController extends Controller
|
||||
public function invalid(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->invalid = ! $topic->invalid;
|
||||
$topic->invalid = !$topic->invalid;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
@@ -78,7 +78,7 @@ class TopicLabelController extends Controller
|
||||
public function bug(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->bug = ! $topic->bug;
|
||||
$topic->bug = !$topic->bug;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
@@ -91,7 +91,7 @@ class TopicLabelController extends Controller
|
||||
public function suggest(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->suggestion = ! $topic->suggestion;
|
||||
$topic->suggestion = !$topic->suggestion;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
@@ -104,7 +104,7 @@ class TopicLabelController extends Controller
|
||||
public function implement(int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$topic = Topic::findOrFail($id);
|
||||
$topic->implemented = ! $topic->implemented;
|
||||
$topic->implemented = !$topic->implemented;
|
||||
$topic->save();
|
||||
|
||||
return to_route('topics.show', ['id' => $topic->id])
|
||||
|
||||
Reference in New Issue
Block a user