From 40c7592f80bfcc1d06bbe9eca992e23e8600cc6b Mon Sep 17 00:00:00 2001 From: Thomas Ploch Date: Tue, 12 Dec 2017 18:32:57 +0100 Subject: [PATCH] Apply coding standard fixes for namespace imports --- example/MaybeMonoidTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/example/MaybeMonoidTest.php b/example/MaybeMonoidTest.php index 63e4bb2..6206c10 100644 --- a/example/MaybeMonoidTest.php +++ b/example/MaybeMonoidTest.php @@ -1,6 +1,7 @@ map(Listt::of); + return m\maybeNull($val)->map(Listt::of); }; $names = array_values(array_map($makeMaybeMonoid, $data)); @@ -19,7 +20,7 @@ class MaybeMonoidTest extends \PHPUnit_Framework_TestCase list($firstName, $middleName, $lastName) = $names; $fullName = $firstName->concat($middleName)->concat($lastName); - $fullNameFromReduce = array_reduce($names, \Widmogrod\Functional\concatM, \Widmogrod\Monad\Maybe\Nothing::mempty()); + $fullNameFromReduce = array_reduce($names, f\concatM, m\Nothing::mempty()); $this->assertInstanceOf(Just::class, $fullName); $this->assertEquals($fullName->extract()->extract(), $expected); -- 2.11.0