Skip to content

Commit 3bd3e16

Browse files
committed
Fix style and test
1 parent e36005e commit 3bd3e16

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/LogAllFilter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ public function shouldLog(
1313
float $sec,
1414
array $context = [],
1515
array $config = []
16-
): bool
17-
{
16+
): bool {
1817
return true;
1918
}
2019
}

src/MessageAccessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function filterRequest(RequestInterface $request): RequestInterface
138138
{
139139
/** @var RequestInterface $filtered */
140140
$filtered = $this->filterMessage($request);
141+
141142
return $filtered->withUri($this->getUri($request));
142143
}
143144

tests/MessageAccessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function test_get_content()
147147

148148
public function test_filter_message()
149149
{
150-
$request = $this->messageAccessor->filter($this->request);
150+
$request = $this->messageAccessor->filterMessage($this->request);
151151

152152
// Note that it is required to use double quotes for the Carriage Return (\r) to work and have it on one line to pass on Windows
153153
$output = "POST /some-path/secret/should-not-be-removed?test=true&search=foo&filter%5Bfield1%5D=A&filter%5Bfield2%5D=B HTTP/1.1\r\nHost: ********.example.com:9000\r\nAccept: application/json\r\nContent-Type: application/json\r\nAuthorization: ********\r\n\r\n{\"data\":{\"foo\":\"bar\",\"baz\":[{\"field_1\":\"value1\",\"field_2\":\"value2\",\"password\":\"********\",\"secret\":\"this is not for everyone\"}]}}";

0 commit comments

Comments
 (0)