From 96366c64e3713c8fb3de861763e3db62074fd7f5 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Wed, 10 Jun 2020 18:54:09 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/ConditionalProxy.php | 2 +- tests/GlobalTypesTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ConditionalProxy.php b/src/ConditionalProxy.php index 9e790f0..ff2ef83 100644 --- a/src/ConditionalProxy.php +++ b/src/ConditionalProxy.php @@ -16,7 +16,7 @@ public function __construct(BaseObject $object, bool $condition) public function __call(string $name, array $arguments) { - if($this->condition) { + if ($this->condition) { call_user_func_array([$this->object, $name], $arguments); } diff --git a/tests/GlobalTypesTest.php b/tests/GlobalTypesTest.php index e25a920..6513941 100644 --- a/tests/GlobalTypesTest.php +++ b/tests/GlobalTypesTest.php @@ -39,8 +39,8 @@ public function __toString() ->url('http://www.example.com') ->description('Description') ->locale('en_US') - ->when(false, fn(Website $og) => $og->alternateLocale('de_DE')) - ->when(true, fn(Website $og) => $og->alternateLocale('en_GB')) + ->when(false, fn (Website $og) => $og->alternateLocale('de_DE')) + ->when(true, fn (Website $og) => $og->alternateLocale('en_GB')) ->siteName('Example') ->image('http://www.example.com/image1.jpg');