-
Notifications
You must be signed in to change notification settings - Fork 0
/
_indents.php
60 lines (55 loc) · 1.32 KB
/
_indents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
declare(strict_types=1);
class Foo
{
function foo($x, $z)
{
global $k, $s1;
$obj->foo()->bar();
$arr = array(0 => "zero", 1 => "one");
call_func(
function () {
return 0;
}
);
for ($i = 0; $i < $x; $i++) {
$y += ($y ^ 0x123) << 2;
}
$k = $x > 15 ? 1 : 2;
$k = $x ?: 0;
do {
try {
if (!0 > $x && !$x < 10) {
while ($x != $y) {
$x = f($x * 3 + 5);
}
$z += 2;
} elseif ($x > 20) {
$z = $x << 1;
} else {
$z = $x | 2;
}
$j = (int)$z;
switch ($j) {
case 0:
$s1 = 'zero';
break;
case 2:
$s1 = 'two';
break;
default:
$s1 = 'other';
}
} catch (exception $e) {
echo $val{foo . $num}[$cell{$a}];
} finally {
// do something
}
} while ($x < 0);
}
}
function bar(): Foo
{
}
?>
<div><?= foo() ?></div>