From 887fa9a1c5f14633c2e6bfcc54019f94777af9ea Mon Sep 17 00:00:00 2001 From: Slobodan Alavanja Date: Thu, 14 Nov 2024 20:05:05 +0100 Subject: [PATCH] Add a namespace and category to Neuralab Silent sniff --- .../Sniffs/{ => Test}/SilentFallbackSniff.php | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) rename Neuralab-Silent/Sniffs/{ => Test}/SilentFallbackSniff.php (94%) diff --git a/Neuralab-Silent/Sniffs/SilentFallbackSniff.php b/Neuralab-Silent/Sniffs/Test/SilentFallbackSniff.php similarity index 94% rename from Neuralab-Silent/Sniffs/SilentFallbackSniff.php rename to Neuralab-Silent/Sniffs/Test/SilentFallbackSniff.php index 7a1dd3b..63660ac 100644 --- a/Neuralab-Silent/Sniffs/SilentFallbackSniff.php +++ b/Neuralab-Silent/Sniffs/Test/SilentFallbackSniff.php @@ -1,23 +1,24 @@ -getTokens(); - if (substr( $tokens[$stackPtr]['content'], 0, 9 ) === '#neuralab') { - $warn = 'Neuralab silent linter is working; found %s'; - $data = array(trim($tokens[$stackPtr]['content'])); - $phpcsFile->addWarning($warn, $stackPtr, 'Found', $data); - } - } -} \ No newline at end of file +getTokens(); + if (substr( $tokens[$stackPtr]['content'], 0, 9 ) === '#neuralab') { + $warn = 'Neuralab silent linter is working; found %s'; + $data = array(trim($tokens[$stackPtr]['content'])); + $phpcsFile->addWarning($warn, $stackPtr, 'Found', $data); + } + } +}