@@ -83,15 +83,15 @@ public function testEmitBody($seekable, $contents, $maxBufferLength, $expectedRe
8383 $ stream ->isReadable ()->willReturn (true );
8484 $ stream ->rewind ()->willReturn (true );
8585
86- $ stream ->eof ()->will (function () use (&$ contents , &$ position ){
87- return !isset ($ contents [$ position ]);
86+ $ stream ->eof ()->will (function () use (&$ contents , &$ position ) {
87+ return ! isset ($ contents [$ position ]);
8888 });
8989
90- $ stream ->read (Argument::type ('integer ' ))->will (function ($ args ) use (&$ contents , &$ position ){
90+ $ stream ->read (Argument::type ('integer ' ))->will (function ($ args ) use (&$ contents , &$ position ) {
9191 $ data = substr ($ contents , $ position , $ args [0 ]);
9292 $ position += strlen ($ data );
9393 return $ data ;
94- });
94+ });
9595
9696 $ response = (new Response ())
9797 ->withStatus (200 )
@@ -102,7 +102,6 @@ public function testEmitBody($seekable, $contents, $maxBufferLength, $expectedRe
102102 $ stream ->rewind ()->shouldBeCalledTimes ($ seekable ? 1 : 0 );
103103 $ stream ->read (Argument::type ('integer ' ))->shouldBeCalledTimes ($ expectedReads );
104104 $ this ->assertEquals ($ contents , ob_get_clean ());
105-
106105 }
107106
108107 public function emitBodyRangeProvider ()
@@ -128,16 +127,16 @@ public function testEmitBodyRange($seekable, $contents, $range, $maxBufferLength
128127 $ stream ->getSize ()->willReturn (strlen ($ contents ));
129128 $ stream ->isSeekable ()->willReturn ($ seekable );
130129 $ stream ->isReadable ()->willReturn (true );
131- $ stream ->seek (Argument::type ('integer ' ))->will (function ($ args ) use (&$ position ){
130+ $ stream ->seek (Argument::type ('integer ' ))->will (function ($ args ) use (&$ position ) {
132131 $ position = $ args [0 ];
133132 return true ;
134133 });
135134
136- $ stream ->eof ()->will (function () use (&$ contents , &$ position ){
137- return !isset ($ contents [$ position ]);
135+ $ stream ->eof ()->will (function () use (&$ contents , &$ position ) {
136+ return ! isset ($ contents [$ position ]);
138137 });
139138
140- $ stream ->read (Argument::type ('integer ' ))->will (function ($ args ) use (&$ contents , &$ position ){
139+ $ stream ->read (Argument::type ('integer ' ))->will (function ($ args ) use (&$ contents , &$ position ) {
141140 $ data = substr ($ contents , $ position , $ args [0 ]);
142141 $ position += strlen ($ data );
143142 return $ data ;
0 commit comments