Skip to content

Commit 5cab1e1

Browse files
committed
minor #59550 chore: PHP CS Fixer fixes (keradus)
This PR was merged into the 7.3 branch. Discussion ---------- chore: PHP CS Fixer fixes | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix CS | License | MIT Commits ------- 4f6682f chore: PHP CS Fixer fixes
2 parents 7b0cdc8 + 4f6682f commit 5cab1e1

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

src/Symfony/Bridge/Doctrine/Tests/Security/RememberMe/DoctrineTokenProviderPostgresTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Bridge\Doctrine\Tests\Security\RememberMe;
413

514
use Doctrine\DBAL\Configuration;

src/Symfony/Component/DependencyInjection/Tests/Argument/LazyClosureTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ public function foo();
6161
interface NonFunctionalInterface
6262
{
6363
public function foo();
64+
6465
public function bar();
6566
}

src/Symfony/Component/Notifier/Test/IncompleteDsnTestTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Notifier\Test;
413

514
use PHPUnit\Framework\Attributes\DataProvider;

src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -867,20 +867,20 @@ protected function style(string $style, string $value, array $attr = []): string
867867
}
868868
$label = esc(substr($value, -$attr['ellipsis']));
869869
$dumpTitle = $v."\n".$dumpTitle;
870-
$v = sprintf('<span class="%s">%s</span>', $ellipsisClass, substr($v, 0, -\strlen($label)));
870+
$v = \sprintf('<span class="%s">%s</span>', $ellipsisClass, substr($v, 0, -\strlen($label)));
871871

872872
if (!empty($attr['ellipsis-tail'])) {
873873
$tail = \strlen(esc(substr($value, -$attr['ellipsis'], $attr['ellipsis-tail'])));
874-
$v .= sprintf('<span class="%s">%s</span><span class="sf-dump-ellipsis-tail">%s</span>', $ellipsisClass, substr($label, 0, $tail), substr($label, $tail));
874+
$v .= \sprintf('<span class="%s">%s</span><span class="sf-dump-ellipsis-tail">%s</span>', $ellipsisClass, substr($label, 0, $tail), substr($label, $tail));
875875
} else {
876-
$v .= sprintf('<span class="sf-dump-ellipsis-tail">%s</span>', $label);
876+
$v .= \sprintf('<span class="sf-dump-ellipsis-tail">%s</span>', $label);
877877
}
878878
}
879879

880880
$map = static::$controlCharsMap;
881-
$v = sprintf(
881+
$v = \sprintf(
882882
'<span class=%s%s%1$s%s>%s</span>',
883-
1 === count($dumpClasses) ? '' : '"',
883+
1 === \count($dumpClasses) ? '' : '"',
884884
implode(' ', $dumpClasses),
885885
$dumpTitle ? ' title="'.$dumpTitle.'"' : '',
886886
preg_replace_callback(static::$controlCharsRx, function ($c) use ($map) {

src/Symfony/Component/Yaml/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,8 @@ private function lexInlineStructure(int &$cursor, string $closingTag, bool $cons
12131213
$value .= $this->currentLine[$cursor];
12141214
++$cursor;
12151215

1216-
if ($consumeUntilEol && isset($this->currentLine[$cursor]) && ($whitespaces = strspn($this->currentLine, ' ', $cursor) + $cursor) < strlen($this->currentLine) && '#' !== $this->currentLine[$whitespaces]) {
1217-
throw new ParseException(sprintf('Unexpected token "%s".', trim(substr($this->currentLine, $cursor))));
1216+
if ($consumeUntilEol && isset($this->currentLine[$cursor]) && ($whitespaces = strspn($this->currentLine, ' ', $cursor) + $cursor) < \strlen($this->currentLine) && '#' !== $this->currentLine[$whitespaces]) {
1217+
throw new ParseException(\sprintf('Unexpected token "%s".', trim(substr($this->currentLine, $cursor))));
12181218
}
12191219

12201220
return $value;

0 commit comments

Comments
 (0)