Page MenuHomeSealhub

parens-hug-contents.lint-test
No OneTemporary

Authored By
Unknown
Size
948 B
Referenced Files
None
Subscribers
None

parens-hug-contents.lint-test

<?php
if ( $x ) {}
f( );
q( );
g();
if ($x) {} else if ( $y ) {}
$obj->m(
$x,
$y,
$z);
for ( $ii = 0; $ii < 1; $ii++ ) {}
foreach ( $x as $y ) {}
function q( $x ) {}
final class X {
public function f( $y ) {}
}
foreach ( $z as $k => $v ) {}
some_call( /* respect authorial intent */ $b,
$a // if comments are present
);
~~~~~~~~~~
warning:2:5
warning:2:8
warning:3:3
warning:4:3
warning:6:21
warning:6:24
warning:12:6
warning:12:30
warning:13:10
warning:13:19
warning:14:12
warning:14:15
error:15:13 XHP19 Class-Filename Mismatch
warning:16:21
warning:16:24
warning:18:10
warning:18:25
~~~~~~~~~~
<?php
if ($x) {}
f();
q();
g();
if ($x) {} else if ($y) {}
$obj->m(
$x,
$y,
$z);
for ($ii = 0; $ii < 1; $ii++) {}
foreach ($x as $y) {}
function q($x) {}
final class X {
public function f($y) {}
}
foreach ($z as $k => $v) {}
some_call( /* respect authorial intent */ $b,
$a // if comments are present
);

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 28, 01:22 (13 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1214355
Default Alt Text
parens-hug-contents.lint-test (948 B)

Event Timeline