Passed
Push — master ( fdb4d9...be4646 )
by Michael
33s queued 11s
created
class/plugins/plugin.tag.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@  discard block
 block discarded – undo
69 69
                . "                FROM {$itemHandler->table} "
70 70
                . "                WHERE {$itemHandler->table}.photo_approved > 0"
71 71
                . '            ) '
72
-               . '        )'; else:
72
+               . '        )'; else {
73
+                   :
73 74
         $sql = "    DELETE {$linkHandler->table} FROM {$linkHandler->table}"
74 75
                . "    LEFT JOIN {$itemHandler->table} AS aa ON {$linkHandler->table}.tag_itemid = aa.{$itemHandler->keyName} "
75 76
                . '    WHERE '
@@ -78,6 +79,7 @@  discard block
 block discarded – undo
78 79
                . "        ( aa.{$itemHandler->keyName} IS NULL"
79 80
                . '            OR aa.photo_approved < 1'
80 81
                . '        )';
82
+               }
81 83
     endif;
82 84
     if (!$result = $linkHandler->db->queryF($sql)) {
83 85
         //xoops_error($linkHandler->db->error());
Please login to merge, or discard this patch.
magnific_popup/drupal/magnific_popup/includes/magnific_popup.formatters.inc 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@  discard block
 block discarded – undo
110 110
         if (empty($wrappers[$scheme])) {
111 111
           // Create a new wrapper.
112 112
           $wrappers[$scheme] = file_stream_wrapper_get_instance_by_uri($item['uri']);
113
-        }
114
-        else {
113
+        } else {
115 114
           // Attempt to re-use an existing wrapper.
116 115
           $wrappers[$scheme]->setUri($item['uri']);
117 116
         }
@@ -208,8 +207,7 @@  discard block
 block discarded – undo
208 207
     'mfp-nogallery' : 'mfp-gallery';
209 208
   if ('image' === $field['type']) {
210 209
     $gallery_base_class .= '-image';
211
-  }
212
-  else {
210
+  } else {
213 211
     $gallery_base_class .= '-iframe';
214 212
   }
215 213
   $popup_gallery['#attributes']['class'][] = $gallery_base_class;
@@ -243,8 +241,7 @@  discard block
 block discarded – undo
243 241
         )
244 242
       );
245 243
       $popup_gallery['item-' . $delta]['#text'] = render($image);
246
-    }
247
-    else {
244
+    } else {
248 245
       $popup_gallery['item-' . $delta]['#options']['attributes']['style'][] = 'display: none;';
249 246
     }
250 247
   }
Please login to merge, or discard this patch.
public-sendecard.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,9 @@
 block discarded – undo
23 23
 
24 24
 if (\Xmf\Request::hasVar('id', 'GET')) {
25 25
  $photoId = \Xmf\Request::getInt('id', 0, 'GET');
26
-} else$photoId = \Xmf\Request::getInt('photo_id', 0, 'POST');
26
+} else {
27
+    $photoId = \Xmf\Request::getInt('photo_id', 0, 'POST');
28
+}
27 29
 if (isset($_POST['step'])) {
28 30
     $step = $_POST['step'];
29 31
 } else {
Please login to merge, or discard this patch.