Skip to content

Commit 6c445f4

Browse files
committed
fixed typo
1 parent 5b3f7a2 commit 6c445f4

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

Compiler/CheckCircularReferencesPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ private function checkOutEdges(array $edges)
6060
$id = $node->getId();
6161

6262
if (empty($this->checkedNodes[$id])) {
63-
6463
// don't check circular dependencies for lazy services
6564
if (!$node->getValue() || !$node->getValue()->isLazy()) {
6665
$searchKey = array_search($id, $this->currentPath);

Container.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function set($id, $service, $scope = self::SCOPE_CONTAINER)
219219
*/
220220
public function has($id)
221221
{
222-
for ($i = 2;;) {
222+
for ($i = 2; ;) {
223223
if ('service_container' === $id
224224
|| isset($this->aliases[$id])
225225
|| isset($this->services[$id])
@@ -258,7 +258,7 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
258258
// available services. Service IDs are case insensitive, however since
259259
// this method can be called thousands of times during a request, avoid
260260
// calling strtolower() unless necessary.
261-
for ($i = 2;;) {
261+
for ($i = 2; ;) {
262262
if ('service_container' === $id) {
263263
return $this;
264264
}

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function setDecoratedService($id, $renamedId = null)
158158
}
159159

160160
/**
161-
* Gets the service that decorates this service.
161+
* Gets the service that this service is decorating.
162162
*
163163
* @return null|array An array composed of the decorated service id and the new id for it, null if no service is decorated
164164
*/

Tests/Fixtures/containers/container14.php

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

55
use Symfony\Component\DependencyInjection\ContainerBuilder;
66

7-
/**
7+
/*
88
* This file is included in Tests\Dumper\GraphvizDumperTest::testDumpWithFrozenCustomClassContainer
99
* and Tests\Dumper\XmlDumperTest::testCompiledContainerCanBeDumped.
1010
*/

Tests/Fixtures/php/services1-1.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Symfony\Component\DependencyInjection\Dump;
34

45
use Symfony\Component\DependencyInjection\ContainerInterface;

Tests/Fixtures/php/services8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function getDefaultParameters()
4242
'values' => array(
4343
0 => true,
4444
1 => false,
45-
2 => NULL,
45+
2 => null,
4646
3 => 0,
4747
4 => 1000.3,
4848
5 => 'true',

Tests/Fixtures/php/services9.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ protected function getMethodCall1Service()
248248
if ($this->has('foobaz')) {
249249
$instance->setBar($this->get('foobaz', ContainerInterface::NULL_ON_INVALID_REFERENCE));
250250
}
251-
$instance->setBar(($this->get("foo")->foo() . (($this->hasParameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
251+
$instance->setBar(($this->get('foo')->foo().(($this->hasParameter('foo')) ? ($this->getParameter('foo')) : ('default'))));
252252

253253
return $instance;
254254
}

Tests/Fixtures/php/services9_compiled.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ protected function getMethodCall1Service()
253253
$this->services['method_call1'] = $instance = new \Bar\FooClass();
254254

255255
$instance->setBar($this->get('foo'));
256-
$instance->setBar(NULL);
257-
$instance->setBar(($this->get("foo")->foo() . (($this->hasParameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
256+
$instance->setBar(null);
257+
$instance->setBar(($this->get('foo')->foo().(($this->hasParameter('foo')) ? ($this->getParameter('foo')) : ('default'))));
258258

259259
return $instance;
260260
}

0 commit comments

Comments
 (0)