8000 cs · symfony/symfony@5ec7d70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ec7d70

Browse files
committed
cs
1 parent 15cd193 commit 5ec7d70

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

src/Symfony/Component/Config/Builder/ConfigGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function NAME(): string
4848
{
4949
return \'ALIAS\';
5050
}
51-
', ['ALIAS'=> $rootNode->getPath()]);
51+
', ['ALIAS' => $rootNode->getPath()]);
5252

5353
$this->writeClasses($outputDir);
5454
$loader = \Closure::fromCallable(function () use ($outputDir, $rootClass) {

src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php

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

3-
43
namespace Symfony\Component\Config\Tests\Builder;
54

6-
75
use PHPUnit\Framework\TestCase;
86
use Symfony\Component\Config\Builder\ConfigGenerator;
97

src/Symfony/Component/DependencyInjection/Loader/Configurator/ContainerConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ final public function extensionBuilder(string $namespace)
7070
}
7171

7272
if (class_exists($namespace) && method_exists($namespace, 'getExtensionAlias')) {
73-
$namespace = call_user_func([$namespace, 'getExtensionAlias']);
73+
$namespace = \call_user_func([$namespace, 'getExtensionAlias']);
7474
} elseif ('Symfony\\Config\\' === substr($namespace, 0, 15)) {
7575
$namespace = Container::underscore(substr($namespace, 15, strpos($namespace, '\\', 15) - 15));
7676
}

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,17 @@ private function executeCallback(callable $callback, ContainerConfigurator $cont
101101
$arguments[] = $this->container;
102102
break;
103103
case FileLoader::class:
104-
case PhpFileLoader::class:
104+
case self::class:
105105
$arguments[] = $this;
106106
break;
107107
default:
108-
if (!substr($type, -6) === 'Config') {
108+
if ('Config' === !substr($type, -6)) {
109109
throw new \InvalidArgumentException(sprintf('Could not resolve argument "%s" for "%s".', $type.' '.$parameter->getName(), $path));
110110
}
111111
$configClass = $containerConfigurator->extensionBuilder($type);
112112
$configClasses[] = $configClass;
113113
$arguments[] = $configClass;
114114
}
115-
116115
}
117116

118117
$callback(...$arguments);

0 commit comments

Comments
 (0)
0