Skip to content

Commit 37fa45b

Browse files
committed
fixed CS
1 parent 0f958aa commit 37fa45b

File tree

50 files changed

+96
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+96
-96
lines changed

src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getLogs(/* Request $request = null */)
6767
@trigger_error(sprintf('The "%s()" method will have a new "Request $request = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
6868
}
6969

70-
if (1 <= \func_num_args() && null !== $request = \func_get_arg(0)) {
70+
if (1 <= \func_num_args() && null !== $request = func_get_arg(0)) {
7171
return $this->records[spl_object_hash($request)] ?? [];
7272
}
7373

@@ -89,7 +89,7 @@ public function countErrors(/* Request $request = null */)
8989
@trigger_error(sprintf('The "%s()" method will have a new "Request $request = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
9090
}
9191

92-
if (1 <= \func_num_args() && null !== $request = \func_get_arg(0)) {
92+
if (1 <= \func_num_args() && null !== $request = func_get_arg(0)) {
9393
return $this->errorCount[spl_object_hash($request)] ?? 0;
9494
}
9595

src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(array $mockedNamespaces = array())
5353
Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait'] = 2;
5454
}
5555

56-
$enableDebugClassLoader = \class_exists('Symfony\Component\Debug\DebugClassLoader');
56+
$enableDebugClassLoader = class_exists('Symfony\Component\Debug\DebugClassLoader');
5757

5858
foreach ($mockedNamespaces as $type => $namespaces) {
5959
if (!\is_array($namespaces)) {

src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getProxyCode(Definition $definition)
9999

100100
private static function getProxyManagerVersion(): string
101101
{
102-
if (!\class_exists(Version::class)) {
102+
if (!class_exists(Version::class)) {
103103
return '0.0.1';
104104
}
105105

src/Symfony/Bridge/Twig/Tests/Command/DebugCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function testWithGlobals()
295295
$tester = $this->createCommandTester([], [], null, null, false, ['message' => $message]);
296296
$tester->execute([], ['decorated' => true]);
297297
$display = $tester->getDisplay();
298-
$this->assertContains(\json_encode($message), $display);
298+
$this->assertContains(json_encode($message), $display);
299299
}
300300

301301
public function testWithGlobalsJson()
@@ -304,7 +304,7 @@ public function testWithGlobalsJson()
304304
$tester = $this->createCommandTester([], [], null, null, false, $globals);
305305
$tester->execute(['--format' => 'json'], ['decorated' => true]);
306306
$display = $tester->getDisplay();
307-
$display = \json_decode($display, true);
307+
$display = json_decode($display, true);
308308
$this->assertSame($globals, $display['globals']);
309309
}
310310

@@ -313,10 +313,10 @@ public function testWithFilter()
313313
$tester = $this->createCommandTester();
314314
$tester->execute(['--format' => 'json'], ['decorated' => false]);
315315
$display = $tester->getDisplay();
316-
$display1 = \json_decode($display, true);
316+
$display1 = json_decode($display, true);
317317
$tester->execute(['--filter' => 'date', '--format' => 'json'], ['decorated' => false]);
318318
$display = $tester->getDisplay();
319-
$display2 = \json_decode($display, true);
319+
$display2 = json_decode($display, true);
320320
$this->assertNotSame($display1, $display2);
321321
}
322322

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(Reader $annotationReader, string $phpArrayFile, $exc
4040
if ($excludeRegexp instanceof CacheItemPoolInterface) {
4141
@trigger_error(sprintf('The CacheItemPoolInterface $fallbackPool argument of "%s()" is deprecated since Symfony 4.2, you should not pass it anymore.', __METHOD__), E_USER_DEPRECATED);
4242
$excludeRegexp = $debug;
43-
$debug = 4 < \func_num_args() && \func_get_arg(4);
43+
$debug = 4 < \func_num_args() && func_get_arg(4);
4444
}
4545
parent::__construct($phpArrayFile);
4646
$this->annotationReader = $annotationReader;

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/SerializerCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SerializerCacheWarmer extends AbstractPhpFileCacheWarmer
3636
*/
3737
public function __construct(array $loaders, string $phpArrayFile)
3838
{
39-
if (2 < \func_num_args() && \func_get_arg(2) instanceof CacheItemPoolInterface) {
39+
if (2 < \func_num_args() && func_get_arg(2) instanceof CacheItemPoolInterface) {
4040
@trigger_error(sprintf('The CacheItemPoolInterface $fallbackPool argument of "%s()" is deprecated since Symfony 4.2, you should not pass it anymore.', __METHOD__), E_USER_DEPRECATED);
4141
}
4242
parent::__construct($phpArrayFile);

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer
3737
*/
3838
public function __construct(ValidatorBuilderInterface $validatorBuilder, string $phpArrayFile)
3939
{
40-
if (2 < \func_num_args() && \func_get_arg(2) instanceof CacheItemPoolInterface) {
40+
if (2 < \func_num_args() && func_get_arg(2) instanceof CacheItemPoolInterface) {
4141
@trigger_error(sprintf('The CacheItemPoolInterface $fallbackPool argument of "%s()" is deprecated since Symfony 4.2, you should not pass it anymore.', __METHOD__), E_USER_DEPRECATED);
4242
}
4343
parent::__construct($phpArrayFile);

src/Symfony/Component/Cache/Adapter/AbstractAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ function ($key, $value, $isHit) use ($defaultLifetime) {
5252
// Detect wrapped values that encode for their expiry and creation duration
5353
// For compactness, these values are packed in the key of an array using
5454
// magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F
55-
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = \key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
55+
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
5656
$item->value = $v[$k];
57-
$v = \unpack('Ve/Nc', \substr($k, 1, -1));
57+
$v = unpack('Ve/Nc', substr($k, 1, -1));
5858
$item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET;
5959
$item->metadata[CacheItem::METADATA_CTIME] = $v['c'];
6060
}

src/Symfony/Component/Cache/Adapter/ProxyAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ function ($key, $innerItem) use ($defaultLifetime, $poolHash) {
5858
// Detect wrapped values that encode for their expiry and creation duration
5959
// For compactness, these values are packed in the key of an array using
6060
// magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F
61-
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = \key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
61+
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
6262
$item->value = $v[$k];
63-
$v = \unpack('Ve/Nc', \substr($k, 1, -1));
63+
$v = unpack('Ve/Nc', substr($k, 1, -1));
6464
$item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET;
6565
$item->metadata[CacheItem::METADATA_CTIME] = $v['c'];
6666
} elseif ($innerItem instanceof CacheItem) {

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function tag($tags): ItemInterface
110110
if (!$this->isTaggable) {
111111
throw new LogicException(sprintf('Cache item "%s" comes from a non tag-aware pool: you cannot tag it.', $this->key));
112112
}
113-
if (!\is_iterable($tags)) {
113+
if (!is_iterable($tags)) {
114114
$tags = [$tags];
115115
}
116116
foreach ($tags as $tag) {

0 commit comments

Comments
 (0)