Passed
Pull Request — master (#2712)
by Christian
13:50 queued 06:33
created
sites/default/boinc/modules/contrib/views/views_export/views_export.module 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@  discard block
 block discarded – undo
72 72
       $output = $form_state['output'];
73 73
     }
74 74
     return $output;
75
-  }
76
-  else {
75
+  } else {
77 76
     return t('There are no views to be exported at this time.');
78 77
   }
79 78
 }
@@ -165,8 +164,7 @@  discard block
 block discarded – undo
165 164
   $tags = $form_state['values']['tags'];
166 165
   if ($tags) {
167 166
     drupal_goto('admin/build/views/tools/export', array('tags' => implode(',', $tags)));
168
-  }
169
-  else {
167
+  } else {
170 168
     drupal_goto('admin/build/views/tools/export');
171 169
   }
172 170
 }
Please login to merge, or discard this patch.
modules/contrib/views/modules/contact/views_handler_field_contact_link.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
 
63 63
     if ($this->options['link_display'] == 'icon') {
64 64
       return l(theme('image', 'misc/forum-new.png'), 'user/'. $account->uid .'/contact', array('html' => TRUE, 'attributes' => array('title' => t('Contact %user', array('%user' => $account->name)))));
65
-    }
66
-    else {
65
+    } else {
67 66
       return l($this->options['text'], 'user/'. $account->uid .'/contact', array('attributes' => array('title' => t('Contact %user', array('%user' => $account->name)))));
68 67
     }
69 68
   }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/views/modules/taxonomy.views.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -485,8 +485,7 @@
 block discarded – undo
485 485
     }
486 486
     if ($argument->options['use_taxonomy_term_path']) {
487 487
       $path = taxonomy_term_path($parent);
488
-    }
489
-    else {
488
+    } else {
490 489
       $args[$argument->position] = $parent->tid;
491 490
       $path = $argument->view->get_url($args);
492 491
     }
Please login to merge, or discard this patch.
modules/contrib/views/modules/node/views_handler_argument_node_type.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
     $output = node_get_types('name', $type);
28 28
     if (empty($output)) {
29 29
       return t('Unknown node type');
30
-    }
31
-    else {
30
+    } else {
32 31
       return check_plain(t($output));
33 32
     }
34 33
   }
Please login to merge, or discard this patch.
contrib/views/modules/node/views_handler_filter_history_user_timestamp.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
     if (!empty($form_state['exposed'])) {
18 18
       if (isset($this->options['expose']['label'])) {
19 19
         $label = $this->options['expose']['label'];
20
-      }
21
-      else {
20
+      } else {
22 21
         $label = t('Has new content');
23 22
       }
24 23
       $form['value'] = array(
Please login to merge, or discard this patch.
boinc/modules/contrib/views/modules/node/views_handler_field_node.inc 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,13 +54,11 @@
 block discarded – undo
54 54
           $languages = language_list();
55 55
           if (isset($languages[$values->{$this->aliases['language']}])) {
56 56
             $this->options['alter']['language'] = $languages[$values->{$this->aliases['language']}];
57
-          }
58
-          else {
57
+          } else {
59 58
             unset($this->options['alter']['language']);
60 59
           }
61 60
         }
62
-      }
63
-      else {
61
+      } else {
64 62
         $this->options['alter']['make_link'] = FALSE;
65 63
       } 
66 64
     }
Please login to merge, or discard this patch.
boinc/modules/contrib/views/modules/node/views_plugin_row_node_view.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
           $options[$key] = $value['title'];
46 46
         }
47 47
       }
48
-    }
49
-    else {
48
+    } else {
50 49
       $options = array(
51 50
         'teaser' => t('Teaser'),
52 51
         'full' => t('Full node')
Please login to merge, or discard this patch.
boinc/modules/contrib/views/modules/node/views_plugin_row_node_rss.inc 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@  discard block
 block discarded – undo
65 65
       // Filter and prepare node teaser
66 66
       if (node_hook($node, 'view')) {
67 67
         $node = node_invoke($node, 'view', $teaser, FALSE);
68
-      }
69
-      else {
68
+      } else {
70 69
         $node = node_prepare($node, $teaser);
71 70
       }
72 71
 
@@ -80,8 +79,7 @@  discard block
 block discarded – undo
80 79
     if ($teaser) {
81 80
       $node->teaser = $content;
82 81
       unset($node->body);
83
-    }
84
-    else {
82
+    } else {
85 83
       $node->body = $content;
86 84
       unset($node->teaser);
87 85
     }
Please login to merge, or discard this patch.
modules/contrib/views/modules/node/views_handler_field_node_revision.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
           $this->options['alter']['language'] = $languages[$values->{$this->aliases['language']}];
50 50
         }
51 51
       }
52
-    }
53
-    else {
52
+    } else {
54 53
       return parent::render_link($data, $values);
55 54
     }
56 55
     return $data;
Please login to merge, or discard this patch.