Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
drjamesj committed Jul 6, 2024
1 parent fe0a9ec commit c3b6340
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Listeners/ReverbMessageReceivedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct()
public function handle(MessageReceived $event): void
{
$message = json_decode($event->message, associative: true);
if (!isset($message['event']) || $message['event'] !== config('livewire-beacon.events.inbound')) {
if (! isset($message['event']) || $message['event'] !== config('livewire-beacon.events.inbound')) {
return;
}

Expand Down
6 changes: 3 additions & 3 deletions src/LivewireBeacon.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LivewireBeacon

public static function livewireBeaconScripts($expression)
{
return '{!! \Executable\LivewireBeacon\LivewireBeacon::scripts(' . $expression . ') !!}';
return '{!! \Executable\LivewireBeacon\LivewireBeacon::scripts('.$expression.') !!}';
}

public static function scripts($options = [])
Expand All @@ -29,8 +29,8 @@ public function returnJavascriptAsFile()
{
return Utils::pretendResponseIsFile(
config('app.debug')
? __DIR__ . '/../dist/beacon.js'
: __DIR__ . '/../dist/beacon.min.js'
? __DIR__.'/../dist/beacon.js'
: __DIR__.'/../dist/beacon.min.js'
);
}
}
2 changes: 1 addition & 1 deletion src/LivewireBeaconServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function packageBooted()
);

$url = $route->uri();
$url = (string) str($url)->when(!str($url)->isUrl(), fn ($url) => $url->start('/'));
$url = (string) str($url)->when(! str($url)->isUrl(), fn ($url) => $url->start('/'));

LivewireBeacon::$javascriptRoute = $url;
}
Expand Down
3 changes: 1 addition & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

namespace Executable\LivewireBeacon\Tests;

use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use Executable\LivewireBeacon\LivewireBeaconServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;

class TestCase extends Orchestra
{
Expand Down

0 comments on commit c3b6340

Please sign in to comment.