From 8fbe25a422b5e8b733634c9f9c9920ea79fc0532 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 23 Mar 2017 11:40:17 +0100 Subject: [PATCH] TASK: Cleanup missing vendor * Add configured vendor in message for easer migration in IDEs (by hand). * Remove non existing function from checks. Relates: #36 --- .../MissingVendorForPluginsAndModulesSniff.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php b/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php index e4eafe8..072bf62 100644 --- a/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php +++ b/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php @@ -58,7 +58,7 @@ class Typo3Update_Sniffs_LegacyClassnames_MissingVendorForPluginsAndModulesSniff */ public function process(PhpCsFile $phpcsFile, $stackPtr) { - $functionsToHandle = ['registerPlugin', 'configurePlugin', 'registerModule', 'configureModule']; + $functionsToHandle = ['registerPlugin', 'configurePlugin', 'registerModule']; if (!$this->isFunctionCall($phpcsFile, $stackPtr)) { return; } @@ -75,9 +75,10 @@ class Typo3Update_Sniffs_LegacyClassnames_MissingVendorForPluginsAndModulesSniff $fix = $phpcsFile->addFixableError( 'No vendor is given, that will break TYPO3 handling for namespaced classes.' - . ' Add vendor before Extensionkey like: "Vendor." . $_EXTKEY', + . ' Add vendor before Extensionkey like: "%s." . $_EXTKEY', $firstArgument, - 'missingVendor' + 'missingVendor', + [$this->getVendor()] ); if ($fix === true) {