opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Tests
/
PHP
➕ New
📤 Upload
✎ Editing:
NonExecutableCodeUnitTest.3.inc
← Back
<!-- no problem here --> <?php if (true): ?> <?php foreach ([] as $item): ?> <?php continue; ?> <?php endforeach; ?> <?php endif; ?> <!-- no problem here --> <?php if (true) { ?> <?php foreach ([] as $item) { ?> <?php continue; ?> <?php } ?> <?php } ?> <!-- no problem here --> <?php if (true) { ?> <?php foreach ([] as $item) { ?> <!-- note missing semicolon on next line --> <?php continue ?> <?php } ?> <?php } ?> <!-- should detect an error here --> <?php if (true): ?> <?php foreach ([] as $item): ?> <?php continue; ?> <div>non-executable</div> <?php endforeach; ?> <?php endif; ?> <!-- should detect an error here --> <?php if (true): ?> <?php foreach ([] as $item): ?> <!-- note missing semicolon on next line --> <?php continue ?> <div>non-executable</div> <?php endforeach; ?> <?php endif; ?> <!-- should detect an error here --> <?php if (true): ?> <?php foreach ([] as $item): ?> <?php continue; ?> <div>non-executable</div> <?php endforeach; ?> <?php endif; ?> <!-- should detect an error here --> <?php if (true): ?> <?php foreach ([] as $item): ?> <?php continue; ?> <?= 'unreachable - no semicolon' ?> <?php endforeach; ?> <?php endif; ?> <!-- should detect an error here --> <?php if (true): ?> <?php foreach ([] as $item): ?> <?php continue; ?> <?= 'unreachable - with semicolon'; ?> <?php endforeach; ?> <?php endif; ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel