Skip to content

Commit

Permalink
Merge pull request #18 from zumba/REQ-16773-update-code-sniffer
Browse files Browse the repository at this point in the history
REQ-16773 Update code sniffer
  • Loading branch information
cjsaylor authored Oct 26, 2022
2 parents 3737efc + 344174e commit 5c79ace
Show file tree
Hide file tree
Showing 15 changed files with 76 additions and 1,062 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ composer.lock
zumba-coding-standards.iml
.idea
vendor
.phpunit.result.cache
638 changes: 0 additions & 638 deletions Zumba/Sniffs/Commenting/FunctionCommentSniff.php

This file was deleted.

248 changes: 0 additions & 248 deletions Zumba/Sniffs/Commenting/VariableCommentSniff.php

This file was deleted.

9 changes: 6 additions & 3 deletions Zumba/Sniffs/ControlStructures/MultiLineConditionSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* @package PHP_CodeSniffer
*/

use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;

/**
* Zumba_Sniffs_ControlStructures_MultiLineConditionSniff.
*
Expand All @@ -16,7 +19,7 @@
* @category PHP
* @package PHP_CodeSniffer
*/
class Zumba_Sniffs_ControlStructures_MultiLineConditionSniff implements PHP_CodeSniffer_Sniff
class Zumba_Sniffs_ControlStructures_MultiLineConditionSniff implements Sniff
{


Expand All @@ -35,13 +38,13 @@ public function register()
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token
* in the stack passed in $tokens.
*
* @return void
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();

Expand Down
9 changes: 6 additions & 3 deletions Zumba/Sniffs/Formatting/SQLSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
* @package PHP_CodeSniffer
*/

use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;

/**
* Zumba_Sniffs_Formatting_SQLSniff.
*
* @category PHP
* @package PHP_CodeSniffer
*/
class Zumba_Sniffs_Formatting_SQLSniff implements PHP_CodeSniffer_Sniff
class Zumba_Sniffs_Formatting_SQLSniff implements Sniff
{

/**
Expand All @@ -36,13 +39,13 @@ public function register()
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in the
* stack passed in $tokens.
*
* @return void
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();

Expand Down
Loading

0 comments on commit 5c79ace

Please sign in to comment.