Completed
Pull Request — master (#200)
by
unknown
18:52
created
lib/org/openpsa/directmarketing/campaign/member.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
             return;
152 152
         }
153 153
         foreach ($parameters as $param_data) {
154
-            if (   empty($param_data['domain'])
154
+            if (empty($param_data['domain'])
155 155
                 || empty($param_data['name'])
156 156
                 || empty($param_data['value'])) {
157 157
                 // TODO: Log warning
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/handler/message/compose.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         //Substyle handling
61
-        if (   !empty($data['message_array']['substyle'])
61
+        if (!empty($data['message_array']['substyle'])
62 62
             && !preg_match('/^builtin:/', $data['message_array']['substyle'])) {
63 63
             debug_add("Appending substyle {$data['message_array']['substyle']}");
64 64
             midcom::get()->style->append_substyle($data['message_array']['substyle']);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     private function _real_show_compose($handler_id, array &$data)
118 118
     {
119 119
         $prefix = '';
120
-        if (   !empty($data['message_array']['substyle'])
120
+        if (!empty($data['message_array']['substyle'])
121 121
             && preg_match('/^builtin:(.*)/', $data['message_array']['substyle'], $matches_style)) {
122 122
             $prefix = $matches_style[1] . '-';
123 123
         }
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/link/log.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         if (!$this->timestamp) {
25 25
             $this->timestamp = time();
26 26
         }
27
-        if (   !$this->referrer
27
+        if (!$this->referrer
28 28
             && !empty($_SERVER['HTTP_REFERER'])) {
29 29
             $this->referrer = $_SERVER['HTTP_REFERER'];
30 30
         }
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/exec/cleanup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     echo "            <th>{$type}</th>\n";
35 35
     echo "            <td style=\"text-align: right;\">" . number_format($count) . "</td>\n";
36 36
     if (isset($cleanups_kept[$type])) {
37
-        echo "            <td style=\"text-align: right;\">" . number_format($cleanups_kept[$type]) ."</td>\n";
37
+        echo "            <td style=\"text-align: right;\">" . number_format($cleanups_kept[$type]) . "</td>\n";
38 38
     }
39 39
     echo "        </tr>\n";
40 40
 }
Please login to merge, or discard this patch.
src/midcom/workflow/dialog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $button_config[MIDCOM_TOOLBAR_URL] = $url;
74 74
         //The constants are numeric, so array_merge won't work...
75 75
         foreach ($options as $key => $value) {
76
-            if (   is_array($value)
76
+            if (is_array($value)
77 77
                 && !empty($button_config[$key])) {
78 78
                 $value = array_merge($button_config[$key], $value);
79 79
             }
Please login to merge, or discard this patch.
lib/org/openpsa/mail/exec/test-html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 midcom::get()->auth->require_admin_user();
3 3
 
4
-if (   empty($_POST['to'])
4
+if (empty($_POST['to'])
5 5
     || empty($_POST['from'])) {
6 6
     ?>
7 7
     <h2>Send test email</h2>
Please login to merge, or discard this patch.
web/rootfile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     include dirname(__DIR__) . '/config-default.inc.php';
24 24
 }
25 25
 
26
-if (! defined('MIDCOM_STATIC_URL')) {
26
+if (!defined('MIDCOM_STATIC_URL')) {
27 27
     define('MIDCOM_STATIC_URL', '/midcom-static');
28 28
 }
29 29
 
Please login to merge, or discard this patch.
lib/net/nehmer/blog/handler/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $data['page_title'] = $this->_topic->extra;
63 63
 
64 64
         // Filter by categories
65
-        if (   $handler_id == 'index-category'
65
+        if ($handler_id == 'index-category'
66 66
             || $handler_id == 'latest-category') {
67 67
             $data['category'] = trim(strip_tags($args[0]));
68 68
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         midcom::get()->head->set_pagetitle($this->_request_data['page_title']);
112 112
 
113 113
         // Activate correct leaf
114
-        if (   $this->_config->get('show_navigation_pseudo_leaves')
114
+        if ($this->_config->get('show_navigation_pseudo_leaves')
115 115
             && in_array($this->_request_data['category'], $this->_request_data['categories'])) {
116 116
             $this->set_active_leaf($this->_topic->id . '_CAT_' . $this->_request_data['category']);
117 117
         }
Please login to merge, or discard this patch.
lib/midcom/core/query.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
     protected function _add_visibility_checks()
130 130
     {
131
-        if (   $this->hide_invisible
131
+        if ($this->hide_invisible
132 132
             && !$this->_visibility_checks_added) {
133 133
             if (!midcom::get()->config->get('show_hidden_objects')) {
134 134
                 $this->add_constraint('metadata.hidden', '=', false);
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         // Deal with empty arrays, which would produce invalid queries
195 195
         // This is done here to avoid repetitive code in callers, and because
196 196
         // it's easy enough to generalize: IN empty set => always false, NOT IN empty set => always true
197
-        if (   is_array($value)
197
+        if (is_array($value)
198 198
             && empty($value)) {
199 199
             if ($operator == 'NOT IN') {
200 200
                 return true;
Please login to merge, or discard this patch.