From 99e220345dd6f4b2c4c2ac2d267f56433dc444c7 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Thu, 11 Jun 2020 17:23:33 +0200 Subject: [PATCH] fix php cs --- src/HasConditionalCalls.php | 1 - tests/UnitTest.php | 28 ++++++++++++---------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/src/HasConditionalCalls.php b/src/HasConditionalCalls.php index d016d0d..7e6c1a0 100644 --- a/src/HasConditionalCalls.php +++ b/src/HasConditionalCalls.php @@ -23,6 +23,5 @@ public function when($condition, ?Closure $callback = null) } return $this; - } } diff --git a/tests/UnitTest.php b/tests/UnitTest.php index 8b6d9db..bc85e4e 100644 --- a/tests/UnitTest.php +++ b/tests/UnitTest.php @@ -29,8 +29,7 @@ public function bar() $proxied ->foo() ->when(true) - ->bar() - ; + ->bar(); assertSame('foo', $proxied->foo); assertSame('bar', $proxied->bar); @@ -41,8 +40,7 @@ public function bar() $proxied ->when(true) ->bar() - ->foo() - ; + ->foo(); assertSame('foo', $proxied->foo); assertSame('bar', $proxied->bar); @@ -53,8 +51,7 @@ public function bar() $proxied ->foo() ->when(false) - ->bar() - ; + ->bar(); assertSame('foo', $proxied->foo); assertNull($proxied->bar); @@ -65,8 +62,7 @@ public function bar() $proxied ->when(false) ->bar() - ->foo() - ; + ->foo(); assertSame('foo', $proxied->foo); assertNull($proxied->bar); @@ -77,8 +73,7 @@ public function bar() $proxied ->foo() ->when('lorem') - ->bar() - ; + ->bar(); assertSame('foo', $proxied->foo); assertSame('bar', $proxied->bar); @@ -89,8 +84,7 @@ public function bar() $proxied ->foo() ->when(null) - ->bar() - ; + ->bar(); assertSame('foo', $proxied->foo); assertNull($proxied->bar); @@ -100,8 +94,9 @@ public function bar() $proxied = new Proxied(); $proxied ->foo() - ->when(true, function(Proxied $p) { return $p->bar(); }) - ; + ->when(true, function (Proxied $p) { + return $p->bar(); + }); assertSame('foo', $proxied->foo); assertSame('bar', $proxied->bar); @@ -111,8 +106,9 @@ public function bar() $proxied = new Proxied(); $proxied ->foo() - ->when(false, function(Proxied $p) { return $p->bar(); }) - ; + ->when(false, function (Proxied $p) { + return $p->bar(); + }); assertSame('foo', $proxied->foo); assertNull($proxied->bar);