Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spatie/laravel-ray
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 31, 2021
2 parents 0e4ceb5 + 8cac9b5 commit b90f0a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/OriginFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Payloads/ViewPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
];
}
Expand All @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Watchers/ViewWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b90f0a6

Please sign in to comment.