File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
lib/internal/Magento/Framework/View Expand file tree Collapse file tree 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 @@ -155,6 +155,11 @@ public function testMinify()
155
155
<?php echo '//some.link.com/' ?>
156
156
<em>inline text</em>
157
157
<a href="http://www.<?php echo 'hi' ?>"></a>
158
+ <?php// if ( \$block->getSomeVariable() > 1):?>
159
+ <?php echo \$block->getChildHtml('someChildBlock'); ?>
160
+ <?php //else:?>
161
+ <?php // echo \$block->getChildHtml('anotherChildBlock'); ?>
162
+ <?php // endif; ?>
158
163
</body>
159
164
</html>
160
165
TEXT ;
@@ -178,7 +183,7 @@ public function testMinify()
178
183
}
179
184
});
180
185
//]]>
181
- </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>
186
+ </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>
182
187
TEXT ;
183
188
184
189
$ this ->appDirectoryMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments