Removed modules/contrib/media module to allow update to the core media module
[yaffs-website] / vendor / nikic / php-parser / test / code / formatPreservation / blockConversion.test
1 It may be necessary to convert a single statement into a block
2 -----
3 <?php
4
5 if
6 ($a) $b;
7 -----
8 // TODO Avoid fallback
9 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));
10 -----
11 <?php
12
13 if ($a) {
14     $b;
15     $c;
16 }
17 -----
18 <?php
19
20 if
21 ($a) {$b;}
22 -----
23 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));
24 -----
25 <?php
26
27 if
28 ($a) {$b;
29 $c;}