We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb51ed0 commit 40af42cCopy full SHA for 40af42c
src/Symfony/Component/Form/FormView.php
@@ -65,23 +65,17 @@ public function __construct(FormView $parent = null)
65
*/
66
public function isRendered()
67
{
68
- $hasChildren = 0 < count($this->children);
69
-
70
- if (true === $this->rendered || !$hasChildren) {
+ if (true === $this->rendered || 0 === count($this->children)) {
71
return $this->rendered;
72
}
73
74
- if ($hasChildren) {
75
- foreach ($this->children as $child) {
76
- if (!$child->isRendered()) {
77
- return false;
78
- }
+ foreach ($this->children as $child) {
+ if (!$child->isRendered()) {
+ return false;
79
80
81
- return $this->rendered = true;
82
83
84
+ return $this->rendered = true;
85
86
87
/**
0 commit comments