Passed
Pull Request — master (#193)
by
unknown
20:53
created
src/midcom/datamanager/storage/mnrelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         $qb = midcom::get()->dbfactory->new_query_builder($this->config['type_config']['mapping_class_name']);
100 100
         $qb->add_constraint($this->config['type_config']['master_fieldname'], '=', $this->get_master_foreign_key());
101 101
 
102
-        if (   $this->config['type_config']['sortable']
102
+        if ($this->config['type_config']['sortable']
103 103
             && preg_match('/^(ASC|DESC)/i', $this->config['type_config']['sortable_sort_order'], $regs)) {
104 104
             $order = strtoupper($regs[1]);
105 105
             $qb->add_order('metadata.score', $order);
Please login to merge, or discard this patch.
src/midcom/datamanager/indexer/document.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $this->content .= "{$this->abstract}\n";
138 138
         }
139 139
 
140
-        if (! $this->title) {
140
+        if (!$this->title) {
141 141
             $this->title = $this->document_url;
142 142
         }
143 143
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     if (!empty($field->vars['value'])) {
179 179
                         //only index the first attachment for now
180 180
                         $attachment = array_shift($field->vars['value']);
181
-                        if (   !$attachment instanceof \midcom_db_attachment
181
+                        if (!$attachment instanceof \midcom_db_attachment
182 182
                             && !empty($attachment['object'])) {
183 183
                             //This is the form edit case
184 184
                             //@todo: In create case, nothing is found currently
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     private function resolve_auto_method($name)
264 264
     {
265
-        if (   $name == 'abstract'
265
+        if ($name == 'abstract'
266 266
             || $name == 'title'
267 267
             || $name == 'author') {
268 268
             return $name;
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/handler/logger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         $qb = org_openpsa_directmarketing_campaign_messagereceipt_dba::new_query_builder();
86 86
         $qb->add_constraint('token', '=', $token);
87 87
         $qb->add_constraint('orgOpenpsaObtype', '=', $type);
88
-        $ret =  $qb->execute();
88
+        $ret = $qb->execute();
89 89
         debug_print_r("_qb_token_receipts({$token}) returned", $ret);
90 90
         if (empty($ret)) {
91 91
             midcom::get()->auth->drop_sudo();
Please login to merge, or discard this patch.
lib/midcom/services/cache/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 
144 144
         $this->_modules[$name] = new $classname();
145 145
         $this->_modules[$name]->initialize();
146
-        $this->$name =& $this->_modules[$name];
146
+        $this->$name = & $this->_modules[$name];
147 147
         array_unshift($this->_unload_queue, $name);
148 148
     }
149 149
 
Please login to merge, or discard this patch.
lib/midcom/helper/imagepopup/handler/list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         midcom::get()->auth->require_valid_user();
37 37
         midcom::get()->skip_page_style = true;
38 38
 
39
-        $this->add_stylesheet(MIDCOM_STATIC_URL ."/midcom.helper.imagepopup/styling.css", 'screen');
39
+        $this->add_stylesheet(MIDCOM_STATIC_URL . "/midcom.helper.imagepopup/styling.css", 'screen');
40 40
 
41 41
         $data['filetype'] = $args[0];
42 42
         $data['object'] = null;
Please login to merge, or discard this patch.
lib/midcom/db/attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@
 block discarded – undo
336 336
     public function update_cache()
337 337
     {
338 338
         // Check if the attachment can be read anonymously
339
-        if (   midcom::get()->config->get('attachment_cache_enabled')
339
+        if (midcom::get()->config->get('attachment_cache_enabled')
340 340
             && !$this->can_do('midgard:read', 'EVERYONE')) {
341 341
             // Not public file, ensure it is removed
342 342
             $filename = $this->get_cache_path();
Please login to merge, or discard this patch.
lib/midcom/helper/nav/item.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,8 @@
 block discarded – undo
98 98
         }
99 99
 
100 100
         // Check the Metadata if and only if we are configured to do so.
101
-        if (   is_object($this->object)
102
-            && (   midcom::get()->config->get('show_hidden_objects') == false
101
+        if (is_object($this->object)
102
+            && (midcom::get()->config->get('show_hidden_objects') == false
103 103
                 || midcom::get()->config->get('show_unapproved_objects') == false)) {
104 104
             // Check Hiding, Scheduling and Approval
105 105
             $metadata = $this->object->metadata;
Please login to merge, or discard this patch.
lib/midcom/helper/nav/leaf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function is_readable_by($user_id)
30 30
     {
31
-        return (   empty($this->object)
31
+        return (empty($this->object)
32 32
                 || !$this->guid
33 33
                 || !$user_id
34 34
                 || midcom::get()->auth->acl->can_do_byguid('midgard:read', $this->guid, $this->object->__midcom_class_name__, $user_id));
Please login to merge, or discard this patch.
lib/net/nehmer/comments/comment.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         }
182 182
 
183 183
         // Set the status
184
-        if (   $this->can_do('net.nehmer.comments:moderation')
184
+        if ($this->can_do('net.nehmer.comments:moderation')
185 185
             && !$this->_sudo_requested) {
186 186
             $this->status = net_nehmer_comments_comment::ABUSE;
187 187
         } else {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             return false;
206 206
         }
207 207
         // Set the status
208
-        if (   !$this->can_do('net.nehmer.comments:moderation')
208
+        if (!$this->can_do('net.nehmer.comments:moderation')
209 209
             || $this->_sudo_requested) {
210 210
             return false;
211 211
         }
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         }
230 230
 
231 231
         // Set the status
232
-        if (   !$this->can_do('net.nehmer.comments:moderation')
232
+        if (!$this->can_do('net.nehmer.comments:moderation')
233 233
             || $this->_sudo_requested) {
234 234
             return false;
235 235
         }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     public function report_not_abuse()
250 250
     {
251
-        if (   !$this->can_do('net.nehmer.comments:moderation')
251
+        if (!$this->can_do('net.nehmer.comments:moderation')
252 252
             || $this->_sudo_requested) {
253 253
             return false;
254 254
         }
@@ -351,8 +351,8 @@  discard block
 block discarded – undo
351 351
     {
352 352
         $config = midcom_baseclasses_components_configuration::get('net.nehmer.comments', 'config');
353 353
 
354
-        if (   $config->get('ratings_enable')
355
-            && (    $config->get('ratings_cache_to_object')
354
+        if ($config->get('ratings_enable')
355
+            && ($config->get('ratings_cache_to_object')
356 356
                  || $config->get('comment_count_cache_to_object'))) {
357 357
             // Handle ratings
358 358
             $comments = net_nehmer_comments_comment::list_by_objectguid($this->objectguid);
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
             return false;
414 414
         }
415 415
 
416
-        if (   empty($this->title)
416
+        if (empty($this->title)
417 417
             && empty($this->content)) {
418 418
             // No need to send notifications about empty rating entries
419 419
             return false;
Please login to merge, or discard this patch.