Skip to content

Commit 8d6fea8

Browse files
committed
fix code style
1 parent 18ccecf commit 8d6fea8

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
lines changed

Dumper/PhpDumper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use Symfony\Component\DependencyInjection\Argument\ServiceLocatorArgument;
2222
use Symfony\Component\DependencyInjection\Compiler\AnalyzeServiceReferencesPass;
2323
use Symfony\Component\DependencyInjection\Compiler\CheckCircularReferencesPass;
24-
use Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge;
2524
use Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphNode;
2625
use Symfony\Component\DependencyInjection\Container;
2726
use Symfony\Component\DependencyInjection\ContainerBuilder;

Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ private function getArgumentsAsPhp(\DOMElement $node, string $name, string $file
478478
break;
479479
case 'expression':
480480
if (!class_exists(Expression::class)) {
481-
throw new \LogicException(sprintf('The type="expression" attribute cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".'));
481+
throw new \LogicException('The type="expression" attribute cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".');
482482
}
483483

484484
$arguments[$key] = new Expression($arg->nodeValue);

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ private function resolveServices($value, string $file, bool $isParameter = false
868868
}
869869
} elseif (\is_string($value) && 0 === strpos($value, '@=')) {
870870
if (!class_exists(Expression::class)) {
871-
throw new \LogicException(sprintf('The "@=" expression syntax cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".'));
871+
throw new \LogicException('The "@=" expression syntax cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".');
872872
}
873873

874874
return new Expression(substr($value, 2));

Tests/Fixtures/CheckTypeDeclarationsPass/Foo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static function createBarArguments(\stdClass $stdClass, \stdClass $stdCla
1616

1717
public static function createCallable(): callable
1818
{
19-
return function() {};
19+
return function () {};
2020
}
2121

2222
public static function createArray(): array

Tests/Fixtures/FactoryDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class FactoryDummy extends FactoryParent
1515
{
16-
public static function createFactory(): FactoryDummy
16+
public static function createFactory(): self
1717
{
1818
}
1919

Tests/Fixtures/includes/MultipleArgumentsOptionalScalarNotReallyOptional.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ public function __construct(A $a, $foo = 'default_val', Lille $lille)
1111
{
1212
}
1313
}
14-

0 commit comments

Comments
 (0)