Skip to content

Commit 0ec2c99

Browse files
committed
Removed dead code and various cleaning
1 parent 0021010 commit 0ec2c99

File tree

32 files changed

+19
-70
lines changed

32 files changed

+19
-70
lines changed

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

Lines changed: 0 additions & 5 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
*/

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
@@ -712,8 +712,8 @@ public function renderException($e, $output)
712712
$trace = $e->getTrace();
713713
array_unshift($trace, array(
714714
'function' => '',
715-
'file' => $e->getFile() != null ? $e->getFile() : 'n/a',
716-
'line' => $e->getLine() != null ? $e->getLine() : 'n/a',
715+
'file' => $e->getFile() !== null ? $e->getFile() : 'n/a',
716+
'line' => $e->getLine() !== null ? $e->getLine() : 'n/a',
717717
'args' => array(),
718718
));
719719

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/CssSelector/Parser/TokenStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,4 @@ public function skipWhitespace()
179179
$this->getNext();
180180
}
181181
}
182-
}
182+
}

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/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\Form\DataTransformerInterface;
1515
use Symfony\Component\Form\Exception\TransformationFailedException;
16-
use Symfony\Component\Form\Deprecated\NumberToLocalizedStringTransformer as Deprecated;
1716

1817
/**
1918
* Transforms between a number type and a localized number with grouping

0 commit comments

Comments
 (0)