Skip to content

Commit 0566332

Browse files
committed
Remove comments
1 parent 722ccdd commit 0566332

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/TwigComponent/src/Command/TwigComponentDebugCommand.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,13 @@ private function displayComponentDetails(SymfonyStyle $io, string $name): void
188188
}
189189

190190
$table->addRows([
191-
['Type', '<info>Live</info>'],
191+
['Type', $metadata->get('live') ? '<info>Live</info>' : ''],
192192
new TableSeparator(),
193193
// ['Attributes Var', $metadata->get('attributes_var')],
194194
['Public Props', $metadata->get('expose_public_props') ? 'Yes' : 'No'],
195195
['Properties', implode("\n", $this->getComponentProperties($metadata))],
196196
]);
197197

198-
// $properties = $this->getComponentProperties($metadata);
199-
// if (\count($properties)) {
200-
// $table->addRow(['Propertires', implode("\n", $properties)]);
201-
// }
202-
203198
$logMethod = function (\ReflectionMethod $m) {
204199
$params = array_map(
205200
fn (\ReflectionParameter $p) => '$'.$p->getName(),
@@ -208,7 +203,6 @@ private function displayComponentDetails(SymfonyStyle $io, string $name): void
208203

209204
return sprintf('%s(%s)', $m->getName(), implode(', ', $params));
210205
};
211-
212206
$hooks = [];
213207
if ($method = AsTwigComponent::mountMethod($metadata->getClass())) {
214208
$hooks[] = ['Mount', $logMethod($method)];

0 commit comments

Comments
 (0)