From d46d5665d0dccc983e86de0903cf6a665f61162a Mon Sep 17 00:00:00 2001 From: Martin Jonas Date: Sun, 24 Jan 2021 22:11:32 +0100 Subject: [PATCH] Custom formatters refactoring - coding standard --- library/Mockery.php | 2 +- tests/Mockery/WithCustomFormatterExpectationTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Mockery.php b/library/Mockery.php index ba98c8462..44a5a4b8d 100644 --- a/library/Mockery.php +++ b/library/Mockery.php @@ -662,7 +662,7 @@ private static function objectToArray($object, $nesting = 3) return array('...'); } - $defaultFormatter = function($object, $nesting) { + $defaultFormatter = function ($object, $nesting) { return array('properties' => self::extractInstancePublicProperties($object, $nesting)); }; diff --git a/tests/Mockery/WithCustomFormatterExpectationTest.php b/tests/Mockery/WithCustomFormatterExpectationTest.php index 98c305203..4190f7ae2 100644 --- a/tests/Mockery/WithCustomFormatterExpectationTest.php +++ b/tests/Mockery/WithCustomFormatterExpectationTest.php @@ -60,7 +60,7 @@ function ($object, $nesting) { */ public function testGetObjectFormatter($object, $expected) { - $defaultFormatter = function($class, $nesting) { + $defaultFormatter = function ($class, $nesting) { return null; };