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; };