Issue #2803893 by mfernea: Fix 'Drupal.Commenting.FunctionComment.ParamTypeSpaces' coding standard

8.5.x
Nathaniel Catchpole 2017-08-23 12:58:15 +09:00
parent c7c9a329ef
commit 92cbc4cfc8
3 changed files with 3 additions and 4 deletions

View File

@ -104,7 +104,7 @@ class PoItem {
* Set the source string or the array of strings if the translation has
* plurals.
*
* @param string or array $source
* @param string|array $source
*/
public function setSource($source) {
$this->_source = $source;
@ -124,7 +124,7 @@ class PoItem {
* Set the translation string or the array of strings if the translation has
* plurals.
*
* @param string or array $translation
* @param string|array $translation
*/
public function setTranslation($translation) {
$this->_translation = $translation;

View File

@ -127,7 +127,7 @@ class MockBlockManager extends PluginManagerBase {
*
* @param string $data_type
* The required data type.
* @param mixed string|null $label
* @param mixed|string|null $label
* The label of this context definition for the UI.
* @param bool $required
* Whether the context definition is required.

View File

@ -59,7 +59,6 @@
<exclude name="Drupal.Commenting.FunctionComment.ParamCommentIndentation"/>
<exclude name="Drupal.Commenting.FunctionComment.ParamMissingDefinition"/>
<exclude name="Drupal.Commenting.FunctionComment.ParamNameNoMatch"/>
<exclude name="Drupal.Commenting.FunctionComment.ParamTypeSpaces"/>
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
</rule>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/ControlStructures/ElseIfSniff.php"/>