Skip to content

Commit 8114f35

Browse files
committed
Applied automated CS fixes
1 parent 068ae33 commit 8114f35

7 files changed

+12
-14
lines changed

bin/console.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ static function (int $errorCode, string $message = '', string $file = '', int $l
6363
E_STRICT | E_NOTICE | E_WARNING,
6464
);
6565

66-
$variables = EnvironmentVariables::fromEnvironment(new ImportGpgKeyFromStringViaTemporaryFile());
67-
$logger = new Logger(
66+
$variables = EnvironmentVariables::fromEnvironment(new ImportGpgKeyFromStringViaTemporaryFile());
67+
$logger = new Logger(
6868
'automatic-releases',
6969
[new StreamHandler(STDERR, $variables->logLevel())],
7070
[

src/HttpClient/LoggingHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ public function sendRequest(RequestInterface $request): ResponseInterface
3232

3333
return $response;
3434
}
35-
}
35+
}

src/Monolog/ConvertLogContextHttpRequestsIntoStrings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use Monolog\Processor\ProcessorInterface;
99
use Psr\Http\Message\RequestInterface;
1010

11+
use function array_map;
12+
1113
/** @internal */
1214
final class ConvertLogContextHttpRequestsIntoStrings implements ProcessorInterface
1315
{
@@ -34,4 +36,4 @@ public function __invoke(LogRecord $record): LogRecord
3436
$record->formatted
3537
);
3638
}
37-
}
39+
}

src/Monolog/ConvertLogContextHttpResponsesIntoStrings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use Monolog\Processor\ProcessorInterface;
99
use Psr\Http\Message\ResponseInterface;
1010

11+
use function array_map;
12+
1113
/** @internal */
1214
final class ConvertLogContextHttpResponsesIntoStrings implements ProcessorInterface
1315
{
@@ -34,4 +36,4 @@ public function __invoke(LogRecord $record): LogRecord
3436
$record->formatted
3537
);
3638
}
37-
}
39+
}

test/unit/HttpClient/LoggingHttpClientTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66

77
use Http\Discovery\Psr17FactoryDiscovery;
88
use Laminas\AutomaticReleases\HttpClient\LoggingHttpClient;
9-
use Monolog\Handler\StreamHandler;
10-
use Monolog\Logger;
119
use PHPUnit\Framework\TestCase;
1210
use Psr\Http\Client\ClientInterface;
1311
use Psr\Log\LoggerInterface;
14-
use function fopen;
1512

1613
/** @covers \Laminas\AutomaticReleases\HttpClient\LoggingHttpClient */
1714
final class LoggingHttpClientTest extends TestCase

test/unit/Monolog/ConvertLogContextHttpResponsesIntoStringsTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@
66

77
use DateTimeImmutable;
88
use Http\Discovery\Psr17FactoryDiscovery;
9-
use Laminas\AutomaticReleases\HttpClient\LoggingHttpClient;
10-
use Laminas\AutomaticReleases\Monolog\ConvertLogContextHttpRequestsIntoStrings;
119
use Laminas\AutomaticReleases\Monolog\ConvertLogContextHttpResponsesIntoStrings;
12-
use Monolog\Handler\StreamHandler;
1310
use Monolog\Level;
14-
use Monolog\Logger;
1511
use Monolog\LogRecord;
1612
use PHPUnit\Framework\TestCase;
17-
use Psr\Http\Client\ClientInterface;
18-
use function fopen;
1913

2014
/** @covers \Laminas\AutomaticReleases\Monolog\ConvertLogContextHttpResponsesIntoStrings */
2115
final class ConvertLogContextHttpResponsesIntoStringsTest extends TestCase

test/unit/Monolog/VerifyLoggingIntegrationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
use Monolog\Handler\StreamHandler;
1111
use Monolog\Logger;
1212
use PHPUnit\Framework\TestCase;
13+
1314
use function fopen;
15+
use function rewind;
16+
use function stream_get_contents;
1417

1518
/**
1619
* Small integration test to ensure future compatibility with monolog in our setup.

0 commit comments

Comments
 (0)