@@ -101,21 +101,21 @@ protected function compileComponentTag(ComponentNode $node, ComponentSource $sou
101101 [$ attributesArrayString , $ boundKeysArrayString ] = $ this ->getAttributesAndBoundKeysArrayStrings ($ node ->attributeString );
102102
103103 $ output = '< ' . '?php $__blaze->ensureCompiled( \'' . $ source ->path . '\', $__blaze->compiledPath. \'/ ' . $ hash . '.php \'); ?> ' . "\n" ;
104- $ output .= '< ' . '?php require_once $__blaze->compiledPath. \'/ ' . $ hash . '.php \'; ?> ' ;
104+ $ output .= '< ' . '?php require_once $__blaze->compiledPath. \'/ ' . $ hash . '.php \'; ?> ' . "\n" ;
105105
106106 if ($ node ->selfClosing ) {
107- $ output .= "\n" . '< ' . '?php $__blaze->pushData( ' . $ attributesArrayString . '); ?> ' ;
108- $ output .= "\n" . '< ' . '?php ' . $ functionName . '($__blaze, ' . $ attributesArrayString . ', [], ' . $ boundKeysArrayString . ', isset($this) ? $this : null); ?> ' ;
107+ $ output .= '< ' . '?php $__blaze->pushData( ' . $ attributesArrayString . '); ?> ' . "\n" ;
108+ $ output .= '< ' . '?php ' . $ functionName . '($__blaze, ' . $ attributesArrayString . ', [], ' . $ boundKeysArrayString . ', isset($this) ? $this : null); ?> ' . "\n" ;
109109 } else {
110110 $ attributesVariableName = '$__attrs ' . $ hash ;
111- $ output .= "\n" . '< ' . '?php ' . $ attributesVariableName . ' = ' . $ attributesArrayString . '; ?> ' ;
112- $ output .= "\n" . '< ' . '?php $__blaze->pushData( ' . $ attributesVariableName . '); ?> ' ;
113- $ output .= "\n" . $ this ->slotCompiler ->compile ($ slotsVariableName , $ node ->children );
114- $ output .= "\n" . '< ' . '?php $__blaze->pushSlots( ' . $ slotsVariableName . '); ?> ' ;
115- $ output .= "\n" . '< ' . '?php ' . $ functionName . '($__blaze, ' . $ attributesVariableName . ', ' . $ slotsVariableName . ', ' . $ boundKeysArrayString . ', isset($this) ? $this : null); ?> ' ;
111+ $ output .= '< ' . '?php ' . $ attributesVariableName . ' = ' . $ attributesArrayString . '; ?> ' . "\n" ;
112+ $ output .= '< ' . '?php $__blaze->pushData( ' . $ attributesVariableName . '); ?> ' . "\n" ;
113+ $ output .= $ this ->slotCompiler ->compile ($ slotsVariableName , $ node ->children ) . "\n" ;
114+ $ output .= '< ' . '?php $__blaze->pushSlots( ' . $ slotsVariableName . '); ?> ' . "\n" ;
115+ $ output .= '< ' . '?php ' . $ functionName . '($__blaze, ' . $ attributesVariableName . ', ' . $ slotsVariableName . ', ' . $ boundKeysArrayString . ', isset($this) ? $this : null); ?> ' . "\n" ;
116116 }
117117
118- $ output .= "\n" . '< ' . '?php $__blaze->popData(); ?> ' ;
118+ $ output .= '< ' . '?php $__blaze->popData(); ?> ' ;
119119
120120 return $ output ;
121121 }
@@ -133,25 +133,25 @@ protected function compileDelegateComponentTag(ComponentNode $node): string
133133
134134 $ functionName = '( \'' . ($ this ->manager ->isFolding () ? '__ ' : '_ ' ) . '\' . $__resolved) ' ;
135135
136- $ output .= '< ' . '?php $__blaze->pushData($attributes->all()); ?> ' ;
136+ $ output .= '< ' . '?php $__blaze->pushData($attributes->all()); ?> ' . "\n" ;
137137
138- $ output .= "\n" . '< ' . '?php if ($__resolved !== false): ?> ' ;
139- $ output .= "\n" . '< ' . '?php require_once $__blaze->compiledPath . \'/ \' . $__resolved . \'.php \'; ?> ' ;
138+ $ output .= '< ' . '?php if ($__resolved !== false): ?> ' . "\n" ;
139+ $ output .= '< ' . '?php require_once $__blaze->compiledPath . \'/ \' . $__resolved . \'.php \'; ?> ' . "\n" ;
140140
141141 if ($ node ->selfClosing ) {
142- $ output .= "\n" . '< ' . '?php ' . $ functionName . '($__blaze, $attributes->all(), $__blaze->mergedComponentSlots(), [], isset($this) ? $this : null); ?> ' ;
142+ $ output .= '< ' . '?php ' . $ functionName . '($__blaze, $attributes->all(), $__blaze->mergedComponentSlots(), [], isset($this) ? $this : null); ?> ' . "\n" ;
143143 } else {
144144 $ output .= $ this ->slotCompiler ->compile ($ slotsVariableName , $ node ->children );
145- $ output .= "\n" . '< ' . '?php ' . $ slotsVariableName . ' = array_merge($__blaze->mergedComponentSlots(), ' . $ slotsVariableName . '); ?> ' ;
146- $ output .= "\n" . '< ' . '?php ' . $ functionName . '($__blaze, $attributes->all(), ' . $ slotsVariableName . ', [], isset($this) ? $this : null); ?> ' ;
145+ $ output .= '< ' . '?php ' . $ slotsVariableName . ' = array_merge($__blaze->mergedComponentSlots(), ' . $ slotsVariableName . '); ?> ' . "\n" ;
146+ $ output .= '< ' . '?php ' . $ functionName . '($__blaze, $attributes->all(), ' . $ slotsVariableName . ', [], isset($this) ? $this : null); ?> ' . "\n" ;
147147 }
148148
149- $ output .= "\n" . '< ' . '?php else: ?> ' ;
150- $ output .= "\n" . $ node ->render ();
151- $ output .= "\n" . '< ' . '?php endif; ?> ' ;
149+ $ output .= '< ' . '?php else: ?> ' . "\n" ;
150+ $ output .= $ node ->render () . "\n" ;
151+ $ output .= '< ' . '?php endif; ?> ' . "\n" ;
152152
153- $ output .= "\n" . '< ' . '?php $__blaze->popData(); ?> ' ;
154- $ output .= "\n" . '< ' . '?php unset($__resolved) ?> ' ;
153+ $ output .= '< ' . '?php $__blaze->popData(); ?> ' . "\n" ;
154+ $ output .= '< ' . '?php unset($__resolved) ?> ' ;
155155
156156 return $ output ;
157157 }
0 commit comments