Completed
Branch master (4f76a2)
by Andreas
22:32
created
lib/org/openpsa/httplib/exec/test_post.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 } else {
19 19
     $client = new org_openpsa_httplib();
20
-    if (   !empty($_REQUEST['username'])
20
+    if (!empty($_REQUEST['username'])
21 21
         && !empty($_REQUEST['password'])) {
22 22
         $client->basicauth['user'] = $_REQUEST['username'];
23 23
         $client->basicauth['password'] = $_REQUEST['password'];
Please login to merge, or discard this patch.
lib/org/openpsa/mail/exec/test.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.
lib/org/openpsa/mail/template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         foreach ($this->_parameters as $key => $value) {
112 112
             $this->_patterns[] = "/__({$key})__/";
113 113
 
114
-            if (   is_array($value)
114
+            if (is_array($value)
115 115
                 || is_object($value)) {
116 116
                 $this->_patterns[] = "/__({$key})_([^ \.>\"-]*?)__/";
117 117
             }
Please login to merge, or discard this patch.
lib/org/openpsa/products/midcom/interfaces.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function _on_reindex($topic, $config, &$indexer)
52 52
     {
53
-        if (   !$config->get('index_products')
53
+        if (!$config->get('index_products')
54 54
             && !$config->get('index_groups')) {
55 55
             debug_add("No indexing to groups and products, skipping", MIDCOM_LOG_WARN);
56 56
             return true;
Please login to merge, or discard this patch.
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.