function foo in Coder 8.3
Same name in this branch
- 8.3 tests/Drupal/Commenting/TodoCommentUnitTest.inc \foo()
- 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \foo()
- 8.3 tests/Drupal/Classes/FullyQualifiedNamespaceUnitTest.1.inc \foo()
- 8.3 tests/Drupal/Files/LineLengthUnitTest.inc \foo()
- 8.3 tests/Drupal/WhiteSpace/CommaUnitTest.inc \foo()
- 8.3 tests/Drupal/bad/bad.php \foo()
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \foo()
- 8.2 coder_sniffer/Drupal/Test/Files/LineLengthUnitTest.inc \foo()
- 8.2 coder_sniffer/Drupal/Test/WhiteSpace/CommaUnitTest.inc \foo()
- 8.2 coder_sniffer/Drupal/Test/bad/bad.php \foo()
- 8.2 coder_sniffer/Drupal/Test/good/good.php \foo()
- 7.2 coder_sniffer/Test/bad/bad.php \foo()
- 7.2 coder_sniffer/Test/good/good.php \foo()
- 8.3.x tests/Drupal/Commenting/TodoCommentUnitTest.inc \foo()
- 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \foo()
- 8.3.x tests/Drupal/Classes/FullyQualifiedNamespaceUnitTest.1.inc \foo()
- 8.3.x tests/Drupal/Files/LineLengthUnitTest.inc \foo()
- 8.3.x tests/Drupal/WhiteSpace/CommaUnitTest.inc \foo()
- 8.3.x tests/Drupal/bad/bad.php \foo()
Example function.
4 calls to foo()
- CommaUnitTest.inc in tests/
Drupal/ WhiteSpace/ CommaUnitTest.inc - CommentEmptyLineUnitTest.inc in tests/
DrupalPractice/ Commenting/ CommentEmptyLineUnitTest.inc - PostStatementCommentUnitTest.inc in tests/
Drupal/ Commenting/ PostStatementCommentUnitTest.inc - test21 in tests/
Drupal/ bad/ bad.php - Some indentation errors.
5 string references to 'foo'
- bad.php in tests/
Drupal/ bad/ bad.php - CheckPlainUnitTest.inc in tests/
DrupalPractice/ FunctionCalls/ CheckPlainUnitTest.inc - FunctionWatchdogUnitTest.inc in tests/
Drupal/ Semantics/ FunctionWatchdogUnitTest.inc - test1 in tests/
DrupalPractice/ good/ good.php - Ignoring the array value in a foreach loop is OK.
- test3 in tests/
DrupalPractice/ good/ good.php - Variables that are used by reference are allowed to not be read.
File
- tests/
Drupal/ Commenting/ TodoCommentUnitTest.inc, line 46 - Test file for the todo standard.
Code
function foo() {
// These are valid examples.
// @todo Valid.
// @todo valid with lower-case first letter
// @todo $can start with a $
// @todo \also with backslash
// This is not a todo tag. It is a general comment and we do not want
// to do the standards checking here.
// These are all incorrect but can be fixed automatically.
// @TODO Error
// @ToDo Error
// @TODo Error
// @ToDO Error
// @todo: Error
// @todo : Error
// @to-do Error
// @TO-DO Error
// @To-Do Error
// @TO do Error
// @to do Error
// @todo Error
// @todo- Error
// @todo - Error
// @todoError
// todo Error
// TODO Error
// ToDo Error
// to-do Error
// These are all incorrect but cannot be fully fixed automatically.
// @todo
// @to-do
// @TODO
}