Skip to content

Commit 233110a

Browse files
keradusnicolas-grekas
authored andcommitted
DX: re-apply CS
1 parent fe482a4 commit 233110a

File tree

23 files changed

+20
-32
lines changed

23 files changed

+20
-32
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;
1313

1414
use Doctrine\DBAL\ArrayParameterType;
15-
use Doctrine\DBAL\Result;
1615
use Doctrine\DBAL\Types\GuidType;
1716
use Doctrine\DBAL\Types\Type;
1817
use Doctrine\ORM\AbstractQuery;

src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function testAllConfiguredFieldsAreCheckedOfBeingMappedByDoctrineWithIgno
292292
{
293293
$entity1 = new SingleIntIdEntity(1, null);
294294

295-
$this->expectException(\Symfony\Component\Validator\Exception\ConstraintDefinitionException::class);
295+
$this->expectException(ConstraintDefinitionException::class);
296296
$this->validator->validate($entity1, $constraint);
297297
}
298298

src/Symfony/Bridge/Monolog/Tests/Handler/MailerHandlerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Monolog\Formatter\HtmlFormatter;
1515
use Monolog\Formatter\LineFormatter;
1616
use Monolog\Level;
17-
use Monolog\Logger;
1817
use Monolog\LogRecord;
1918
use PHPUnit\Framework\MockObject\MockObject;
2019
use PHPUnit\Framework\TestCase;

src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/CodeExtensionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ public function testFormatArgsIntegration()
116116
$this->assertEquals($expected, $this->render($template, $data));
117117
}
118118

119-
120119
public function testFormatFileIntegration()
121120
{
122121
$template = <<<'TWIG'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MemcachedAdapter extends AbstractAdapter
2525
/**
2626
* We are replacing characters that are illegal in Memcached keys with reserved characters from
2727
* {@see \Symfony\Contracts\Cache\ItemInterface::RESERVED_CHARACTERS} that are legal in Memcached.
28-
* Note: don’t use {@see \Symfony\Component\Cache\Adapter\AbstractAdapter::NS_SEPARATOR}.
28+
* Note: don’t use {@see AbstractAdapter::NS_SEPARATOR}.
2929
*/
3030
private const RESERVED_MEMCACHED = " \n\r\t\v\f\0";
3131
private const RESERVED_PSR6 = '@()\{}/';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class PhpFilesAdapter extends AbstractAdapter implements PruneableInterface
3838
private static array $valuesCache = [];
3939

4040
/**
41-
* @param $appendOnly Set to `true` to gain extra performance when the items stored in this pool never expire.
42-
* Doing so is encouraged because it fits perfectly OPcache's memory model.
41+
* @param bool $appendOnly Set to `true` to gain extra performance when the items stored in this pool never expire.
42+
* Doing so is encouraged because it fits perfectly OPcache's memory model.
4343
*
4444
* @throws CacheException if OPcache is not enabled
4545
*/

src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class YamlFileLoader extends FileLoader
116116
private int $anonymousServicesCount;
117117
private string $anonymousServicesSuffix;
118118

119-
120119
public function load(mixed $resource, string $type = null): mixed
121120
{
122121
$path = $this->locator->locate($resource);
@@ -760,7 +759,7 @@ private function parseCallable(mixed $callable, string $parameter, string $id, s
760759
*/
761760
protected function loadFile(string $file): ?array
762761
{
763-
if (!class_exists(\Symfony\Component\Yaml\Parser::class)) {
762+
if (!class_exists(YamlParser::class)) {
764763
throw new RuntimeException('Unable to load YAML config files as the Symfony Yaml Component is not installed. Try running "composer require symfony/yaml".');
765764
}
766765

src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function getClassLoader(): callable
184184
public static function enable(): void
185185
{
186186
// Ensures we don't hit https://bugs.php.net/42098
187-
class_exists(\Symfony\Component\ErrorHandler\ErrorHandler::class);
187+
class_exists(ErrorHandler::class);
188188
class_exists(\Psr\Log\LogLevel::class);
189189

190190
if (!\is_array($functions = spl_autoload_functions())) {

src/Symfony/Component/Finder/Tests/Iterator/IteratorTestCase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ protected function assertOrderedIterator($expected, \Traversable $iterator)
3838
}
3939

4040
/**
41-
* Same as assertOrderedIterator, but checks the order of groups of
42-
* array elements.
41+
* Same as assertOrderedIterator, but checks the order of groups of
42+
* array elements.
4343
*
44-
* @param array $expected - an array of arrays. For any two subarrays
45-
* $a and $b such that $a goes before $b in $expected, the method
46-
* asserts that any element of $a goes before any element of $b
47-
* in the sequence generated by $iterator
44+
* @param array $expected an array of arrays. For any two subarrays
45+
* $a and $b such that $a goes before $b in $expected, the method
46+
* asserts that any element of $a goes before any element of $b
47+
* in the sequence generated by $iterator
4848
*/
4949
protected function assertOrderedIteratorForGroups(array $expected, \Traversable $iterator)
5050
{

src/Symfony/Component/HttpClient/Response/StreamWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class StreamWrapper
3030
private ResponseInterface $response;
3131

3232
/** @var resource|string|null */
33-
private $content = null;
33+
private $content;
3434

3535
/** @var resource|callable|null */
3636
private $handle;

0 commit comments

Comments
 (0)