From 8cac9b5b0fc78303410aede32a73b0859aa26a2c Mon Sep 17 00:00:00 2001 From: freekmurze Date: Fri, 29 Jan 2021 19:37:50 +0000 Subject: [PATCH] Fix styling --- src/OriginFactory.php | 1 - src/Payloads/ViewPayload.php | 4 ++-- src/Watchers/ViewWatcher.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/OriginFactory.php b/src/OriginFactory.php index 8c8454d..2bcde86 100644 --- a/src/OriginFactory.php +++ b/src/OriginFactory.php @@ -3,7 +3,6 @@ namespace Spatie\LaravelRay; use Illuminate\Events\Dispatcher; -use Illuminate\Http\Response; use Illuminate\Log\Logger; use Illuminate\Log\LogManager; use Illuminate\Support\Collection; diff --git a/src/Payloads/ViewPayload.php b/src/Payloads/ViewPayload.php index acac6f7..4183c74 100644 --- a/src/Payloads/ViewPayload.php +++ b/src/Payloads/ViewPayload.php @@ -26,7 +26,7 @@ public function getContent(): array { return [ 'view_path' => $this->view->getPath(), - 'view_path_relative_to_project_root' => Str::after($this->pathRelativeToProjectRoot($this->view), '/'), + 'view_path_relative_to_project_root' => Str::after($this->pathRelativeToProjectRoot($this->view), '/'), 'data' => ArgumentConverter::convertToPrimitive($this->getData($this->view)), ]; } @@ -46,7 +46,7 @@ protected function getData(View $view): array { return collect($view->getData()) ->filter(function ($value, $key) { - return !in_array($key, ['app', '__env', 'obLevel', 'errors']); + return ! in_array($key, ['app', '__env', 'obLevel', 'errors']); }) ->toArray(); } diff --git a/src/Watchers/ViewWatcher.php b/src/Watchers/ViewWatcher.php index ac20a95..cb60195 100644 --- a/src/Watchers/ViewWatcher.php +++ b/src/Watchers/ViewWatcher.php @@ -10,7 +10,7 @@ class ViewWatcher extends Watcher public function register(): void { Event::listen('composing:*', function ($event, $data) { - if (!$this->enabled()) { + if (! $this->enabled()) { return; }