-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathScopeIndentUnitTest.3.inc.fixed
More file actions
43 lines (40 loc) · 855 Bytes
/
ScopeIndentUnitTest.3.inc.fixed
File metadata and controls
43 lines (40 loc) · 855 Bytes
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
phpcs:set Generic.WhiteSpace.ScopeIndent tabIndent false
phpcs:set Generic.WhiteSpace.ScopeIndent exact true
<?php
function test()
{
echo 'test';
echo 'test2';
echo 'test3';
if (true) {
echo 'test3';
}
echo 'test3';
$x = f1(
'test1', 'test2',
'test3'
);
}
if ($foo) {
[
'enabled' => $enabled,
'compression' => $compression,
] = $options;
}
$this->foo()
->bar()
->baz();
// https://github.com/squizlabs/PHP_CodeSniffer/issues/2078#issuecomment-401641650
// See also PSR2.Methods.FunctionCallSignature
$repository->foo()
->bar(
function () {
return true;
}
);
$repository->foo()
->bar(
function () {
return true;
}
);