Passed
Pull Request — master (#193)
by
unknown
20:53
created
lib/org/openpsa/contacts/midcom/interfaces.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,8 @@
 block discarded – undo
159 159
 
160 160
         try {
161 161
             $object = new $classname($guid);
162
-        } catch (midcom_error $e) {
162
+        }
163
+        catch (midcom_error $e) {
163 164
             $handler->print_error($type . " {$guid} not found, error " . $e->getMessage());
164 165
             return false;
165 166
         }
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
@@ -216,7 +216,8 @@
 block discarded – undo
216 216
         foreach ($this->_request_data[$identifier] as $member) {
217 217
             try {
218 218
                 $this->_request_data['group'] = org_openpsa_contacts_group_dba::get_cached($member->gid);
219
-            } catch (midcom_error $e) {
219
+            }
220
+            catch (midcom_error $e) {
220 221
                 $e->log();
221 222
                 continue;
222 223
             }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/duplicates/check.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -382,7 +382,8 @@
 block discarded – undo
382 382
             try {
383 383
                 $obj1 = $class::get_cached($arr1['guid']);
384 384
                 $obj2 = $class::get_cached($arr2['guid']);
385
-            } catch (midcom_error $e) {
385
+            }
386
+            catch (midcom_error $e) {
386 387
                 $e->log();
387 388
                 continue;
388 389
             }
Please login to merge, or discard this patch.
lib/org/openpsa/reports/handler/invoices/report.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,8 @@
 block discarded – undo
114 114
                         && $deliverable->end > $this->_request_data['start'])) {
115 115
                     $invoices = array_merge($invoices, $this->_get_invoices_for_subscription($deliverable, $at_entry));
116 116
                 }
117
-            } catch (midcom_error $e) {
117
+            }
118
+            catch (midcom_error $e) {
118 119
             }
119 120
         }
120 121
         $invoices = array_merge($invoices, $this->_get_deliverable_invoices());
Please login to merge, or discard this patch.
lib/org/openpsa/reports/handler/sales/report.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,8 @@
 block discarded – undo
71 71
             $owner = org_openpsa_contacts_person_dba::get_cached($salesproject->owner);
72 72
             $row['index_owner'] = $owner->name;
73 73
             $row['owner'] = org_openpsa_widgets_contact::get($owner->guid)->show_inline();
74
-        } catch (midcom_error $e) {
74
+        }
75
+        catch (midcom_error $e) {
75 76
             $e->log();
76 77
         }
77 78
         $row['amount'] = $object->pricePerUnit * $object->units;
Please login to merge, or discard this patch.
lib/org/openpsa/helpers/list.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@
 block discarded – undo
69 69
         if (empty(self::$_seen[$company_id])) {
70 70
             try {
71 71
                 $company = new org_openpsa_contacts_group_dba($company_id);
72
-            } catch (midcom_error $e) {
72
+            }
73
+            catch (midcom_error $e) {
73 74
                 return;
74 75
             }
75 76
             self::$_seen[$company->id] = true;
Please login to merge, or discard this patch.
lib/org/openpsa/widgets/contact.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,8 @@  discard block
 block discarded – undo
114 114
 
115 115
         try {
116 116
             $person = org_openpsa_contacts_person_dba::get_cached($src);
117
-        } catch (midcom_error $e) {
117
+        }
118
+        catch (midcom_error $e) {
118 119
             $widget = new self();
119 120
             $cache[$src] = $widget;
120 121
             return $widget;
@@ -323,7 +324,8 @@  discard block
 block discarded – undo
323 324
         foreach ($memberships as $data) {
324 325
             try {
325 326
                 $group = org_openpsa_contacts_group_dba::get_cached($data['gid']);
326
-            } catch (midcom_error $e) {
327
+            }
328
+            catch (midcom_error $e) {
327 329
                 $e->log();
328 330
                 continue;
329 331
             }
Please login to merge, or discard this patch.
lib/org/openpsa/products/handler/product/create.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,8 @@
 block discarded – undo
132 132
         } elseif ((int) $args[0] > 0) {
133 133
             try {
134 134
                 $this->parent = new org_openpsa_products_product_group_dba((int) $args[0]);
135
-            } catch (midcom_error $e) {
135
+            }
136
+            catch (midcom_error $e) {
136 137
                 $e->log();
137 138
             }
138 139
         }
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/midcom/interfaces.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,8 @@  discard block
 block discarded – undo
57 57
         try {
58 58
             midcom::get()->dynamic_load($batch_url);
59 59
             $ret = true;
60
-        } catch (midcom_error $e) {
60
+        }
61
+        catch (midcom_error $e) {
61 62
             $ret = $e->getMessage();
62 63
         }
63 64
         ob_end_clean();
@@ -83,7 +84,8 @@  discard block
 block discarded – undo
83 84
         midcom::get()->auth->request_sudo($this->_component);
84 85
         try {
85 86
             $campaign = new org_openpsa_directmarketing_campaign_dba($args['campaign_guid']);
86
-        } catch (midcom_error $e) {
87
+        }
88
+        catch (midcom_error $e) {
87 89
             $handler->print_error("{$args['campaign_guid']} is not a valid campaign GUID");
88 90
             return false;
89 91
         }
Please login to merge, or discard this patch.