@@ -151,7 +151,7 @@ |
||
| 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 |
@@ -58,7 +58,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -24,7 +24,7 @@ |
||
| 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 | } |
@@ -34,7 +34,7 @@ |
||
| 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 | } |
@@ -73,7 +73,7 @@ |
||
| 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 | } |
@@ -1,7 +1,7 @@ |
||
| 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> |
@@ -23,7 +23,7 @@ |
||
| 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 | |
@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 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 |
||
| 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; |