From 7a06fb38f205d847ca5e2445eb93975bb8390469 Mon Sep 17 00:00:00 2001 From: Lena Orobei Date: Mon, 10 Feb 2020 11:05:33 -0600 Subject: [PATCH 1/2] Fixed confusing message --- .../Commenting/ClassAndInterfacePHPDocFormattingSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php b/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php index 8976d67f..e757fe5c 100644 --- a/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php +++ b/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php @@ -65,7 +65,7 @@ public function process(File $phpcsFile, $stackPtr) if ($this->PHPDocFormattingValidator->providesMeaning($namePtr, $commentStartPtr, $tokens) !== true) { $phpcsFile->addWarning( sprintf( - '%s description should contain additional information beyond the name already supplies.', + '%s description must contain meaningful information beyond what the class name provides or be removed.', ucfirst($tokens[$stackPtr]['content']) ), $stackPtr, From 8244534a62b8e1dc38622f904f47c6f6feac1369 Mon Sep 17 00:00:00 2001 From: Lena Orobei Date: Mon, 10 Feb 2020 11:08:20 -0600 Subject: [PATCH 2/2] Fixed confusing message --- .../Commenting/ClassAndInterfacePHPDocFormattingSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php b/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php index e757fe5c..48426a1a 100644 --- a/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php +++ b/Magento2/Sniffs/Commenting/ClassAndInterfacePHPDocFormattingSniff.php @@ -65,7 +65,7 @@ public function process(File $phpcsFile, $stackPtr) if ($this->PHPDocFormattingValidator->providesMeaning($namePtr, $commentStartPtr, $tokens) !== true) { $phpcsFile->addWarning( sprintf( - '%s description must contain meaningful information beyond what the class name provides or be removed.', + '%s description must contain meaningful information beyond what its name provides or be removed.', ucfirst($tokens[$stackPtr]['content']) ), $stackPtr,