function test4 in Coder 8.3
Same name in this branch
Same name and namespace in other branches
- 8.2 coder_sniffer/DrupalPractice/Test/good/good.php \test4()
- 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \test4()
- 8.2 coder_sniffer/Drupal/Test/bad/bad.php \test4()
- 8.2 coder_sniffer/Drupal/Test/good/good.php \test4()
- 7.2 coder_sniffer/Test/bad/bad.php \test4()
- 8.3.x tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test4()
- 8.3.x tests/DrupalPractice/good/good.php \test4()
- 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test4()
- 8.3.x tests/Drupal/bad/bad.php \test4()
- 8.3.x tests/DrupalPractice/Objects/drupal8/example.module \test4()
File
- tests/
DrupalPractice/ CodeAnalysis/ VariableAnalysisUnitTest.inc, line 25
Code
function test4() {
return new Foo(function () {
$metatags = [];
foreach ([
1,
2,
] as $u) {
$metatags[] = $u;
}
return $metatags;
});
}