@@ -34,7 +34,7 @@ public static function install(Latte\Compiler $compiler)
3434 $ me = new static ($ compiler );
3535 $ me ->addMacro ('form ' , [$ me , 'macroForm ' ], 'echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd(array_pop($this->global->formsStack)); ' );
3636 $ me ->addMacro ('formContainer ' , [$ me , 'macroFormContainer ' ], 'array_pop($this->global->formsStack); $formContainer = $_form = end($this->global->formsStack) ' );
37- $ me ->addMacro ('label ' , [$ me , 'macroLabel ' ], [$ me , 'macroLabelEnd ' ], NULL , self ::AUTO_EMPTY );
37+ $ me ->addMacro ('label ' , [$ me , 'macroLabel ' ], [$ me , 'macroLabelEnd ' ], null , self ::AUTO_EMPTY );
3838 $ me ->addMacro ('input ' , [$ me , 'macroInput ' ]);
3939 $ me ->addMacro ('name ' , [$ me , 'macroName ' ], [$ me , 'macroNameEnd ' ], [$ me , 'macroNameAttr ' ]);
4040 $ me ->addMacro ('inputError ' , [$ me , 'macroInputError ' ]);
@@ -56,10 +56,10 @@ public function macroForm(MacroNode $node, PhpWriter $writer)
5656 throw new CompileException ('Did you mean <form n:name=...> ? ' );
5757 }
5858 $ name = $ node ->tokenizer ->fetchWord ();
59- if ($ name === FALSE ) {
59+ if ($ name === false ) {
6060 throw new CompileException ('Missing form name in ' . $ node ->getNotation ());
6161 }
62- $ node ->replaced = TRUE ;
62+ $ node ->replaced = true ;
6363 $ node ->tokenizer ->reset ();
6464 return $ writer ->write (
6565 "/* line $ node ->startLine */ \n"
@@ -79,7 +79,7 @@ public function macroFormContainer(MacroNode $node, PhpWriter $writer)
7979 throw new CompileException ('Modifiers are not allowed in ' . $ node ->getNotation ());
8080 }
8181 $ name = $ node ->tokenizer ->fetchWord ();
82- if ($ name === FALSE ) {
82+ if ($ name === false ) {
8383 throw new CompileException ('Missing name in ' . $ node ->getNotation ());
8484 }
8585 $ node ->tokenizer ->reset ();
@@ -120,7 +120,7 @@ public function macroLabel(MacroNode $node, PhpWriter $writer)
120120 */
121121 public function macroLabelEnd (MacroNode $ node , PhpWriter $ writer )
122122 {
123- if ($ node ->content != NULL ) {
123+ if ($ node ->content != null ) {
124124 $ node ->openingCode = rtrim ($ node ->openingCode , '?> ' ) . '->startTag() ?> ' ;
125125 return $ writer ->write ('if ($_label) echo $_label->endTag() ' );
126126 }
@@ -173,8 +173,8 @@ public function macroNameAttr(MacroNode $node, PhpWriter $writer)
173173 $ name
174174 );
175175 return $ writer ->write (
176- 'echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), %0.var, FALSE ) ' ,
177- array_fill_keys (array_keys ($ node ->htmlNode ->attrs ), NULL )
176+ 'echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), %0.var, false ) ' ,
177+ array_fill_keys (array_keys ($ node ->htmlNode ->attrs ), null )
178178 );
179179 } else {
180180 $ method = $ tagName === 'label ' ? 'getLabel ' : 'getControl ' ;
@@ -184,7 +184,7 @@ public function macroNameAttr(MacroNode $node, PhpWriter $writer)
184184 . ($ node ->htmlNode ->attrs ? '->addAttributes(%2.var) ' : '' ) . '->attributes() ' ,
185185 $ name ,
186186 $ method . 'Part( ' . implode (', ' , array_map ([$ writer , 'formatWord ' ], $ words )) . ') ' ,
187- array_fill_keys (array_keys ($ node ->htmlNode ->attrs ), NULL )
187+ array_fill_keys (array_keys ($ node ->htmlNode ->attrs ), null )
188188 );
189189 }
190190 }
@@ -204,7 +204,7 @@ public function macroNameEnd(MacroNode $node, PhpWriter $writer)
204204 {
205205 $ tagName = strtolower ($ node ->htmlNode ->name );
206206 if ($ tagName === 'form ' ) {
207- $ node ->innerContent .= '<?php echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd(array_pop($this->global->formsStack), FALSE ); ?> ' ;
207+ $ node ->innerContent .= '<?php echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd(array_pop($this->global->formsStack), false ); ?> ' ;
208208 } elseif ($ tagName === 'label ' ) {
209209 if ($ node ->htmlNode ->empty ) {
210210 $ node ->innerContent = "<?php echo \$_input->getLabelPart()->getHtml() ?> " ;
0 commit comments