Skip to content

Commit 15c8c53

Browse files
ScuffedNewtgithub-actions[bot]
authored andcommitted
refactor: fix PHP styling
1 parent fe51eb7 commit 15c8c53

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/Http/Controllers/Users/TradeController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ public function getEditListing($id) {
575575
* Creates a new trade listing.
576576
*
577577
* @param App\Services\TradeListingManager $service
578+
* @param mixed|null $id
578579
*
579580
* @return \Illuminate\Http\RedirectResponse
580581
*/

app/Services/TradeListingManager.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ class TradeListingManager extends Service {
2626
/**
2727
* Creates a new trade listing.
2828
*
29-
* @param array $data
30-
* @param User $user
29+
* @param array $data
30+
* @param User $user
31+
* @param mixed|null $id
3132
*
3233
* @return bool|TradeListing
3334
*/
@@ -170,7 +171,7 @@ private function handleSeekingAssets($listing, $data, $user) {
170171
if (!$asset->allow_transfer) {
171172
throw new \Exception('One or more of the selected items cannot be transferred.');
172173
}
173-
} else if ($type == 'Currency') {
174+
} elseif ($type == 'Currency') {
174175
if (!$asset->is_user_owned) {
175176
throw new \Exception('One or more of the selected currencies cannot be held by users.');
176177
}

0 commit comments

Comments
 (0)