Commit 2359a830 authored by Ra Mänd's avatar Ra Mänd
Browse files

Remove redundant parentheses.

parent 77f3d701
......@@ -40,7 +40,7 @@ function field_collection_field_render_revision($item, $context) {
$field_context['custom_settings'] = FALSE;
}
$view_mode_settings = field_view_mode_settings($entity_type, $bundle_name);
$actual_mode = (!empty($view_mode_settings[$view_mode]['custom_settings'])) ? $view_mode : 'default';
$actual_mode = !empty($view_mode_settings[$view_mode]['custom_settings']) ? $view_mode : 'default';
if (!isset($field_context['custom_settings'])) {
$field_context['custom_settings'] = $actual_mode && $actual_mode == $view_mode;
}
......
......@@ -1553,7 +1553,7 @@ function field_collection_field_get_entity(&$item, $field_name = NULL) {
// If $item contains more thing than 'entity', then it is sent from VBO.
// We clone the object to avoid that the same field collection item of the
// faked object is attached to multiple host objects.
return clone($item['entity']);
return clone $item['entity'];
}
return $item['entity'];
}
......@@ -2104,7 +2104,7 @@ function field_collection_feeds_processor_targets_alter(&$targets, $entity_type,
$files = drupal_system_listing('/.*\.inc$/', $path, 'name', 0);
foreach ($files as $file) {
if (strpos($file->uri, '/mappers/') !== FALSE) {
require_once (DRUPAL_ROOT . '/' . $file->uri);
require_once DRUPAL_ROOT . '/' . $file->uri;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment