Skip to content

Commit 99d27b4

Browse files
committed
typos
1 parent 7ec5cc9 commit 99d27b4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Unreleased
44

5-
### Fixed
6-
7-
- #41: Response builder broke header value
8-
95
### Added
106

117
- The FullHttpMessageFormatter was added
128

9+
### Fixed
10+
11+
- #41: Response builder broke header value
12+
1313
## 1.2.0 - 2016-03-29
1414

1515
### Added

src/Formatter/FullHttpMessageFormatter.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class FullHttpMessageFormatter implements Formatter
1818
*
1919
* @var int
2020
*/
21-
private $maxBodyLendth;
21+
private $maxBodyLength;
2222

2323
/**
24-
* @param int $maxBodyLendth number of chars.
24+
* @param int $maxBodyLength
2525
*/
26-
public function __construct($maxBodyLendth = 1000)
26+
public function __construct($maxBodyLength = 1000)
2727
{
28-
$this->maxBodyLendth = $maxBodyLendth;
28+
$this->maxBodyLength = $maxBodyLength;
2929
}
3030

3131
/**
@@ -44,7 +44,7 @@ public function formatRequest(RequestInterface $request)
4444
$message .= $name.': '.implode(', ', $values)."\n";
4545
}
4646

47-
$message .= "\n".mb_substr($request->getBody()->__toString(), 0, $this->maxBodyLendth);
47+
$message .= "\n".mb_substr($request->getBody()->__toString(), 0, $this->maxBodyLength);
4848

4949
return $message;
5050
}
@@ -65,7 +65,7 @@ public function formatResponse(ResponseInterface $response)
6565
$message .= $name.': '.implode(', ', $values)."\n";
6666
}
6767

68-
$message .= "\n".mb_substr($response->getBody()->__toString(), 0, $this->maxBodyLendth);
68+
$message .= "\n".mb_substr($response->getBody()->__toString(), 0, $this->maxBodyLength);
6969

7070
return $message;
7171
}

0 commit comments

Comments
 (0)