Skip to content

Commit

Permalink
refactor: fix PHP styling
Browse files Browse the repository at this point in the history
  • Loading branch information
itinerare authored and github-actions[bot] committed Feb 6, 2024
1 parent 5d7ce3d commit e597eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/WorldController.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function getSpeciesFeatureDetail($speciesId, $id) {
*/
public function getItems(Request $request) {
$query = Item::with('category');

if (!Auth::check() || !Auth::user()->isStaff) {
$query->released();
}
Expand Down Expand Up @@ -371,7 +371,7 @@ public function getItems(Request $request) {
*/
public function getItem($id) {
$categories = ItemCategory::orderBy('sort', 'DESC')->get();

if (!Auth::check() || !Auth::user()->isStaff) {
$item = Item::where('id', $id)->released()->first();
} else {
Expand Down

0 comments on commit e597eed

Please sign in to comment.