8000 fixed CS · symfony/symfony@72863e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 72863e4

Browse files
committed
fixed CS
1 parent 6f3cffa commit 72863e4

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ protected function {$methodName}($lazyInitialization)
714714
$code .= $this->addServiceInclude($id, $definition);
715715

716716
if ($this->getProxyDumper()->isProxyCandidate($definition)) {
717-
$factoryCode = $asFile ? ($definition->isShared() ? "\$this->load('%s.php', false)" : "\$this->factories[%2\$s](false)") : '$this->%s(false)';
717+
$factoryCode = $asFile ? ($definition->isShared() ? "\$this->load('%s.php', false)" : '$this->factories[%2$s](false)') : '$this->%s(false)';
718718
$code .= $this->getProxyDumper()->getProxyFactoryCode($definition, $id, sprintf($factoryCode, $methodName, $this->doExport($id)));
719719
}
720720

@@ -1456,14 +1456,14 @@ private function getServiceConditionals($value): string
14561456
if (!$this->container->hasDefinition($service)) {
14571457
return 'false';
14581458
}
1459-
$conditions[] = sprintf("isset(\$this->%s[%s])", $this->container->getDefinition($service)->isPublic() ? 'services' : 'privates', $this->doExport($service));
1459+
$conditions[] = sprintf('isset($this->%s[%s])', $this->container->getDefinition($service)->isPublic() ? 'services' : 'privates', $this->doExport($service));
14601460
}
14611461
foreach (ContainerBuilder::getServiceConditionals($value) as $service) {
14621462
if ($this->container->hasDefinition($service) && !$this->container->getDefinition($service)->isPublic()) {
14631463
continue;
14641464
}
14651465

1466-
$conditions[] = sprintf("\$this->has(%s)", $this->doExport($service));
1466+
$conditions[] = sprintf('$this->has(%s)', $this->doExport($service));
14671467
}
14681468

14691469
if (!$conditions) {

src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,15 +1537,15 @@ public function testTraceLevelDefaultsToNoneIfNotDebug()
15371537
}
15381538

15391539
public function testTraceLevelShort()
1540-
{
1541-
$this->cacheConfig['trace_level'] = 'short';
1540+
{
1541+
$this->cacheConfig['trace_level'] = 'short';
15421542

1543-
$this->setNextResponse();
1544-
$this->request('GET', '/');
1543+
$this->setNextResponse();
1544+
$this->request('GET', '/');
15451545

1546-
$this->assertTrue($this->response->headers->has('X-Symfony-Cache'));
1547-
$this->assertEquals('miss', $this->response->headers->get('X-Symfony-Cache'));
1548-
}
1546+
$this->assertTrue($this->response->headers->has('X-Symfony-Cache'));
1547+
$this->assertEquals('miss', $this->response->headers->get('X-Symfony-Cache'));
1548+
}
15491549
}
15501550

15511551
class TestKernel implements HttpKernelInterface

src/Symfony/Component/Messenger/Tests/Transport/Sender/SendersLocatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ private function createContainer(array $senders)
9595
$container = $this->createMock(ContainerInterface::class);
9696
$container->expects($this->any())
9797
->method('has')
98-
->willReturnCallback(function($id) use ($senders) {
98+
->willReturnCallback(function ($id) use ($senders) {
9999
return isset($senders[$id]);
100100
});
101101
$container->expects($this->any())
102102
->method('get')
103-
->willReturnCallback(function($id) use ($senders) {
103+
->willReturnCallback(function ($id) use ($senders) {
104104
return $senders[$id];
105105
});
106106

src/Symfony/Component/Messenger/Transport/Doctrine/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public static function buildConfiguration($dsn, array $options = [])
103103
* @param int $delay The delay in milliseconds
104104
*
105105
* @return string The inserted id
106+
*
106107
* @throws \Doctrine\DBAL\DBALException
107108
*/
108109
public function send(string $body, array $headers, int $delay = 0): string

src/Symfony/Component/Messenger/Transport/Doctrine/DoctrineTransport.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public function find($id): ?Envelope
8484
return ($this->receiver ?? $this->getReceiver())->find($id);
8585
}
8686

87-
8887
/**
8988
* {@inheritdoc}
9089
*/

src/Symfony/Component/Messenger/Transport/Sender/SendersLocator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ class SendersLocator implements SendersLocatorInterface
3333
private $sendAndHandle;
3434

3535
/**
36-
* @param string[][] $sendersMap An array, keyed by "type", set to an array of sender aliases
36+
* @param string[][] $sendersMap An array, keyed by "type", set to an array of sender aliases
3737
* @param ContainerInterface $sendersLocator Locator of senders, keyed by sender alias
38-
* @param bool[] $sendAndHandle
38+
* @param bool[] $sendAndHandle
3939
*/
4040
public function __construct(array $sendersMap, /*ContainerInterface*/ $sendersLocator = null, array $sendAndHandle = [])
4141
{
4242
$this->sendersMap = $sendersMap;
4343

44-
if (is_array($sendersLocator) || null === $sendersLocator) {
44+
if (\is_array($sendersLocator) || null === $sendersLocator) {
4545
@trigger_error(sprintf('"%s::__construct()" requires a "%s" as 2nd argument. Not doing so is deprecated since Symfony 4.3 and will be required in 5.0.', __CLASS__, ContainerInterface::class), E_USER_DEPRECATED);
4646
// "%s" requires a "%s" as 2nd argument. Not doing so is deprecated since Symfony 4.3 and will be required in 5.0.'
4747
$this->sendersLocator = new ServiceLocator([]);

src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
* @author Fabien Potencier <fabien@symfony.com>
2020
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
2121
*
22-
* @method array __serialize() Returns all the necessary state of the object for serialization purposes - not implementing it is deprecated since Symfony 4.3
22+
* @method array __serialize() Returns all the necessary state of the object for serialization purposes - not implementing it is deprecated since Symfony 4.3
2323
* @method void __unserialize(array $data) Restores the object state from an array given by __serialize() - not implementing it is deprecated since Symfony 4.3
24-
* @method string[] getRoleNames() The associated roles - not implementing it is deprecated since Symfony 4.3
24+
* @method string[] getRoleNames() The associated roles - not implementing it is deprecated since Symfony 4.3
2525
*/
2626
interface TokenInterface extends \Serializable
2727
{

0 commit comments

Comments
 (0)
0