BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_CodeSniffer\Standards\Generic\Sniffs\PHP Namespace Reference

Classes

class  BacktickOperatorSniff
 
class  CharacterBeforePHPOpeningTagSniff
 
class  ClosingPHPTagSniff
 
class  DeprecatedFunctionsSniff
 
class  DisallowAlternativePHPTagsSniff
 
class  DisallowShortOpenTagSniff
 
class  ForbiddenFunctionsSniff
 
class  LowerCaseConstantSniff
 
class  LowerCaseKeywordSniff
 
class  NoSilencedErrorsSniff
 
class  SAPIUsageSniff
 
class  SyntaxSniff
 
class  UpperCaseConstantSniff
 

Detailed Description

Bans the use of the backtick execution operator.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Checks that the opening PHP tag is the first content in a file.

Author
Andy Grunwald andyg.nosp@m.runw.nosp@m.ald@g.nosp@m.mail.nosp@m..com

Checks that open PHP tags are paired with closing tags.

Author
Stefano Kowalke blued.nosp@m.uck@.nosp@m.gmx.n.nosp@m.et

Discourages the use of deprecated PHP functions.

Author
Sebastian Bergmann sb@se.nosp@m.bast.nosp@m.ian-b.nosp@m.ergm.nosp@m.ann.d.nosp@m.e
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Verifies that no alternative PHP tags are used.

If alternative PHP open tags are found, this sniff can fix both the open and close tags.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Makes sure that shorthand PHP open tags are not used.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Discourages the use of alias functions.

Alias functions are kept in PHP for compatibility with older versions. Can be used to forbid the use of any function.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Checks that all uses of true, false and null are lowercase.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Checks that all PHP keywords are lowercase.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Throws an error or warning when any code prefixed with an asperand is encountered.

if (($array, $needle)) { doSomething(); }

Author
Andy Brockhurst abroc.nosp@m.k@ya.nosp@m.hoo-i.nosp@m.nc.c.nosp@m.om

Ensures the PHP_SAPI constant is used instead of php_sapi_name().

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Ensures PHP believes the syntax is clean.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
Blaine Schmeisser blain.nosp@m.esch.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Checks that all uses of TRUE, FALSE and NULL are uppercase.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t