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

Classes

class  ByteOrderMarkSniff
 
class  EndFileNewlineSniff
 
class  EndFileNoNewlineSniff
 
class  InlineHTMLSniff
 
class  LineEndingsSniff
 
class  LineLengthSniff
 
class  LowercasedFilenameSniff
 
class  OneClassPerFileSniff
 
class  OneInterfacePerFileSniff
 
class  OneObjectStructurePerFileSniff
 
class  OneTraitPerFileSniff
 

Detailed Description

A simple sniff for detecting BOMs that may corrupt application work.

Author
Piotr Karas offic.nosp@m.e@me.nosp@m.diase.nosp@m.lf.p.nosp@m.l
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Ensures the file ends with a newline character.

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

Ensures the file does not end with a newline character.

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

Ensures the whole file is PHP only, with no whitespace or inline HTML.

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

Checks that end of line characters are correct.

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

Checks the length of all lines in a file.

Checks all lines in the file, and throws warnings if they are over 80 characters in length and errors if they are over 100. Both these figures can be changed in a ruleset.xml file.

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

Checks that all file names are lowercased.

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

Checks that only one class is declared per file.

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

Checks that only one interface is declared per file.

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

Checks that only one object structure is declared per file.

Author
Mponos George gmpon.nosp@m.os@g.nosp@m.mail..nosp@m.com

Checks that only one trait is declared per file.

Author
Alexander Obuhovich aik.b.nosp@m.old@.nosp@m.gmail.nosp@m..com