You are here

function test19 in Coder 8.2

Same name in this branch
  1. 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \test19()
  2. 8.2 coder_sniffer/Drupal/Test/bad/bad.php \test19()
  3. 8.2 coder_sniffer/Drupal/Test/good/good.php \test19()
Same name and namespace in other branches
  1. 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test19()
  2. 8.3 tests/Drupal/bad/bad.php \test19()
  3. 7.2 coder_sniffer/Test/bad/bad.php \test19()
  4. 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test19()
  5. 8.3.x tests/Drupal/bad/bad.php \test19()

Another example of correct object operator indentation.

File

coder_sniffer/Drupal/Test/good/good.php, line 1465
This file contains all the valid notations for the drupal coding standard.

Code

function test19($key, $value, $connection) {
  $connection
    ->merge('foo')
    ->keys(array(
    'name' => $key,
    'collection' => 'collection',
  ))
    ->fields(array(
    'value' => $value,
  ))
    ->execute();
}