Passed
Push — master ( 60b08e...c7a1b0 )
by Andreas
38:07 queued 12:24
created
lib/org/openpsa/invoices/billing/data.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,8 @@  discard block
 block discarded – undo
96 96
             // if the property useContactAddress is set
97 97
             $billing_data[0]->set_address();
98 98
             return $billing_data[0];
99
-        } catch (midcom_error $e) {
99
+        }
100
+        catch (midcom_error $e) {
100 101
             $e->log();
101 102
             return null;
102 103
         }
@@ -141,10 +142,12 @@  discard block
 block discarded – undo
141 142
     {
142 143
         try {
143 144
             return new org_openpsa_contacts_person_dba($this->linkGuid);
144
-        } catch (midcom_error $e) {
145
+        }
146
+        catch (midcom_error $e) {
145 147
             try {
146 148
                 return new org_openpsa_contacts_group_dba($this->linkGuid);
147
-            } catch (midcom_error $e) {
149
+            }
150
+            catch (midcom_error $e) {
148 151
                 debug_add("Failed to load contact with GUID: " . $this->linkGuid . " - last error:" . $e->getMessage(), MIDCOM_LOG_ERROR);
149 152
                 return false;
150 153
             }
Please login to merge, or discard this patch.
lib/midcom/core/dbaobject.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,8 @@
 block discarded – undo
102 102
             try {
103 103
                 $mgdschemaclass = $this->__mgdschema_class_name__;
104 104
                 $this->set_object(new $mgdschemaclass($id));
105
-            } catch (mgd_exception $e) {
105
+            }
106
+            catch (mgd_exception $e) {
106 107
                 debug_add('Constructing ' . $this->__mgdschema_class_name__ . ' object ' . $id . ' failed, reason: ' . $e->getMessage(), MIDCOM_LOG_WARN);
107 108
                 throw new midcom_error_midgard($e, $id);
108 109
             }
Please login to merge, or discard this patch.
lib/midcom/services/indexer/document.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -579,7 +579,8 @@
 block discarded – undo
579 579
     {
580 580
         try {
581 581
             return midcom_db_person::get_cached($guid);
582
-        } catch (midcom_error $e) {
582
+        }
583
+        catch (midcom_error $e) {
583 584
             return null;
584 585
         }
585 586
     }
Please login to merge, or discard this patch.
src/midcom/datamanager/storage/blobs.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@  discard block
 block discarded – undo
40 40
         foreach ($items as $identifier => $guid) {
41 41
             try {
42 42
                 $results[$identifier] = new midcom_db_attachment($guid);
43
-            } catch (midcom_error $e) {
43
+            }
44
+            catch (midcom_error $e) {
44 45
                 $e->log();
45 46
             }
46 47
         }
@@ -193,7 +194,8 @@  discard block
 block discarded – undo
193 194
         foreach (self::load_map($object, $field) as $identifier => $guid) {
194 195
             try {
195 196
                 $attachments[$identifier] = midcom_db_attachment::get_cached($guid);
196
-            } catch (midcom_error $e) {
197
+            }
198
+            catch (midcom_error $e) {
197 199
                 $e->log();
198 200
             }
199 201
         }
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
@@ -56,7 +56,8 @@  discard block
 block discarded – undo
56 56
         try {
57 57
             midcom::get()->dynamic_load($batch_url);
58 58
             $ret = true;
59
-        } catch (midcom_error $e) {
59
+        }
60
+        catch (midcom_error $e) {
60 61
             $ret = $e->getMessage();
61 62
         }
62 63
         ob_end_clean();
@@ -83,7 +84,8 @@  discard block
 block discarded – undo
83 84
         $stat = true;
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
             $stat = false;
89 91
         }
Please login to merge, or discard this patch.
lib/org/openpsa/mail/backend.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,8 @@  discard block
 block discarded – undo
45 45
                     $object = self::_load_backend($backend, $params);
46 46
                     debug_add('Using backend ' . $backend);
47 47
                     return $object;
48
-                } catch (midcom_error $e) {
48
+                }
49
+                catch (midcom_error $e) {
49 50
                     debug_add('Failed to load backend ' . $backend . ', message:' . $e->getMessage());
50 51
                 }
51 52
             }
@@ -80,7 +81,8 @@  discard block
 block discarded – undo
80 81
             $ret = $this->mail($message);
81 82
             $this->error = null;
82 83
             return $ret;
83
-        } catch (Exception $e) {
84
+        }
85
+        catch (Exception $e) {
84 86
             $this->error = $e->getMessage();
85 87
             return false;
86 88
         }
Please login to merge, or discard this patch.
src/midcom/console/command/cacheinvalidate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@
 block discarded – undo
33 33
     {
34 34
         try {
35 35
             midcom::get()->cache->invalidate_all();
36
-        } catch (\Throwable $e) {
36
+        }
37
+        catch (\Throwable $e) {
37 38
             $output->writeln($e->getMessage());
38 39
         }
39 40
         $fs = new Filesystem;
Please login to merge, or discard this patch.
src/midcom/datamanager/extension/type/autocompleteType.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,8 @@
 block discarded – undo
116 116
                 try {
117 117
                     $object = $options['widget_config']['class']::get_cached($identifier);
118 118
                     $preset[$identifier] = autocomplete_helper::create_item_label($object, $options['widget_config']['result_headers'], $options['widget_config']['titlefield']);
119
-                } catch (midcom_error $e) {
119
+                }
120
+                catch (midcom_error $e) {
120 121
                     $e->log();
121 122
                 }
122 123
             }
Please login to merge, or discard this patch.
lib/midcom/core/dbaproxy.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,8 @@
 block discarded – undo
64 64
         try {
65 65
             $this->__object = $this->__midcom_class_name__::get_cached($this->__identifier);
66 66
             return true;
67
-        } catch (midcom_error $e) {
67
+        }
68
+        catch (midcom_error $e) {
68 69
             $e->log();
69 70
         }
70 71
         return false;
Please login to merge, or discard this patch.