File tree 2 files changed +8
-3
lines changed
lib/internal/Magento/Framework/View
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ public function minify($file)
131
131
'#(?<!:| \\\\| \'|")//(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*# ' ,
132
132
'' ,
133
133
preg_replace (
134
- '#(?<!:| \'|")//[^\n\r]*(\s\ ?\>)# ' ,
135
- '$1 ' ,
134
+ '#(?<!:| \'|")//[^\n\r]*(\?\>)# ' ,
135
+ ' $1 ' ,
136
136
preg_replace (
137
137
'#(?<!:)//[^\n\r]*(\<\?php)[^\n\r]*(\s\?\>)[^\n\r]*# ' ,
138
138
'' ,
Original file line number Diff line number Diff line change @@ -156,6 +156,11 @@ public function testMinify()
156
156
<?php echo '//some.link.com/' ?>
157
157
<em>inline text</em>
158
158
<a href="http://www.<?php echo 'hi' ?>"></a>
159
+ <?php// if ( \$block->getSomeVariable() > 1):?>
160
+ <?php echo \$block->getChildHtml('someChildBlock'); ?>
161
+ <?php //else:?>
162
+ <?php // echo \$block->getChildHtml('anotherChildBlock'); ?>
163
+ <?php // endif; ?>
159
164
</body>
160
165
</html>
161
166
TEXT ;
@@ -179,7 +184,7 @@ public function testMinify()
179
184
}
180
185
});
181
186
//]]>
182
- </script><?php echo "http://some.link.com/" ?> <?php echo "//some.link.com/" ?> <?php echo '//some.link.com/' ?> <em>inline text</em> <a href="http://www.<?php echo 'hi' ?>"></a></body></html>
187
+ </script><?php echo "http://some.link.com/" ?> <?php echo "//some.link.com/" ?> <?php echo '//some.link.com/' ?> <em>inline text</em> <a href="http://www.<?php echo 'hi' ?>"></a> <?php ?> <?php echo \$ block->getChildHtml('someChildBlock'); ?> <?php ?> <?php ?> <?php ?> </body></html>
183
188
TEXT ;
184
189
185
190
$ this ->appDirectoryMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments