Passed
Push — master ( 805652...eccbd5 )
by Andreas
26:13
created
lib/midcom/services/auth/main.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -575,7 +575,8 @@
 block discarded – undo
575 575
                     $param = $param->__object;
576 576
                 }
577 577
                 $this->_group_cache[$id] = new midcom_core_group($param);
578
-            } catch (midcom_error $e) {
578
+            }
579
+            catch (midcom_error $e) {
579 580
                 debug_add("Group with identifier {$id} could not be loaded: " . $e->getMessage(), MIDCOM_LOG_WARN);
580 581
                 $this->_group_cache[$id] = null;
581 582
             }
Please login to merge, or discard this patch.
lib/midcom/services/auth/backend.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,8 @@
 block discarded – undo
87 87
                     $param = $param->__object;
88 88
                 }
89 89
                 $this->_user_cache[$id] = new midcom_core_user($param);
90
-            } catch (midcom_error $e) {
90
+            }
91
+            catch (midcom_error $e) {
91 92
                 // Keep it silent while missing user object can mess here
92 93
                 $this->_user_cache[$id] = null;
93 94
             }
Please login to merge, or discard this patch.
lib/midcom/config/test.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,8 @@
 block discarded – undo
81 81
                 $class = $config->get_backend_class();
82 82
                 new $class(new midcom_db_topic, $config);
83 83
                 $this->add("MidCOM RCS", self::OK, $class);
84
-            } catch (midcom_error $e) {
84
+            }
85
+            catch (midcom_error $e) {
85 86
                 $this->add("MidCOM RCS", self::ERROR, $e->getMessage());
86 87
             }
87 88
         } else {
Please login to merge, or discard this patch.
lib/midcom/helper/_dbfactory.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,8 @@  discard block
 block discarded – undo
43 43
     {
44 44
         try {
45 45
             $tmp = midgard_object_class::get_object_by_guid($guid);
46
-        } catch (mgd_exception $e) {
46
+        }
47
+        catch (mgd_exception $e) {
47 48
             debug_add('Loading object by GUID ' . $guid . ' failed, reason: ' . $e->getMessage(), MIDCOM_LOG_INFO);
48 49
 
49 50
             throw new midcom_error_midgard($e, $guid);
@@ -163,7 +164,8 @@  discard block
 block discarded – undo
163 164
 
164 165
         try {
165 166
             return $this->get_cached($classname, $parent_guid);
166
-        } catch (midcom_error $e) {
167
+        }
168
+        catch (midcom_error $e) {
167 169
             return null;
168 170
         }
169 171
     }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/handler/person/view.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,8 @@
 block discarded – undo
192 192
         foreach ($this->$identifier as $member) {
193 193
             try {
194 194
                 $this->_request_data['group'] = org_openpsa_contacts_group_dba::get_cached($member->gid);
195
-            } catch (midcom_error $e) {
195
+            }
196
+            catch (midcom_error $e) {
196 197
                 $e->log();
197 198
                 continue;
198 199
             }
Please login to merge, or discard this patch.
lib/org/openpsa/projects/handler/task/list.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,7 +291,8 @@  discard block
 block discarded – undo
291 291
             $url = $this->router->generate('project', ['guid' => $project->guid]);
292 292
             $ret['project'] = '<a href="' . $url . '">' . $project->title . '</a>';
293 293
             $ret['index_project'] = $project->title;
294
-        } catch (midcom_error $e) {
294
+        }
295
+        catch (midcom_error $e) {
295 296
             $e->log();
296 297
         }
297 298
 
@@ -303,7 +304,8 @@  discard block
 block discarded – undo
303 304
                 $customer_url = "{$contacts_url}group/{$customer->guid}/";
304 305
                 $ret['customer'] = "<a href='{$customer_url}' title='{$customer->official}'>{$customer->get_label()}</a>";
305 306
                 $ret['index_customer'] = $customer->name;
306
-            } catch (midcom_error $e) {
307
+            }
308
+            catch (midcom_error $e) {
307 309
                 $ret['customer'] = '';
308 310
                 $ret['index_customer'] = '';
309 311
             }
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/handler/list.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,8 @@  discard block
 block discarded – undo
104 104
                 $customer = org_openpsa_contacts_group_dba::get_cached($invoice->customer);
105 105
                 $entry['customer'] = "<a href=\"{$this->router->generate('list_customer_all', ['guid' => $customer->guid])}\">" . $customer->get_label() . "</a>";
106 106
                 $entry['index_customer'] = $customer->get_label();
107
-            } catch (midcom_error $e) {
107
+            }
108
+            catch (midcom_error $e) {
108 109
                 $entry['customer'] = '';
109 110
                 $entry['index_customer'] = '';
110 111
             }
@@ -115,7 +116,8 @@  discard block
 block discarded – undo
115 116
                 $contact = org_openpsa_contacts_person_dba::get_cached($invoice->customerContact);
116 117
                 $entry['contact'] = "<a href=\"{$this->router->generate('list_customer_all', ['guid' => $contact->guid])}\">" . $contact->get_label() . "</a>";
117 118
                 $entry['index_contact'] = $contact->get_label();
118
-            } catch (midcom_error $e) {
119
+            }
120
+            catch (midcom_error $e) {
119 121
                 $entry['contact'] = '';
120 122
                 $entry['index_contact'] = '';
121 123
             }
@@ -267,7 +269,8 @@  discard block
 block discarded – undo
267 269
     {
268 270
         try {
269 271
             $this->_customer = new org_openpsa_contacts_group_dba($guid);
270
-        } catch (midcom_error $e) {
272
+        }
273
+        catch (midcom_error $e) {
271 274
             $this->_customer = new org_openpsa_contacts_person_dba($guid);
272 275
         }
273 276
         $data['customer'] = $this->_customer;
Please login to merge, or discard this patch.