Skip to content

Commit 9824448

Browse files
committed
Removed dead code and various cleaning
1 parent 77cb48e commit 9824448

File tree

24 files changed

+17
-63
lines changed

24 files changed

+17
-63
lines changed

src/Symfony/Bridge/Twig/NodeVisitor/Scope.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ class Scope
2121
*/
2222
private $parent;
2323

24-
/**
25-
* @var Scope[]
26-
*/
27-
private $children;
28-
2924
/**
3025
* @var array
3126
*/
@@ -52,7 +47,6 @@ public function __construct(Scope $parent = null)
5247
public function enter()
5348
{
5449
$child = new self($this);
55-
$this->children[] = $child;
5650

5751
return $child;
5852
}

src/Symfony/Component/Config/Definition/Dumper/XmlReferenceDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private function writeNode(NodeInterface $node, $depth = 0, $root = false, $name
5959
});
6060

6161
if (count($remapping)) {
62-
list($singular, $plural) = current($remapping);
62+
list($singular) = current($remapping);
6363
$rootName = $singular;
6464
}
6565
}

src/Symfony/Component/Config/Definition/Dumper/YamlReferenceDumper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Config\Definition\ConfigurationInterface;
1515
use Symfony\Component\Config\Definition\NodeInterface;
1616
use Symfony\Component\Config\Definition\ArrayNode;
17-
use Symfony\Component\Config\Definition\ScalarNode;
1817
use Symfony\Component\Config\Definition\EnumNode;
1918
use Symfony\Component\Config\Definition\PrototypedArrayNode;
2019
use Symfony\Component\Yaml\Inline;

src/Symfony/Component/Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ public function renderException($e, $output)
708708
$trace = $e->getTrace();
709709
array_unshift($trace, array(
710710
'function' => '',
711-
'file' => $e->getFile() != null ? $e->getFile() : 'n/a',
712-
'line' => $e->getLine() != null ? $e->getLine() : 'n/a',
711+
'file' => $e->getFile() !== null ? $e->getFile() : 'n/a',
712+
'line' => $e->getLine() !== null ? $e->getLine() : 'n/a',
713713
'args' => array(),
714714
));
715715

src/Symfony/Component/Console/Descriptor/MarkdownDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function describeCommand(Command $command, array $options = array())
105105
$this->write($help);
106106
}
107107

108-
if ($definition = $command->getNativeDefinition()) {
108+
if ($command->getNativeDefinition()) {
109109
$this->write("\n\n");
110110
$this->describeInputDefinition($command->getNativeDefinition());
111111
}

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct($debug = true, $fileLinkFormat = null)
5050
*/
5151
public static function register($debug = true, $fileLinkFormat = null)
5252
{
53-
$handler = new static($debug, $fileLinkFormat = null);
53+
$handler = new static($debug, $fileLinkFormat);
5454

5555
$prev = set_exception_handler(array($handler, 'handle'));
5656
if (is_array($prev) && $prev[0] instanceof ErrorHandler) {

src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
*/
2727
class CheckCircularReferencesPass implements CompilerPassInterface
2828
{
29-
private $currentId;
3029
private $currentPath;
3130
private $checkedNodes;
3231

@@ -41,7 +40,6 @@ public function process(ContainerBuilder $container)
4140

4241
$this->checkedNodes = array();
4342
foreach ($graph->getNodes() as $id => $node) {
44-
$this->currentId = $id;
4543
$this->currentPath = array($id);
4644

4745
$this->checkOutEdges($node->getOutEdges());

src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class CheckReferenceValidityPass implements CompilerPassInterface
3333
{
3434
private $container;
3535
private $currentId;
36-
private $currentDefinition;
3736
private $currentScope;
3837
private $currentScopeAncestors;
3938
private $currentScopeChildren;

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public function duplicate(array $query = null, array $request = null, array $att
480480
}
481481

482482
if (!$dup->getRequestFormat(null)) {
483-
$dup->setRequestFormat($format = $this->getRequestFormat(null));
483+
$dup->setRequestFormat($this->getRequestFormat(null));
484484
}
485485

486486
return $dup;

src/Symfony/Component/HttpKernel/EventListener/DumpListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class DumpListener implements EventSubscriberInterface
2626
{
27-
private $container;
27+
private $cloner;
2828
private $dumper;
2929

3030
/**

0 commit comments

Comments
 (0)