@@ -558,7 +558,7 @@ private function addService($id, $definition)
558
558
559
559
$ doc = '' ;
560
560
if (ContainerInterface::SCOPE_PROTOTYPE !== $ scope ) {
561
- $ doc .= <<<EOF
561
+ $ doc .= <<<' EOF'
562
562
563
563
*
564
564
* This service is shared.
@@ -567,7 +567,7 @@ private function addService($id, $definition)
567
567
}
568
568
569
569
if (!$ definition ->isPublic ()) {
570
- $ doc .= <<<EOF
570
+ $ doc .= <<<' EOF'
571
571
572
572
*
573
573
* This service is private.
@@ -804,7 +804,7 @@ public function __construct()
804
804
$ code .= $ this ->addMethodMap ();
805
805
$ code .= $ this ->addAliases ();
806
806
807
- $ code .= <<<EOF
807
+ $ code .= <<<' EOF'
808
808
}
809
809
810
810
EOF;
@@ -834,11 +834,11 @@ public function __construct()
834
834
$ code .= "\n \$this->parameters = \$this->getDefaultParameters(); \n" ;
835
835
}
836
836
837
- $ code .= <<<EOF
837
+ $ code .= <<<' EOF'
838
838
839
- \ $this->services =
840
- \ $this->scopedServices =
841
- \ $this->scopeStacks = array();
839
+ $this->services =
840
+ $this->scopedServices =
841
+ $this->scopeStacks = array();
842
842
EOF;
843
843
844
844
$ code .= "\n" ;
@@ -853,7 +853,7 @@ public function __construct()
853
853
$ code .= $ this ->addMethodMap ();
854
854
$ code .= $ this ->addAliases ();
855
855
856
- $ code .= <<<EOF
856
+ $ code .= <<<' EOF'
857
857
}
858
858
859
859
EOF;
@@ -924,36 +924,36 @@ private function addDefaultParametersMethod()
924
924
925
925
$ code = '' ;
926
926
if ($ this ->container ->isFrozen ()) {
927
- $ code .= <<<EOF
927
+ $ code .= <<<' EOF'
928
928
929
929
/**
930
930
* {@inheritdoc}
931
931
*/
932
- public function getParameter( \ $name)
932
+ public function getParameter($name)
933
933
{
934
- \ $name = strtolower( \ $name);
934
+ $name = strtolower($name);
935
935
936
- if (!(isset( \ $this->parameters[ \ $name]) || array_key_exists( \ $name, \ $this->parameters))) {
937
- throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', \ $name));
936
+ if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
937
+ throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
938
938
}
939
939
940
- return \ $this->parameters[ \ $name];
940
+ return $this->parameters[$name];
941
941
}
942
942
943
943
/**
944
944
* {@inheritdoc}
945
945
*/
946
- public function hasParameter( \ $name)
946
+ public function hasParameter($name)
947
947
{
948
- \ $name = strtolower( \ $name);
948
+ $name = strtolower($name);
949
949
950
- return isset( \ $this->parameters[ \ $name]) || array_key_exists( \ $name, \ $this->parameters);
950
+ return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters);
951
951
}
952
952
953
953
/**
954
954
* {@inheritdoc}
955
955
*/
956
- public function setParameter( \ $name, \ $value)
956
+ public function setParameter($name, $value)
957
957
{
958
958
throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
959
959
}
@@ -963,11 +963,11 @@ public function setParameter(\$name, \$value)
963
963
*/
964
964
public function getParameterBag()
965
965
{
966
- if (null === \ $this->parameterBag) {
967
- \ $this->parameterBag = new FrozenParameterBag( \ $this->parameters);
966
+ if (null === $this->parameterBag) {
967
+ $this->parameterBag = new FrozenParameterBag($this->parameters);
968
968
}
969
969
970
- return \ $this->parameterBag;
970
+ return $this->parameterBag;
971
971
}
972
972
EOF;
973
973
}
@@ -1029,7 +1029,7 @@ private function exportParameters($parameters, $path = '', $indent = 12)
1029
1029
*/
1030
1030
private function endClass ()
1031
1031
{
1032
- return <<<EOF
1032
+ return <<<' EOF'
1033
1033
}
1034
1034
1035
1035
EOF;
0 commit comments