REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.64 KB
Close
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.1.inc
Text
Base64
<?php function nestingOne() { if ($condition) { echo 'hi'; } } function nestingFive() { if ($condition) { echo 'hi'; switch ($condition) { case '1': if ($condition === '1') { if ($cond) { echo 'hi'; } } break; } } } function nestingSix() { if ($condition) { } else { switch ($condition) { case '1': if ($condition === '1') { } elseif ($condition === '2') { do { foreach ($conds as $cond) { echo 'hi'; } } while ($cond > 5); } break; } } } function nestingTen() { if ($condition) { echo 'hi'; switch ($condition) { case '1': if ($condition === '1') { if ($cond) { switch ($cond) { case '1': if ($cond === '1') { foreach ($conds as $cond) { if ($cond === 'hi') { echo 'hi'; } } } break; } } } break; } } } function nestingEleven() { if ($condition) { echo 'hi'; switch ($condition) { case '1': if ($condition === '1') { if ($cond) { try { if ( $cond === '1' ) { for ( $i = 0; $i < 10; $i ++ ) { while ($i < 5) { if ( $cond === 'hi' ) { match ( $cond ) { 'hi' => 'something', }; } } } } } catch (Exception $e) {} } } break; } } } abstract class AbstractClass { abstract public function sniffShouldIgnoreAbstractMethods(); } interface MyInterface { public function sniffShouldIgnoreInterfaceMethods(); }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CyclomaticComplexityUnitTest.1.inc
8.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
CyclomaticComplexityUnitTest.2.inc
205 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CyclomaticComplexityUnitTest.3.inc
207 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CyclomaticComplexityUnitTest.php
2.00 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
NestingLevelUnitTest.1.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
NestingLevelUnitTest.2.inc
205 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NestingLevelUnitTest.3.inc
207 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NestingLevelUnitTest.php
1.78 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).