Passed
Push — master ( 936202...c84ff9 )
by Andreas
09:27
created
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 ($stat instanceof midcom_services_indexer_client) {
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/org/openpsa/slideshow/handler/edit.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,8 @@
 block discarded – undo
123 123
         try {
124 124
             $this->$function($request->request, $request->files);
125 125
             $this->response['success'] = true;
126
-        } catch (midcom_error $e) {
126
+        }
127
+        catch (midcom_error $e) {
127 128
             $this->response['success'] = false;
128 129
             $this->response['error'] = $e->getMessage();
129 130
         }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/handler/group/action.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
                 $member->require_do('midgard:update');
34 34
                 $member->extra = $request->request->get('title');
35 35
                 $response['status'] = $member->update();
36
-            } catch (midcom_error $e) {
36
+            }
37
+            catch (midcom_error $e) {
37 38
                 $e->log();
38 39
             }
39 40
             $response['message'] = midcom_connection::get_error_string();
Please login to merge, or discard this patch.
lib/midcom/services/rcs/main.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@
 block discarded – undo
56 56
         try {
57 57
             $backend->update(midcom::get()->auth->user->id ?? 'NOBODY', $message);
58 58
             return true;
59
-        } catch (midcom_error $e) {
59
+        }
60
+        catch (midcom_error $e) {
60 61
             debug_add('RCS: Could not save file!');
61 62
             $e->log();
62 63
             return false;
Please login to merge, or discard this patch.
lib/midcom/services/i18n/main.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,8 @@  discard block
 block discarded – undo
155 155
     {
156 156
         try {
157 157
             Locales::getName($lang);
158
-        } catch (Exception $e) {
158
+        }
159
+        catch (Exception $e) {
159 160
             debug_add("Language {$lang} not found:" . $e->getMessage(), MIDCOM_LOG_ERROR);
160 161
             return false;
161 162
         }
@@ -236,7 +237,8 @@  discard block
 block discarded – undo
236 237
     {
237 238
         try {
238 239
             return $this->get_l10n($component)->get($stringid);
239
-        } catch (midcom_error $e) {
240
+        }
241
+        catch (midcom_error $e) {
240 242
             $e->log(MIDCOM_LOG_WARN);
241 243
             return $stringid;
242 244
         }
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
@@ -46,7 +46,8 @@  discard block
 block discarded – undo
46 46
                     $object = self::_load_backend($backend, $params);
47 47
                     debug_add('Using backend ' . $backend);
48 48
                     return $object;
49
-                } catch (midcom_error $e) {
49
+                }
50
+                catch (midcom_error $e) {
50 51
                     debug_add('Failed to load backend ' . $backend . ', message:' . $e->getMessage());
51 52
                 }
52 53
             }
@@ -76,7 +77,8 @@  discard block
 block discarded – undo
76 77
             $this->mail($message);
77 78
             $this->error = null;
78 79
             return true;
79
-        } catch (Exception $e) {
80
+        }
81
+        catch (Exception $e) {
80 82
             $this->error = $e->getMessage();
81 83
             return false;
82 84
         }
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/campaign/ruleresolver.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,8 @@  discard block
 block discarded – undo
110 110
         try {
111 111
             $this->process_classes($rules['classes'], $rules['type']);
112 112
             return true;
113
-        } catch (midcom_error $e) {
113
+        }
114
+        catch (midcom_error $e) {
114 115
             $e->log();
115 116
             return false;
116 117
         }
@@ -225,7 +226,8 @@  discard block
 block discarded – undo
225 226
             $guid = $mc_parameter->get_subkey($parameter_key, 'parentguid');
226 227
             try {
227 228
                 $parent = midcom::get()->dbfactory->get_object_by_guid($guid);
228
-            } catch (midcom_error $e) {
229
+            }
230
+            catch (midcom_error $e) {
229 231
                 $e->log();
230 232
                 continue;
231 233
             }
Please login to merge, or discard this patch.
lib/midcom/application.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,7 +161,8 @@  discard block
 block discarded – undo
161 161
             $response = $this->handle($request);
162 162
             $response->send();
163 163
             $this->terminate($request, $response);
164
-        } catch (Error $e) {
164
+        }
165
+        catch (Error $e) {
165 166
             $this->getHttpKernel()->terminateWithException($e);
166 167
         }
167 168
     }
@@ -218,11 +219,13 @@  discard block
 block discarded – undo
218 219
         $this->skip_page_style = true;
219 220
         try {
220 221
             $response = $this->handle($request, HttpKernelInterface::SUB_REQUEST, false);
221
-        } catch (midcom_error_notfound | midcom_error_forbidden $e) {
222
+        }
223
+        catch (midcom_error_notfound | midcom_error_forbidden $e) {
222 224
             $e->log();
223 225
             midcom_core_context::leave();
224 226
             return;
225
-        } finally {
227
+        }
228
+        finally {
226 229
             $this->skip_page_style = $backup;
227 230
         }
228 231
 
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
@@ -44,7 +44,8 @@
 block discarded – undo
44 44
     {
45 45
         try {
46 46
             $this->cache->invalidate_all();
47
-        } catch (\Throwable $e) {
47
+        }
48
+        catch (\Throwable $e) {
48 49
             $output->writeln($e->getMessage());
49 50
         }
50 51
 
Please login to merge, or discard this patch.