Removed check of size functions in loop statements in CS

This commit is contained in:
Paolo
2017-08-22 10:32:11 +02:00
parent 17acfa3945
commit 1afe6c00a1
2 changed files with 1 additions and 44 deletions
@@ -105,25 +105,6 @@ class FHComplete_Sniffs_NamingConventions_ValidFunctionNameSniff extends PHP_Cod
return;
}
}
//elseif ($isPrivate === true) {
// if (substr($methodName, 0, 2) !== '__') {
// $error = 'Private method name "%s" must be prefixed with 2 underscores';
// $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $errorData);
// return;
// } else {
// $filename = $phpcsFile->getFilename();
// if (strpos($filename, '/lib/Cake/') === true) {
// $warning = 'Private method name "%s" in FHComplete core is discouraged';
// $phpcsFile->addWarning($warning, $stackPtr, 'PrivateMethodInCore', $errorData);
// }
// }
//} else {
// if ($methodName[0] !== '_' || substr($methodName, 0, 2) === '__') {
// $error = 'Protected method name "%s" must be prefixed with one underscore';
// $phpcsFile->addError($error, $stackPtr, 'ProtectedNoUnderscore', $errorData);
// return;
// }
//}
}
/**