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

Classes

class  CommentedOutCodeSniff
 
class  DisallowBooleanStatementSniff
 
class  DisallowComparisonAssignmentSniff
 
class  DisallowInlineIfSniff
 
class  DisallowMultipleAssignmentsSniff
 
class  DisallowObEndFlushSniff
 
class  DisallowSizeFunctionsInLoopsSniff
 
class  DiscouragedFunctionsSniff
 
class  EmbeddedPhpSniff
 
class  EvalSniff
 
class  ForbiddenFunctionsSniff
 
class  GlobalKeywordSniff
 
class  HeredocSniff
 
class  InnerFunctionsSniff
 
class  LowercasePHPFunctionsSniff
 
class  NonExecutableCodeSniff
 

Detailed Description

Warn about commented out code.

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

Ensures that boolean operators are only used inside control structure conditions.

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

Ensures that the value of a comparison is not assigned to a variable.

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

Stops inline IF statements from being used.

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

Ensures there is only one assignment on a line, and that it is the first thing on the line.

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

Checks the indenting used when an ob_start() call occurs.

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

Bans the use of size-based functions in loop conditions.

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

Discourages the use of debug functions.

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

Checks the indentation of embedded PHP code segments.

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

The use of eval() is discouraged.

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

Discourages the use of alias functions.

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

Stops the usage of the "global" keyword.

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

Bans the use of heredocs and nowdocs.

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

Ensures that functions within functions are never used.

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

Ensures all calls to inbuilt PHP functions are lowercase.

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

Warns about code that can never been executed.

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