Passed
Push — main ( 5bf416...a159ee )
by John
03:59
created
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Usernotnull\Toast\Toast;
6 6
 
7
-if (! function_exists('toast')) {
7
+if ( ! function_exists('toast')) {
8 8
     function toast(): Toast
9 9
     {
10 10
         return app('toast');
Please login to merge, or discard this patch.
src/Concerns/WireToast.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     public function dehydrate(): void
12 12
     {
13
-        if (! ToastManager::componentRendered()) {
13
+        if ( ! ToastManager::componentRendered()) {
14 14
             foreach (ToastManager::pull() ?? [] as $notification) {
15 15
                 $this->dispatchBrowserEvent('toast', $notification);
16 16
             }
Please login to merge, or discard this patch.
src/Toast.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
     public function debug(mixed $message, string $title = null): Notification
17 17
     {
18
-        if (! is_string($message)) {
19
-            $message = json_encode($message, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT);
18
+        if ( ! is_string($message)) {
19
+            $message = json_encode($message, JSON_THROW_ON_ERROR|JSON_PRETTY_PRINT);
20 20
         }
21 21
 
22 22
         return new Notification($message, $title, NotificationType::$debug);
Please login to merge, or discard this patch.
bootstrap/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,4 +3,4 @@
 block discarded – undo
3 3
 declare(strict_types=1);
4 4
 
5 5
 /* This file is required for phpstan */
6
-return include getcwd()."/vendor/orchestra/testbench-core/laravel/bootstrap/app.php";
6
+return include getcwd() . "/vendor/orchestra/testbench-core/laravel/bootstrap/app.php";
Please login to merge, or discard this patch.
src/ToastBladeDirectives.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 {
7 7
     public static function toastScripts(string $expression): string
8 8
     {
9
-        return '{!! \Usernotnull\Toast\ToastManager::scripts('.$expression.') !!}';
9
+        return '{!! \Usernotnull\Toast\ToastManager::scripts(' . $expression . ') !!}';
10 10
     }
11 11
 }
Please login to merge, or discard this patch.
src/Controllers/JavaScriptAssets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 
12 12
     public function maps(): Response|BinaryFileResponse
13 13
     {
14
-        return $this->pretendResponseIsFile(__DIR__.'/../../dist/js/tall-toasts.js.map');
14
+        return $this->pretendResponseIsFile(__DIR__ . '/../../dist/js/tall-toasts.js.map');
15 15
     }
16 16
 
17 17
     public function source(): Response|BinaryFileResponse
18 18
     {
19
-        return $this->pretendResponseIsFile(__DIR__.'/../../dist/js/tall-toasts.js');
19
+        return $this->pretendResponseIsFile(__DIR__ . '/../../dist/js/tall-toasts.js');
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/ToastManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         return collect($notifications)
26 26
             ->filter(
27
-                fn (array $notification) => ! App::isProduction() || $notification['type'] !== NotificationType::$debug
27
+                fn(array $notification) => ! App::isProduction() || $notification['type'] !== NotificationType::$debug
28 28
             )
29 29
             ->values()
30 30
             ->toArray();
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $appUrl = config('toast.asset_url') ?: rtrim($options['asset_url'] ?? '', '/');
46 46
 
47
-        $manifestContent = File::get(__DIR__.'/../dist/js/manifest.json');
47
+        $manifestContent = File::get(__DIR__ . '/../dist/js/manifest.json');
48 48
 
49 49
         $manifest = json_decode($manifestContent, true, 512, JSON_THROW_ON_ERROR);
50 50
         $versionedFileName = $manifest['/tall-toasts.js'];
Please login to merge, or discard this patch.