Issue #2715965 by alexpott: Fix 'Drupal.Commenting.FunctionComment.IncorrectParamVarName' coding standard

8.2.x
Alex Pott 2016-05-05 12:33:36 +01:00
parent 70f58860c8
commit 524dc283d5
7 changed files with 8 additions and 9 deletions

View File

@ -160,7 +160,7 @@ class PoItem {
/**
* Set the comment of this translation.
*
* @param String $comment
* @param string $comment
*/
function setComment($comment) {
$this->_comment = $comment;

View File

@ -48,7 +48,7 @@ class DataCommand implements CommandInterface {
* A CSS selector for the elements to which the data will be attached.
* @param string $name
* The key of the data to be attached to elements matched by the selector.
* @param type $value
* @param mixed $value
* The value of the data to be attached to elements matched by the selector.
*/
public function __construct($selector, $name, $value) {

View File

@ -76,7 +76,7 @@ class MigrateFieldInstanceTest extends MigrateDrupal7TestBase {
* The expected field label.
* @param string $expected_field_type
* The expected field type.
* @param boolean $is_required
* @param bool $is_required
* Whether or not the field is required.
*/
protected function assertEntity($id, $expected_label, $expected_field_type, $is_required) {

View File

@ -40,11 +40,11 @@ class MockAliasManager implements AliasManagerInterface {
/**
* Adds an alias to the in-memory alias table for this object.
*
* @param type $path
* @param string $path
* The system path of the alias.
* @param type $alias
* @param string $alias
* The alias of the system path.
* @param type $path_language
* @param string $path_language
* The language of this alias.
*/
public function addAlias($path, $alias, $path_language = NULL) {

View File

@ -231,7 +231,7 @@ abstract class QueryPluginBase extends PluginBase implements CacheableDependency
* An appropriate query expression pointing to the date field.
* @param string $format
* A format string for the result, like 'Y-m-d H:i:s'.
* @param boolean $string_date
* @param bool $string_date
* For certain databases, date format functions vary depending on string or
* numeric storage.
*

View File

@ -43,7 +43,7 @@ class ArgumentValidatorTest extends UITestBase {
* Saves the test_argument view with changes made to the argument handler
* both with and without specify_validation turned on.
*
* @param boolean $specify_validation
* @param bool $specify_validation
*/
protected function saveArgumentHandlerWithValidationOptions($specify_validation) {
$options = array(

View File

@ -40,7 +40,6 @@
<rule ref="Drupal.Commenting.DocCommentStar"/>
<rule ref="Drupal.Commenting.FileComment"/>
<rule ref="Drupal.Commenting.FunctionComment">
<exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/>
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
<exclude name="Drupal.Commenting.FunctionComment.$InReturnType"/>
<exclude name="Drupal.Commenting.FunctionComment.InvalidNoReturn"/>