Skip to content

Commit

Permalink
Latte TemplatePrintNode: removed phpDoc code
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 28, 2022
1 parent 6a47180 commit 84cca12
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Bridges/ApplicationLatte/Nodes/TemplatePrintNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,10 @@ public static function printClass(Latte\Runtime\Template $template, ?string $par
$class->addTrait(Nette\SmartObject::class);
}

$blueprint->addProperties($class, $params, true);
$blueprint->addProperties($class, $params);
$blueprint->addFunctions($class, $funcs);

$end = $blueprint->printCanvas();
$blueprint->printHeader('Native types');
$blueprint->printCode((string) $namespace);

$blueprint->addProperties($class, $params, false);

$blueprint->printHeader('phpDoc types');
$blueprint->printCode((string) $namespace);
echo $end;
}
Expand Down

0 comments on commit 84cca12

Please sign in to comment.