Skip to content

Commit

Permalink
Added sniff to enforce member var spacing to project standard
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Aug 25, 2019
1 parent 50e83cc commit 44594bc
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing"/>
<rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace"/>
<rule ref="Squiz.WhiteSpace.FunctionSpacing"/>
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
Expand Down
1 change: 1 addition & 0 deletions src/Filters/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

class Filter extends \RecursiveFilterIterator
{

/**
* The top-level path we are filtering.
*
Expand Down
1 change: 0 additions & 1 deletion src/Sniffs/AbstractVariableSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
abstract class AbstractVariableSniff extends AbstractScopeSniff
{


/**
* List of PHP Reserved variables.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
class AssignmentInConditionSniff implements Sniff
{


/**
* Assignment tokens to trigger on.
*
Expand Down
1 change: 0 additions & 1 deletion src/Standards/Generic/Sniffs/Debug/ESLintSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class ESLintSniff implements Sniff
*/
public $supportedTokenizers = ['JS'];


/**
* ESLint configuration file path.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
class OpeningFunctionBraceKernighanRitchieSniff implements Sniff
{


/**
* Should this sniff check function braces?
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
class IncrementDecrementSpacingSniff implements Sniff
{


/**
* A list of tokenizers this sniff supports.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
class ControlStructureSpacingSniff implements Sniff
{


/**
* How many spaces should follow the opening bracket.
*
Expand Down
1 change: 0 additions & 1 deletion src/Standards/Squiz/Sniffs/CSS/NamedColoursSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class NamedColoursSniff implements Sniff
*/
public $supportedTokenizers = ['CSS'];


/**
* A list of named colours.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
class ForEachLoopDeclarationSniff implements Sniff
{


/**
* How many spaces should follow the opening bracket.
*
Expand Down
1 change: 0 additions & 1 deletion src/Tokenizers/JS.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
class JS extends Tokenizer
{


/**
* A list of tokens that are allowed to open a scope.
*
Expand Down
2 changes: 0 additions & 2 deletions src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
class PHP extends Tokenizer
{


/**
* A list of tokens that are allowed to open a scope.
*
Expand Down Expand Up @@ -433,7 +432,6 @@ class PHP extends Tokenizer
T_CLOSE_SHORT_ARRAY => 1,
];


/**
* A cache of different token types, resolved into arrays.
*
Expand Down

0 comments on commit 44594bc

Please sign in to comment.