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');