@@ -18,14 +18,14 @@ class FullHttpMessageFormatter implements Formatter
18
18
*
19
19
* @var int
20
20
*/
21
- private $ maxBodyLendth ;
21
+ private $ maxBodyLength ;
22
22
23
23
/**
24
- * @param int $maxBodyLendth number of chars.
24
+ * @param int $maxBodyLength
25
25
*/
26
- public function __construct ($ maxBodyLendth = 1000 )
26
+ public function __construct ($ maxBodyLength = 1000 )
27
27
{
28
- $ this ->maxBodyLendth = $ maxBodyLendth ;
28
+ $ this ->maxBodyLength = $ maxBodyLength ;
29
29
}
30
30
31
31
/**
@@ -44,7 +44,7 @@ public function formatRequest(RequestInterface $request)
44
44
$ message .= $ name .': ' .implode (', ' , $ values )."\n" ;
45
45
}
46
46
47
- $ message .= "\n" .mb_substr ($ request ->getBody ()->__toString (), 0 , $ this ->maxBodyLendth );
47
+ $ message .= "\n" .mb_substr ($ request ->getBody ()->__toString (), 0 , $ this ->maxBodyLength );
48
48
49
49
return $ message ;
50
50
}
@@ -65,7 +65,7 @@ public function formatResponse(ResponseInterface $response)
65
65
$ message .= $ name .': ' .implode (', ' , $ values )."\n" ;
66
66
}
67
67
68
- $ message .= "\n" .mb_substr ($ response ->getBody ()->__toString (), 0 , $ this ->maxBodyLendth );
68
+ $ message .= "\n" .mb_substr ($ response ->getBody ()->__toString (), 0 , $ this ->maxBodyLength );
69
69
70
70
return $ message ;
71
71
}
0 commit comments