handle new lines
This commit is contained in:
38
example.php
38
example.php
@@ -1,26 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace z7zmey\Example;
|
||||
|
||||
use \Exception;
|
||||
use z7zmey\Foo\{Bar, function Baz};
|
||||
|
||||
abstract class Foo extends Bar implements Buz, Buzz {
|
||||
use \z7zmey\_Trait;
|
||||
|
||||
public const CC = 0;
|
||||
|
||||
public function &test(bool $a, string $b = null): ?void {
|
||||
|
||||
namespace z7zmey\Example {
|
||||
use \Exception;
|
||||
use z7zmey\Foo\{Bar, function Baz};
|
||||
|
||||
abstract class Foo extends Bar implements Buz, Buzz {
|
||||
use \z7zmey\_Trait;
|
||||
|
||||
public const CC = 0;
|
||||
|
||||
public function &test(bool $a, string $b = null): ?void {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace z7zmey\Example2;
|
||||
|
||||
if ($a === true) {
|
||||
} elseif ($a === false) {
|
||||
} elseif ($a === null) {
|
||||
} else {
|
||||
}
|
||||
|
||||
$a = "string
|
||||
with $var
|
||||
";
|
||||
|
||||
$a = 'string
|
||||
with out $var';
|
||||
|
||||
$a = <<<test
|
||||
heredoc
|
||||
$var
|
||||
test;
|
||||
|
||||
?>
|
||||
|
||||
<?= $b; $b ?>
|
||||
Reference in New Issue
Block a user