@@ -32,8 +32,7 @@ |
||
| 32 | 32 | // Create a MigrateSource object. |
| 33 | 33 | if (isset($arguments['path'])) { |
| 34 | 34 | $import_path = $arguments['path']; |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
| 38 | 37 | } |
| 39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -63,8 +63,7 @@ |
||
| 63 | 63 | 'title' => render($form['actions'][$key]), |
| 64 | 64 | 'html' => TRUE |
| 65 | 65 | ); |
| 66 | - } |
|
| 67 | - else { |
|
| 66 | + } else { |
|
| 68 | 67 | $button_1[$key] = array( |
| 69 | 68 | 'title' => render($form['actions'][$key]), |
| 70 | 69 | 'html' => TRUE |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | </div> |
| 38 | 38 | </div> |
| 39 | 39 | '; |
| 40 | - } |
|
| 41 | - else { |
|
| 40 | + } else { |
|
| 42 | 41 | $block['content'] = ' |
| 43 | 42 | <div class="user-header-block"> |
| 44 | 43 | <div class="uh-container"> |
@@ -111,8 +111,12 @@ discard block |
||
| 111 | 111 | $modules = system_rebuild_module_data(); |
| 112 | 112 | foreach ($modules as $index => $module) { |
| 113 | 113 | // Process only modules that are Scenarios and are not enabled. |
| 114 | - if ($module->info['package'] != 'Demo Framework Scenarios') continue; |
|
| 115 | - if ($module->status) continue; |
|
| 114 | + if ($module->info['package'] != 'Demo Framework Scenarios') { |
|
| 115 | + continue; |
|
| 116 | + } |
|
| 117 | + if ($module->status) { |
|
| 118 | + continue; |
|
| 119 | + } |
|
| 116 | 120 | |
| 117 | 121 | // Functionality taken from _advanced_help_parse_ini(). |
| 118 | 122 | $module_path = drupal_get_path('module', $module->name); |
@@ -282,8 +286,7 @@ discard block |
||
| 282 | 286 | $bundle = NULL; |
| 283 | 287 | if (isset($entity->type)) { |
| 284 | 288 | $bundle = $entity->type; |
| 285 | - } |
|
| 286 | - else if (isset($entity->bundle)) { |
|
| 289 | + } else if (isset($entity->bundle)) { |
|
| 287 | 290 | $bundle = $entity->bundle; |
| 288 | 291 | } |
| 289 | 292 | $fields = array_keys(field_info_instances($type, $bundle)); |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | // This is the only block of code that differs from ctools_node_title_content_type_render |
| 66 | 66 | if (!empty($conf['link'])) { |
| 67 | 67 | $content = l($node->title, 'node/' . $node->nid, array('attributes' => array('data-quickedit-field-id' => $field_id))); |
| 68 | - } |
|
| 69 | - else { |
|
| 68 | + } else { |
|
| 70 | 69 | $content = "<div data-quickedit-field-id=\"$field_id\">" . check_plain($node->title) . '</div>'; |
| 71 | 70 | } |
| 72 | 71 | |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $dir = rtrim($dir, '/'); |
| 76 | 76 | if ($dir == 'public') { |
| 77 | 77 | $file_pattern = "[^\/]*"; // Finds anything that does not contain "/", should be fine. |
| 78 | - } |
|
| 79 | - else { |
|
| 78 | + } else { |
|
| 80 | 79 | $file_pattern = $dir ? $dir . ".+" : ".+"; |
| 81 | 80 | } |
| 82 | 81 | |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | // Create a MigrateSource object. |
| 35 | 35 | if (isset($arguments['path'])) { |
| 36 | 36 | $import_path = $arguments['path']; |
| 37 | - } |
|
| 38 | - else { |
|
| 37 | + } else { |
|
| 39 | 38 | $import_path = drupal_get_path('module', 'df_tools_hero') . '/import/df_tools_hero.fpp.hero.csv'; |
| 40 | 39 | } |
| 41 | 40 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |