function test in Coder 8.2
Same name in this branch
- 8.2 coder_sniffer/DrupalPractice/Test/CodeAnalysis/VariableAnalysisUnitTest.inc \test()
- 8.2 coder_sniffer/Drupal/Test/Classes/UseLeadingBackslashUnitTest.inc \test()
- 8.2 coder_sniffer/Drupal/Test/Arrays/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc \test()
- 8.2 coder_sniffer/Drupal/Test/Arrays/disallow_long_array_d7/DisallowLongArraySyntaxUnitTest.1.inc \test()
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test()
- 8.3 tests/Drupal/Classes/UseLeadingBackslashUnitTest.inc \test()
- 8.3 tests/DrupalPractice/Objects/drupal8/example.module \test()
- 8.3 tests/Drupal/Arrays/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc \test()
- 8.3 tests/Drupal/Arrays/disallow_long_array_d7/DisallowLongArraySyntaxUnitTest.1.inc \test()
- 8.3.x tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test()
- 8.3.x tests/Drupal/Classes/UseLeadingBackslashUnitTest.inc \test()
- 8.3.x tests/DrupalPractice/Objects/drupal8/example.module \test()
- 8.3.x tests/Drupal/Arrays/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc \test()
- 8.3.x tests/Drupal/Arrays/disallow_long_array_d7/DisallowLongArraySyntaxUnitTest.1.inc \test()
Declaring a long array.
2 calls to test()
- example_custom_block_view in coder_sniffer/
Drupal/ Test/ Commenting/ InlineCommentUnitTest.inc - Test function.
- PostStatementCommentUnitTest.1.inc in coder_sniffer/
Drupal/ Test/ Commenting/ PostStatementCommentUnitTest.1.inc
9 string references to 'test'
- bad.php in coder_sniffer/
Drupal/ Test/ bad/ bad.php - constant_test.install in coder_sniffer/
Drupal/ Test/ Semantics/ constant_test.install - constant_test.module in coder_sniffer/
Drupal/ Test/ Semantics/ constant_test.module - DefaultValueSanitizeUnitTest.inc in coder_sniffer/
DrupalPractice/ Test/ FunctionCalls/ DefaultValueSanitizeUnitTest.inc - FunctionWatchdogUnitTest.inc in coder_sniffer/
Drupal/ Test/ Semantics/ FunctionWatchdogUnitTest.inc
File
- coder_sniffer/
Drupal/ Test/ Arrays/ disallow_long_array_d7/ DisallowLongArraySyntaxUnitTest.1.inc, line 11 - Long array syntax is allowed in Drupal 7 code.
Code
function test() {
return array();
}