apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: DiscouragedFunctionsSniff

Source Location: /PHP_CodeSniffer-3.1.1/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php

Class Overview

GenericForbiddenFunctionsSniff
   |
   --DiscouragedFunctionsSniff

Discourages the use of debug functions.


Author(s):

Copyright:

  • 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)

Variables


Inherited Variables

Inherited Methods


Class Details

[line 14]
Discourages the use of debug functions.


[ Top ]


Class Variables

$error =  false

[line 36]

If true, an error will be thrown; otherwise a warning.
  • Access: public

Type:   boolean


[ Top ]

$forbiddenFunctions = array(
                                  'error_log' => null,
                                  'print_r'   => null,
                                  'var_dump'  => null,
                                 )

[line 25]

A list of forbidden functions with their alternatives.

The value is NULL if no alternative exists. IE, the function should just not be used.

  • Var: string|null>
  • Access: public

Type:   array


[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:27:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.