Skip to content

Commit 9a3bcab

Browse files
Merge branch '7.2' into 7.3
* 7.2: - - CS fixes
2 parents ab1f64e + a3b4224 commit 9a3bcab

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

EventListener/ErrorListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ public static function getSubscribedEvents(): array
164164
*
165165
* @param ?string $logChannel
166166
*/
167-
protected function logException(\Throwable $exception, string $message, ?string $logLevel = null, /* ?string $logChannel = null */): void
167+
protected function logException(\Throwable $exception, string $message, ?string $logLevel = null/* , ?string $logChannel = null */): void
168168
{
169-
$logChannel = (3 < \func_num_args() ? \func_get_arg(3) : null) ?? $this->resolveLogChannel($exception);
169+
$logChannel = (3 < \func_num_args() ? func_get_arg(3) : null) ?? $this->resolveLogChannel($exception);
170170

171171
$logLevel ??= $this->resolveLogLevel($exception);
172172

173-
if(!$logger = $this->getLogger($logChannel)) {
173+
if (!$logger = $this->getLogger($logChannel)) {
174174
return;
175175
}
176176

Tests/EventListener/RouterListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public static function provideRouteMapping(): iterable
354354
'_route_mapping' => [
355355
'id' => [
356356
'article',
357-
'id'
357+
'id',
358358
],
359359
'date' => [
360360
'article',

Tests/HttpCache/HttpCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public function testHitBackendOnlyOnceWhenCacheWasLocked()
714714
$this->request('GET', '/'); // warm the cache
715715

716716
// Use a store that simulates a cache entry being locked upon first attempt
717-
$this->store = new class(sys_get_temp_dir() . '/http_cache') extends Store {
717+
$this->store = new class(sys_get_temp_dir().'/http_cache') extends Store {
718718
private bool $hasLock = false;
719719

720720
public function lock(Request $request): bool

Tests/HttpCache/HttpCacheTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function request($method, $uri = '/', $server = [], $cookies = [], $esi =
115115

116116
$this->kernel->reset();
117117

118-
if (! $this->store) {
118+
if (!$this->store) {
119119
$this->store = $this->createStore();
120120
}
121121

@@ -188,6 +188,6 @@ public static function clearDirectory($directory)
188188

189189
protected function createStore(): Store
190190
{
191-
return new Store(sys_get_temp_dir() . '/http_cache');
191+
return new Store(sys_get_temp_dir().'/http_cache');
192192
}
193193
}

0 commit comments

Comments
 (0)