function test5 in Coder 8.3.x
Same name in this branch
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test5()
- 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test5()
- 8.3 tests/Drupal/bad/bad.php \test5()
- 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \test5()
- 8.2 coder_sniffer/Drupal/Test/bad/bad.php \test5()
- 8.2 coder_sniffer/Drupal/Test/good/good.php \test5()
- 7.2 coder_sniffer/Test/bad/bad.php \test5()
File
- tests/
DrupalPractice/ CodeAnalysis/ VariableAnalysisUnitTest.inc, line 35
Code
function test5() {
$foo = [
1,
2,
];
[
$a,
$b,
] = $foo;
$bar = [
3,
4,
];
list($x, $y) = $bar;
return [
$a,
$b,
$x,
$y,
];
}