You are here

function test15 in Coder 8.2

Same name in this branch
  1. 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \test15()
  2. 8.2 coder_sniffer/Drupal/Test/bad/bad.php \test15()
  3. 8.2 coder_sniffer/Drupal/Test/good/good.php \test15()
Same name and namespace in other branches
  1. 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test15()
  2. 8.3 tests/Drupal/bad/bad.php \test15()
  3. 7.2 coder_sniffer/Test/bad/bad.php \test15()
  4. 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test15()
  5. 8.3.x tests/Drupal/bad/bad.php \test15()

Comments ending with parentheses.

It should be possible to use a parenthesis in a comment without having the DocCommentSniff complain. (About the the last character of the line.)

Parameters

string $foo: A parameter comment is also allowed to end (with parenthesis)

File

coder_sniffer/Drupal/Test/good/good.php, line 1396
This file contains all the valid notations for the drupal coding standard.

Code

function test15($foo) {
}