Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-02-19 16:18:46 +00:00
committed by HolgerHatGarKeineNode
parent a15ca4a2bc
commit 5776b01d15
333 changed files with 4915 additions and 4967 deletions

View File

@@ -17,7 +17,7 @@ class BitcoinEventTable extends Component
public function mount()
{
if (!$this->year) {
if (! $this->year) {
$this->year = now()->year;
}
}
@@ -30,30 +30,30 @@ class BitcoinEventTable extends Component
'venue.city.country',
])
->where('bitcoin_events.from', '>=', now())
->where(fn($query) => $query
->where(fn ($query) => $query
->whereHas('venue.city.country',
fn($query) => $query->where('countries.code', $this->country->code))
fn ($query) => $query->where('countries.code', $this->country->code))
->orWhere('show_worldwide', true)
)
->get()
->map(fn($event) => [
'id' => $event->id,
'name' => $event->title,
->map(fn ($event) => [
'id' => $event->id,
'name' => $event->title,
'coords' => [$event->venue->city->latitude, $event->venue->city->longitude],
]),
'events' => BitcoinEvent::query()
'events' => BitcoinEvent::query()
->where('bitcoin_events.from', '>=', now())
->where(fn($query) => $query
->where(fn ($query) => $query
->whereHas('venue.city.country',
fn($query) => $query->where('countries.code', $this->country->code))
fn ($query) => $query->where('countries.code', $this->country->code))
->orWhere('show_worldwide', true)
)
->get()
->map(fn($event) => [
'id' => $event->id,
'startDate' => $event->from,
'endDate' => $event->to,
'location' => $event->title,
->map(fn ($event) => [
'id' => $event->id,
'startDate' => $event->from,
'endDate' => $event->to,
'location' => $event->title,
'description' => $event->description,
]),
])->layout('layouts.app', [
@@ -61,7 +61,7 @@ class BitcoinEventTable extends Component
title: __('Bitcoin Events'),
description: __('Search out a Bitcoin Event'),
image: asset('img/screenshot.png')
)
),
]);
}
@@ -69,13 +69,13 @@ class BitcoinEventTable extends Component
{
return to_route('bitcoinEvent.table.bitcoinEvent', [
'#table',
'country' => $this->country->code,
'year' => $this->year,
'country' => $this->country->code,
'year' => $this->year,
'bitcoin_events' => [
'filters' => [
'byid' => $id,
],
]
],
]);
}
@@ -83,13 +83,13 @@ class BitcoinEventTable extends Component
{
return to_route('bitcoinEvent.table.bitcoinEvent', [
'#table',
'country' => $this->country->code,
'year' => $this->year,
'country' => $this->country->code,
'year' => $this->year,
'bitcoin_events' => [
'filters' => [
'byid' => $ids,
]
]
],
],
]);
}
}