File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/Standards/Squiz/Docs/WhiteSpace Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 9
9
<![CDATA[
10
10
function foo()
11
11
{
12
- echo 'opening brace at column 1';
13
- echo 'closing brace at column 1';
14
12
<em>}</em>
15
13
14
+ function bar()
15
+ {
16
+ <em> }</em>
17
+
16
18
if (!class_exists('Foo')) {
17
19
class Foo {
18
20
<em>}</em>
19
21
<em>}</em>
20
22
21
23
<?php if ($something) { ?>
22
- <p>conditional opening tag at column 1</p>
23
- <p>conditional closing tag at column 1</p>
24
+ <p>some output</p>
24
25
<?php } ?>
25
26
]]>
26
27
</code >
27
28
<code title =" Invalid: Closing brace misaligned with line containing opening brace." >
28
29
<![CDATA[
29
30
function foo()
30
31
{
31
- echo 'opening brace at column 1';
32
- echo 'closing brace at column 2';
33
32
<em> }</em>
34
33
34
+ function bar()
35
+ {
36
+ <em> }</em>
37
+
35
38
if (!class_exists('Foo')) {
36
39
class Foo {
37
40
<em> }</em>
38
41
<em> }</em>
39
42
40
43
<?php if ($something) { ?>
41
- <p>conditional opening tag at column 1</p>
42
- <p>conditional closing tag at column 2</p>
44
+ <p>some output</p>
43
45
<?php } ?>
44
46
]]>
45
47
</code >
You can’t perform that action at this time.
0 commit comments