Warn about commented out code.
- Author
- Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
Stops inline IF statements from being used.
- Author
- Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
Discourages the use of debug functions.
- Author
- Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
The use of eval() is discouraged.
- Author
- Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
Discourages the use of alias functions.
- Author
- Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
Stops the usage of the "global" keyword.
- Author
- Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
Bans the use of heredocs and nowdocs.
- Author
- Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
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
- Copyright
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence