From e6fe5579eefa61bae77ef6bb7a6c9e3baf2cad26 Mon Sep 17 00:00:00 2001 From: photodude Date: Fri, 15 May 2015 11:10:09 -0600 Subject: [PATCH] PHP Fatal error: Uncaught exception ``` PHP Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found' in /home/travis/build/photodude/joomla-cms/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php:19 Stack trace: #0 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1318): include_once() #1 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer.php(560): PHP_CodeSniffer->registerSniffs(Array, Array) #2 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(830): PHP_CodeSniffer->initStandard(Array, Array) #3 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(95): PHP_CodeSniffer_CLI->process() #4 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/scripts/phpcs(25): PHP_CodeSniffer_CLI->runphpcs() #5 {main} thrown in /home/travis/build/photodude/joomla-cms/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php on line 19 ``` --- .../Joomla/Sniffs/Commenting/ClassCommentSniff.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php b/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php index aad9a01330f07..ed3d68163d279 100644 --- a/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php +++ b/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php @@ -14,11 +14,11 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ -if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === false) { - $error = 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found'; - throw new PHP_CodeSniffer_Exception($error); -} - +/**if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === false) { +* $error = 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found'; +* throw new PHP_CodeSniffer_Exception($error); +*} +*/ require_once 'FileCommentSniff.php'; if (class_exists('Joomla_Sniffs_Commenting_FileCommentSniff', true) === false) {