Passed
Branch master (f83f0c)
by Andreas
17:25
created
lib/midcom/core/privilege.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,8 @@
 block discarded – undo
145 145
         if (is_null($this->__cached_object)) {
146 146
             try {
147 147
                 $this->__cached_object = midcom::get()->dbfactory->get_object_by_guid($this->objectguid);
148
-            } catch (midcom_error $e) {
148
+            }
149
+            catch (midcom_error $e) {
149 150
                 return false;
150 151
             }
151 152
         }
Please login to merge, or discard this patch.
lib/midcom/core/context.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,8 @@
 block discarded – undo
181 181
         } else {
182 182
             try {
183 183
                 $root_node = midcom_db_topic::get_cached($guid);
184
-            } catch (midcom_error $e) {
184
+            }
185
+            catch (midcom_error $e) {
185 186
                 if ($e instanceof midcom_error_forbidden) {
186 187
                     throw $e;
187 188
                 }
Please login to merge, or discard this patch.
lib/midgard/admin/asgard/toolbar.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,8 @@
 block discarded – undo
117 117
                                 }
118 118
                                 break;
119 119
                         }
120
-                    } catch (midcom_error $e) {
120
+                    }
121
+                    catch (midcom_error $e) {
121 122
                         $e->log();
122 123
                     }
123 124
                 }
Please login to merge, or discard this patch.
lib/midgard/admin/user/handler/list.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,8 @@
 block discarded – undo
217 217
 
218 218
         try {
219 219
             $account = new midcom_core_account($person);
220
-        } catch (midcom_error $e) {
220
+        }
221
+        catch (midcom_error $e) {
221 222
             midcom::get()->uimessages->add($this->_l10n->get('midgard.admin.user'), sprintf($this->_l10n->get('failed to get the user with id %s'), $person->id), 'error');
222 223
             return;
223 224
         }
Please login to merge, or discard this patch.
lib/org/openpsa/projects/workflow.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -356,7 +356,8 @@
 block discarded – undo
356 356
                 // The agreement allows invoicing only approved hours, therefore don't mark unapproved
357 357
                 $qb->add_constraint('metadata.isapproved', '=', true);
358 358
             }
359
-        } catch (midcom_error $e) {
359
+        }
360
+        catch (midcom_error $e) {
360 361
             $e->log();
361 362
         }
362 363
 
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
@@ -426,7 +426,8 @@  discard block
 block discarded – undo
426 426
             $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
427 427
             $ret['project'] = '<a href="' . $prefix . 'project/' . $project->guid . '/">' . $project->title . '</a>';
428 428
             $ret['index_project'] = $project->title;
429
-        } catch (midcom_error $e) {
429
+        }
430
+        catch (midcom_error $e) {
430 431
             $e->log();
431 432
         }
432 433
 
@@ -437,7 +438,8 @@  discard block
 block discarded – undo
437 438
                 $customer_url = "{$this->_request_data['contacts_url']}group/{$customer->guid}/";
438 439
                 $ret['customer'] = "<a href='{$customer_url}' title='{$customer->official}'>{$customer->get_label()}</a>";
439 440
                 $ret['index_customer'] = $customer->name;
440
-            } catch (midcom_error $e) {
441
+            }
442
+            catch (midcom_error $e) {
441 443
                 $ret['customer'] = '';
442 444
                 $ret['index_customer'] = '';
443 445
             }
Please login to merge, or discard this patch.
lib/org/openpsa/relatedto/handler/journal/list.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,8 @@
 block discarded – undo
171 171
                 //create reflector with linked object to get the right label
172 172
                 try {
173 173
                     $linked_object = midcom::get()->dbfactory->get_object_by_guid($entry->linkGuid);
174
-                } catch (midcom_error $e) {
174
+                }
175
+                catch (midcom_error $e) {
175 176
                     unset($data['entries'][$i]);
176 177
                     $e->log();
177 178
                     continue;
Please login to merge, or discard this patch.
lib/org/openpsa/mypage/handler/workingon.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,8 @@
 block discarded – undo
92 92
                         $customer = new org_openpsa_contacts_group_dba($customer_id);
93 93
                         $customer_label = $customer->official;
94 94
                         $customer = $customer_id;
95
-                    } catch (midcom_error $e) {
95
+                    }
96
+                    catch (midcom_error $e) {
96 97
                     }
97 98
                 }
98 99
             }
Please login to merge, or discard this patch.
lib/org/openpsa/httplib/main.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,8 @@
 block discarded – undo
129 129
 
130 130
         try {
131 131
             $response = $browser->send($request);
132
-        } catch (Exception $e) {
132
+        }
133
+        catch (Exception $e) {
133 134
             $this->error = $e->getMessage();
134 135
             debug_add("Got error '{$this->error}' from HTTP request", MIDCOM_LOG_INFO);
135 136
             return false;
Please login to merge, or discard this patch.