File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -106,19 +106,11 @@ function renderStTag(): string
106106 'With requires a parameter for what to include ' ,
107107 );
108108 }
109+ $ out .= "\$scope = \$scope->withModel( {$ this ->o } = {$ hsv ->toPHP ()}); \n" ;
109110 if ($ scopeName ) {
110- $ out .=
111- '$scope = $scope->withModel( ' .
112- $ hsv ->toPHP () .
113- "); \$scope->setNamedModel( \"$ scopeName \") \n; " ;
114- } else {
115- $ out .=
116- "if(( {$ this ->o } = " .
117- $ hsv ->toPHP () .
118- ') && ' .
119- "{$ this ->o }->valid()) { \n" ;
120- $ out .= "\$scope = \$scope->withModel( {$ this ->o }); \n; " ;
111+ $ out .= "\$scope->setNamedModel( \"$ scopeName \"); \n" ;
121112 }
113+ $ out .= "if( {$ this ->o }->valid()) { \n" ;
122114 break ;
123115 case 'include ' :
124116 if (!$ hsv ) {
@@ -155,10 +147,8 @@ function renderEnTag(): string
155147 $ out .= '} ' ;
156148 break ;
157149 case 'with ' :
158- if (!preg_match ('/ as ([a-zA-Z]+)$/ ' , $ this ->var , $ m )) {
159- $ out .= '$scope = $scope->lastScope(); ' ;
160- $ out .= '} ' ;
161- }
150+ $ out .= "} \n" ;
151+ $ out .= "\$scope = \$scope->lastScope(); \n" ;
162152 break ;
163153 case 'include ' :
164154 return '' ;
You can’t perform that action at this time.
0 commit comments