You are here

ScopeClosingBraceUnitTest.inc in Coder 8.3

Same filename and directory in other branches
  1. 8.3.x tests/Drupal/WhiteSpace/ScopeClosingBraceUnitTest.inc

Test file.

File

tests/Drupal/WhiteSpace/ScopeClosingBraceUnitTest.inc
View source
<?php

/**
 * @file
 * Test file.
 */

/**
 * ScopeIndentSniff already handles this correctly.
 */
function example_entity_info_alter(&$entity_info) {
  $entity_info['node']['view modes']['new_display_machine_name'] = array(
    'label' => t('New Display Name'),
    'custom settings' => '',
  );
}

/**
 * Closing brace not aligned correctly.
 */
function test2() {
  return 5;
}

/**
 * Closing brace not on line by itself.
 */
function test3() {
  return 7;
}

Functions

Namesort descending Description
example_entity_info_alter ScopeIndentSniff already handles this correctly.
test2 Closing brace not aligned correctly.
test3 Closing brace not on line by itself.