REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.50 KB
Close
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc
Text
Base64
<?php class Test { public function __construct() { } function test1() { } function test2() {} private function _test3() { } } class Test2 { } function test2() { if ($str{0}) { $chr = $str{0}; } if (!class_exists($class_name)) { echo $error; } $this->{$property} =& new $class_name($this->db_index); $this->modules[$module] =& $this->{$property}; } foreach ($elements as $element) { if ($something) { // Do IF. } else if ($somethingElse) { // Do ELSE. } } switch ($foo) { case 1: switch ($bar) { default: if ($something) { echo $string{1}; } else if ($else) { switch ($else) { case 1: // Do something. break; default: // Do something. break; } } } break; case 2: // Do something; break; } switch ($httpResponseCode) { case 100: case 101: case 102: default: return 'Unknown'; } switch ($httpResponseCode) { case 100: case 101: case 102: return 'Processing.'; default: return 'Unknown'; } switch($i) { case 1: {} } switch ($httpResponseCode) { case 100: case 101: case 102: exit; default: exit; } if ($foo): if ($bar): $foo = 1; elseif ($baz): $foo = 2; endif; endif; if ($foo): elseif ($baz): $foo = 2; endif; ?> <ul> <?php foreach ($array as $value) : ?> <li><?php echo $value ?></li> <?php endforeach ?> </ul> <ul> <?php foreach ($array as $value) : ?> <li><?php echo $value ?></li> <?php endforeach ?> </ul> <ul> <?php foreach ($array as $value) : ?> <li><?php echo $value ?></li> <?php endforeach ?> </ul> <?php switch ( $a ) { case 'foo': do { $a = 'b'; } while ( $a ); return 5; case 'bar': foreach ( $a as $b ) { $e = 'b'; } return 5; } ?> <?php $_cartQty = $this->getSummaryCount(); ?> <div id="minicart" <?php if ($_cartQty == 0): ?>class="empty"<?php endif; ?>> <?php $match = match ($test) { 1 => 'a', 2 => 'b' }; $match = match ($test) { 1 => 'a', 2 => 'b' }; enum Enum { } enum Suits {} enum Cards { } ?> <!-- Prevent fixer conflict with itself when the scope closer is preceded by non-empty/non-indentation inline HTML. --> <?php if ($someConditional) : ?> <div class="container"> </div> <?php endif;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ObjectOperatorIndentUnitTest.inc
2.64 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ObjectOperatorIndentUnitTest.inc.fixed
2.66 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ObjectOperatorIndentUnitTest.php
1.89 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScopeClosingBraceUnitTest.inc
2.50 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScopeClosingBraceUnitTest.inc.fixed
2.53 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScopeClosingBraceUnitTest.php
1.73 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScopeIndentUnitTest.inc
5.80 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScopeIndentUnitTest.inc.fixed
5.82 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScopeIndentUnitTest.php
2.09 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).