function test3 in Coder 8.3.x
Same name in this branch
- 8.3.x tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test3()
- 8.3.x tests/DrupalPractice/good/good.php \test3()
- 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test3()
- 8.3.x tests/Drupal/WhiteSpace/ScopeClosingBraceUnitTest.inc \test3()
- 8.3.x tests/Drupal/bad/bad.php \test3()
- 8.3.x tests/DrupalPractice/Objects/drupal8/example.module \test3()
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/CodeAnalysis/VariableAnalysisUnitTest.inc \test3()
- 8.3 tests/DrupalPractice/good/good.php \test3()
- 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test3()
- 8.3 tests/Drupal/WhiteSpace/ScopeClosingBraceUnitTest.inc \test3()
- 8.3 tests/Drupal/bad/bad.php \test3()
- 8.3 tests/DrupalPractice/Objects/drupal8/example.module \test3()
- 8.2 coder_sniffer/DrupalPractice/Test/CodeAnalysis/VariableAnalysisUnitTest.inc \test3()
- 8.2 coder_sniffer/DrupalPractice/Test/good/good.php \test3()
- 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \test3()
- 8.2 coder_sniffer/Drupal/Test/bad/bad.php \test3()
- 8.2 coder_sniffer/Drupal/Test/good/good.php \test3()
- 7.2 coder_sniffer/Test/bad/bad.php \test3()
- 7.2 coder_sniffer/Test/good/good.php \test3()
File
- tests/
DrupalPractice/ CodeAnalysis/ VariableAnalysisUnitTest.inc, line 16
Code
function test3() {
global $test;
$x = 5;
if ($x == 5) {
$x = 123;
}
return $x;
}