Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 33a696e

Browse files
committed
#223 #224 removed string interpolation, unnecessary parentheses
1 parent 54f3a9a commit 33a696e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Response/SapiStreamEmitterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function testEmitMemoryUsage($seekable, $maxBufferLength, $sizeBlocks, $m
185185

186186

187187
if ($rangeBlocks) {
188-
$response = $response->withHeader('Content-Range', "bytes $first-$last/*");
188+
$response = $response->withHeader('Content-Range', 'bytes ' . $first . '-' . $last . '/*');
189189
}
190190

191191
ob_start(function ($output) use (&$closureTrackMemoryUsage) {
@@ -204,7 +204,7 @@ public function testEmitMemoryUsage($seekable, $maxBufferLength, $sizeBlocks, $m
204204
$localMemoryUsage = memory_get_usage();
205205

206206
$this->assertLessThanOrEqual($maxBufferLength, $peakBufferLength);
207-
$this->assertLessThanOrEqual($maxAllowedMemoryUsage, ($peakMemoryUsage - $localMemoryUsage));
207+
$this->assertLessThanOrEqual($maxAllowedMemoryUsage, $peakMemoryUsage - $localMemoryUsage);
208208
}
209209

210210
public function emitBodyRangeProvider()

0 commit comments

Comments
 (0)