Not a huge problem, but it does make it harder to read the code and check it:


/**
 * Implements hook_eck_bundle_info().
 */
function timetable_feature_rooms_eck_bundle_info() {
  $items = array(
  'room_room' => array(
  'machine_name' => 'room_room',
  'entity_type' => 'room',
  'name' => 'room',
  'label' => 'Room',
),
  );
  return $items;
}

/**
 * Implements hook_eck_entity_type_info().
 */
function timetable_feature_rooms_eck_entity_type_info() {
$items = array(
       'room' => array(
  'name' => 'room',
  'label' => 'Room',
  'properties' => array(
    'title' => array(
      'label' => 'Title',
      'type' => 'text',
      'behavior' => 'title',
    ),
  ),
),
  );
  return $items;
}

Comments

fmizzell’s picture

Status: Active » Fixed

I tested this, and it seems like the issue has been fixed. I ran "drush coder-review --sniffer --severity=minor created_feature" and no issues were reported.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.