opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Tests
/
Commenting
➕ New
📤 Upload
✎ Editing:
EmptyCatchCommentUnitTest.inc
← Back
<?php try { // Try something. $variable = 'string'; } catch (Exception $e) { // Comment. echo 'something broke'; } try { // Try something. $variable = 'string'; } catch (Exception $e) { } try { // Try something. $variable = 'string'; } catch (Exception $e) { // Dont want to do anything. } try { $variable = 'string'; } catch (MyException $e) { echo 'something broke'; } catch (Exception $e) { echo 'something broke'; } try { $variable = 'string'; } catch (MyException $e) { } catch (Exception $e) { echo 'something broke'; } try { $variable = 'string'; } catch (MyException $e) { // Dont do anything. } catch (Exception $e) { // Do nothing. } try { $variable = 'string'; } catch (MyException $e) { } catch (YourException $e) { } catch (OurException $e) { } catch (Exception $e) { } ?>
💾 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