Test Failed
Branch master (8d1702)
by Andreas
11:03
created
lib/midcom/services/auth/sessionmgr.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,8 @@
 block discarded – undo
175 175
     {
176 176
         try {
177 177
             $session = new midcom_core_login_session_db($sessionid);
178
-        } catch (Exception $e) {
178
+        }
179
+        catch (Exception $e) {
179 180
             debug_add('Login session ' . $sessionid . ' failed to load: ' . $e->getMessage(), MIDCOM_LOG_INFO);
180 181
             return false;
181 182
         }
Please login to merge, or discard this patch.
lib/midcom/config/test.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,8 @@
 block discarded – undo
74 74
                 $config = new midcom_services_rcs_config($config);
75 75
                 $config->test_rcs_config();
76 76
                 $this->add("MidCOM RCS", self::OK);
77
-            } catch (midcom_error $e) {
77
+            }
78
+            catch (midcom_error $e) {
78 79
                 $this->add("MidCOM RCS", self::ERROR, $e->getMessage());
79 80
             }
80 81
         } else {
Please login to merge, or discard this patch.
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/handler/component/configuration.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -405,7 +405,8 @@
 block discarded – undo
405 405
 
406 406
         try {
407 407
             $this->_check_config($config);
408
-        } catch (Exception $e) {
408
+        }
409
+        catch (Exception $e) {
409 410
             midcom::get()->uimessages->add(
410 411
                 $this->_l10n_midcom->get('component configuration'),
411 412
                 sprintf($this->_l10n->get('configuration save failed: %s'), $e->getMessage()),
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/crud.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,8 @@  discard block
 block discarded – undo
121 121
                     );
122 122
                 }
123 123
 
124
-            } catch (midcom_error $e) {
124
+            }
125
+            catch (midcom_error $e) {
125 126
             }
126 127
         }
127 128
 
@@ -151,7 +152,8 @@  discard block
 block discarded – undo
151 152
             // This task is to be connected to a project
152 153
             try {
153 154
                 $this->_parent = new org_openpsa_projects_project($args[1]);
154
-            } catch (midcom_error $e) {
155
+            }
156
+            catch (midcom_error $e) {
155 157
                 return false;
156 158
             }
157 159
 
@@ -163,7 +165,8 @@  discard block
 block discarded – undo
163 165
         } elseif ($this->_mode == 'delete') {
164 166
             try {
165 167
                 $this->_parent = new org_openpsa_projects_project($this->_object->project);
166
-            } catch (midcom_error $e) {
168
+            }
169
+            catch (midcom_error $e) {
167 170
                 $e->log();
168 171
             }
169 172
         }
Please login to merge, or discard this patch.