From 7c18db2bc667ac84e5d7c18e33f16c38ff2d8838 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Mon, 18 Nov 2024 14:58:58 +0000 Subject: [PATCH] Fix styling --- src/Arguments/Reducers/MinimalArrayArgumentReducer.php | 2 +- src/Arguments/Reducers/SymphonyRequestArgumentReducer.php | 2 +- src/Frame.php | 4 ++-- tests/BacktraceTest.php | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Arguments/Reducers/MinimalArrayArgumentReducer.php b/src/Arguments/Reducers/MinimalArrayArgumentReducer.php index 1c35c6b..b582d89 100644 --- a/src/Arguments/Reducers/MinimalArrayArgumentReducer.php +++ b/src/Arguments/Reducers/MinimalArrayArgumentReducer.php @@ -10,7 +10,7 @@ class MinimalArrayArgumentReducer implements ArgumentReducer { public function execute($argument): ReducedArgumentContract { - if(! is_array($argument)) { + if (! is_array($argument)) { return UnReducedArgument::create(); } diff --git a/src/Arguments/Reducers/SymphonyRequestArgumentReducer.php b/src/Arguments/Reducers/SymphonyRequestArgumentReducer.php index 7c46bee..baa932f 100644 --- a/src/Arguments/Reducers/SymphonyRequestArgumentReducer.php +++ b/src/Arguments/Reducers/SymphonyRequestArgumentReducer.php @@ -11,7 +11,7 @@ class SymphonyRequestArgumentReducer implements ArgumentReducer { public function execute($argument): ReducedArgumentContract { - if(! $argument instanceof Request) { + if (! $argument instanceof Request) { return UnReducedArgument::create(); } diff --git a/src/Frame.php b/src/Frame.php index 7bf3e54..b37f43c 100644 --- a/src/Frame.php +++ b/src/Frame.php @@ -91,11 +91,11 @@ public function getSnippetProperties(int $lineCount): array protected function getCodeSnippetProvider(): SnippetProvider { - if($this->textSnippet) { + if ($this->textSnippet) { return new LaravelSerializableClosureSnippetProvider($this->textSnippet); } - if(file_exists($this->file)) { + if (file_exists($this->file)) { return new FileSnippetProvider($this->file); } diff --git a/tests/BacktraceTest.php b/tests/BacktraceTest.php index 1585c25..ad9b0ff 100644 --- a/tests/BacktraceTest.php +++ b/tests/BacktraceTest.php @@ -315,5 +315,4 @@ public function it_does_not_trim_file_path_if_no_application_path_set() { $this->assertNull(Backtrace::create()->trimFilePaths()->frames()[0]->trimmedFilePath); } - }