From 293c121c48623d39768ed3933b8236f5564b6150 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 16 Jan 2023 22:25:26 +0100 Subject: [PATCH] Adhere PHP-CS.. --- src/Core/Hooks/Model/InstanceManager.php | 4 ++-- tests/Util/Hooks/InstanceMocks/FakeInstance.php | 12 ++++++------ tests/src/Core/Hooks/Model/InstanceManagerTest.php | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Core/Hooks/Model/InstanceManager.php b/src/Core/Hooks/Model/InstanceManager.php index 4b8a0e6de8..7a3697062d 100644 --- a/src/Core/Hooks/Model/InstanceManager.php +++ b/src/Core/Hooks/Model/InstanceManager.php @@ -92,8 +92,8 @@ class InstanceManager implements ICanManageInstances 'instanceOf' => $decorator['class'], 'constructParams' => empty($decorator['arguments']) ? null : $decorator['arguments'], /// @todo maybe support call structures for hooks as well in a later stage - could make factory calls easier - 'call' => null, - 'substitutions' => [$class => $instance], + 'call' => null, + 'substitutions' => [$class => $instance], ]); $instance = $this->dice->create($class); diff --git a/tests/Util/Hooks/InstanceMocks/FakeInstance.php b/tests/Util/Hooks/InstanceMocks/FakeInstance.php index 70fdbcd4fe..ff99002f7c 100644 --- a/tests/Util/Hooks/InstanceMocks/FakeInstance.php +++ b/tests/Util/Hooks/InstanceMocks/FakeInstance.php @@ -31,16 +31,16 @@ class FakeInstance implements IAmADecoratedInterface, IAmAStrategy public function __construct(string $aText = null, bool $cBool = null, string $bText = null) { - $this->aText = $aText; - $this->cBool = $cBool; - $this->bText = $bText; + $this->aText = $aText; + $this->cBool = $cBool; + $this->bText = $bText; } public function createSomething(string $aText, bool $cBool, string $bText): string { - $this->aText = $aText; - $this->cBool = $cBool; - $this->bText = $bText; + $this->aText = $aText; + $this->cBool = $cBool; + $this->bText = $bText; } public function getAText(): ?string diff --git a/tests/src/Core/Hooks/Model/InstanceManagerTest.php b/tests/src/Core/Hooks/Model/InstanceManagerTest.php index 94340b012f..4e4c0135cb 100644 --- a/tests/src/Core/Hooks/Model/InstanceManagerTest.php +++ b/tests/src/Core/Hooks/Model/InstanceManagerTest.php @@ -53,26 +53,26 @@ class InstanceManagerTest extends MockedTest public function dataTests(): array { return [ - 'only_a' => [ + 'only_a' => [ 'aString' => 'test', ], - 'a_b' => [ + 'a_b' => [ 'aString' => 'test', - 'cBool' => false, + 'cBool' => false, 'bString' => 'test23', ], - 'a_c' => [ + 'a_c' => [ 'aString' => 'test', 'cBool' => false, 'bString' => null, ], - 'a_b_c' => [ + 'a_b_c' => [ 'aString' => 'test', 'cBool' => false, 'bString' => 'test23', ], - 'null' => [], + 'null' => [], ]; } -- 2.39.5