Skip to content

Commit f1bfd2c

Browse files
committed
Fix error namespace
1 parent 4c542f2 commit f1bfd2c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Sniffs/CodeAnalysis/VariableAnalysisSniff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace VariableAnalysis\Sniffs\CodeAnalysis;
4+
use PHP_CodeSniffer\Sniffs\Sniff;
35
use PHP_CodeSniffer\Files\File;
46

57
/**
@@ -83,7 +85,7 @@ function __construct($varName) {
8385
* @copyright 2011 Sam Graham <php-codesniffer-variableanalysis BLAHBLAH illusori.co.uk>
8486
* @link http://pear.php.net/package/PHP_CodeSniffer
8587
*/
86-
class VariableAnalysisSniff implements PHP_CodeSniffer\Sniffs\Sniff {
88+
class VariableAnalysisSniff implements Sniff {
8789
/**
8890
* The current phpcsFile being checked.
8991
*

ruleset.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
2-
<ruleset name="PHP_Codesniffer Plugins VariableAnalysis">
3-
<description>Run ./install.sh and choose from the following rules to your standrd's ruleset.xml.</description>
2+
<ruleset name="VariableAnalysis">
3+
<description>A code sniff to detect problems with variables.</description>
44

55
<!-- If you want everything, with the defaults, just include this line -->
66
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis"/>

0 commit comments

Comments
 (0)