Mercurial > hg > isophonics-drupal-site
comparison vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Functions/DiscouragedFunctionsSniff.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 /** | 2 /** |
3 * Drupal_Sniffs_Functions_DiscouragedFunctionsSniff. | 3 * \Drupal\Sniffs\Functions\DiscouragedFunctionsSniff. |
4 * | 4 * |
5 * @category PHP | 5 * @category PHP |
6 * @package PHP_CodeSniffer | 6 * @package PHP_CodeSniffer |
7 * @link http://pear.php.net/package/PHP_CodeSniffer | 7 * @link http://pear.php.net/package/PHP_CodeSniffer |
8 */ | 8 */ |
9 | |
10 namespace Drupal\Sniffs\Functions; | |
11 | |
12 use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff; | |
9 | 13 |
10 /** | 14 /** |
11 * Discourage the use of debug functions. | 15 * Discourage the use of debug functions. |
12 * | 16 * |
13 * @category PHP | 17 * @category PHP |
14 * @package PHP_CodeSniffer | 18 * @package PHP_CodeSniffer |
15 * @link http://pear.php.net/package/PHP_CodeSniffer | 19 * @link http://pear.php.net/package/PHP_CodeSniffer |
16 */ | 20 */ |
17 class Drupal_Sniffs_Functions_DiscouragedFunctionsSniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff | 21 class DiscouragedFunctionsSniff extends ForbiddenFunctionsSniff |
18 { | 22 { |
19 | 23 |
20 /** | 24 /** |
21 * A list of forbidden functions with their alternatives. | 25 * A list of forbidden functions with their alternatives. |
22 * | 26 * |