Passed
Push — master ( be6fbd...8a140a )
by Andreas
24:16
created
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.
src/midcom/console/command/reindex.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,8 @@
 block discarded – undo
73 73
             if (is_a($stat, midcom_services_indexer_client::class)) {
74 74
                 try {
75 75
                     $stat->reindex();
76
-                } catch (RequestException $e) {
76
+                }
77
+                catch (RequestException $e) {
77 78
                     if ($e->hasResponse()) {
78 79
                         $crawler = new Crawler($e->getResponse()->getBody()->getContents());
79 80
                         $body = $crawler->filterXPath('//body')->html();
Please login to merge, or discard this patch.
lib/midgard/admin/asgard/style/ASGARD_ROOT.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,8 @@  discard block
 block discarded – undo
122 122
                             try {
123 123
                                 $creator = new midcom_db_person($view_metadata->get('creator'));
124 124
                                 $creator_string = "<a href=\"" . midcom_connection::get_url('self') . "__mfa/asgard/object/view/{$creator->guid}/\">$creator->name</a>";
125
-                            } catch (midcom_error $e) {
125
+                            }
126
+                            catch (midcom_error $e) {
126 127
                                 $creator_string = $l10n->get('unknown person');
127 128
                             }
128 129
                             $created = (int) $view_metadata->get('created');
@@ -135,7 +136,8 @@  discard block
 block discarded – undo
135 136
                                 try {
136 137
                                     $editor = new midcom_db_person($view_metadata->get('revisor'));
137 138
                                     $editor_string = "<a href=\"" . midcom_connection::get_url('self') . "__mfa/asgard/object/view/{$editor->guid}/\">$editor->name</a>";
138
-                                } catch (midcom_error $e) {
139
+                                }
140
+                                catch (midcom_error $e) {
139 141
                                     $editor_string = $l10n->get('unknown person');
140 142
                                 }
141 143
 
Please login to merge, or discard this patch.
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.