Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80fd736

Browse filesBrowse files
lyrixxnicolas-grekas
authored andcommitted
[DebugBundle] Enhance some comments
1 parent 2e167ba commit 80fd736
Copy full SHA for 80fd736

File tree

Expand file treeCollapse file tree

3 files changed

+9
-19
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+9
-19
lines changed

‎src/Symfony/Bridge/Twig/Node/DumpNode.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Node/DumpNode.php
+8-16Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public function compile(\Twig_Compiler $compiler)
3131
{
3232
$compiler
3333
->write("if (\$this->env->isDebug()) {\n")
34-
->indent()
35-
;
34+
->indent();
3635

3736
$values = $this->getNode('values');
3837

@@ -50,43 +49,36 @@ public function compile(\Twig_Compiler $compiler)
5049
->outdent()
5150
->write("}\n")
5251
->addDebugInfo($this)
53-
->write(sprintf('\Symfony\Component\VarDumper\VarDumper::dump($%svars);'."\n", $this->varPrefix))
54-
;
52+
->write(sprintf('\Symfony\Component\VarDumper\VarDumper::dump($%svars);'."\n", $this->varPrefix));
5553
} elseif (1 === $values->count()) {
5654
$compiler
5755
->addDebugInfo($this)
5856
->write('\Symfony\Component\VarDumper\VarDumper::dump(')
5957
->subcompile($values->getNode(0))
60-
->raw(");\n")
61-
;
58+
->raw(");\n");
6259
} else {
6360
$compiler
6461
->addDebugInfo($this)
6562
->write('\Symfony\Component\VarDumper\VarDumper::dump(array('."\n")
66-
->indent()
67-
;
63+
->indent();
6864
foreach ($values as $node) {
6965
$compiler->addIndentation();
7066
if ($node->hasAttribute('name')) {
7167
$compiler
7268
->string($node->getAttribute('name'))
73-
->raw(' => ')
74-
;
69+
->raw(' => ');
7570
}
7671
$compiler
7772
->subcompile($node)
78-
->raw(",\n")
79-
;
73+
->raw(",\n");
8074
}
8175
$compiler
8276
->outdent()
83-
->write("));\n")
84-
;
77+
->write("));\n");
8578
}
8679

8780
$compiler
8881
->outdent()
89-
->raw("}\n")
90-
;
82+
->raw("}\n");
9183
}
9284
}

‎src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __clone()
5353
public function dump(Data $data)
5454
{
5555
if ($this->stopwatch) {
56-
$this->stopwatch->start('dump');
56+
$this->stopwatch->start('dump');
5757
}
5858
if ($this->isCollected) {
5959
$this->isCollected = false;
@@ -160,7 +160,6 @@ public function getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
160160
$dumper = new JsonDumper();
161161
} else {
162162
throw new \InvalidArgumentException(sprintf('Invalid dump format: %s', $format));
163-
164163
}
165164
$dumps = array();
166165

‎src/Symfony/Component/HttpKernel/Tests/EventListener/DumpListenerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/EventListener/DumpListenerTest.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\DependencyInjection\ContainerBuilder;
1515
use Symfony\Component\DependencyInjection\Definition;
16-
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
1716
use Symfony\Component\HttpKernel\EventListener\DumpListener;
1817
use Symfony\Component\HttpKernel\KernelEvents;
1918
use Symfony\Component\VarDumper\VarDumper;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.