Skip to content

Commit 71b4a1a

Browse files
committed
SCA: removed unused variables
1 parent 8034a7a commit 71b4a1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ private function createService(Definition $definition, array &$inlineServices, $
11221122
}
11231123
}
11241124
} else {
1125-
$r = new \ReflectionClass($class = $parameterBag->resolveValue($definition->getClass()));
1125+
$r = new \ReflectionClass($parameterBag->resolveValue($definition->getClass()));
11261126

11271127
$service = null === $r->getConstructor() ? $r->newInstance() : $r->newInstanceArgs($arguments);
11281128

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ private function checkDefinition($id, array $definition, $file)
782782
{
783783
if ($this->isLoadingInstanceof) {
784784
$keywords = self::$instanceofKeywords;
785-
} elseif ($throw = (isset($definition['resource']) || isset($definition['namespace']))) {
785+
} elseif (isset($definition['resource']) || isset($definition['namespace'])) {
786786
$keywords = self::$prototypeKeywords;
787787
} else {
788788
$keywords = self::$serviceKeywords;

0 commit comments

Comments
 (0)