PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 865 bytes
 

Contents

Class file image Download
<?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) { } ?>