Passed
Pull Request — master (#193)
by
unknown
20:53
created
lib/org/openpsa/projects/task/status.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,8 @@
 block discarded – undo
91 91
                 if ($recipient->guid == $this->metadata->creator) {
92 92
                     return org_openpsa_projects_workflow::accept($task, 0, $this->comment);
93 93
                 }
94
-            } catch (midcom_error $e) {
94
+            }
95
+            catch (midcom_error $e) {
95 96
                 $e->log();
96 97
             }
97 98
         }
Please login to merge, or discard this patch.
lib/org/openpsa/projects/midcom/interfaces.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,8 @@
 block discarded – undo
124 124
     {
125 125
         try {
126 126
             $task = new org_openpsa_projects_task_dba($args['task']);
127
-        } catch (midcom_error $e) {
127
+        }
128
+        catch (midcom_error $e) {
128 129
             $e->log();
129 130
             return false;
130 131
         }
Please login to merge, or discard this patch.
lib/org/openpsa/projects/projectbroker.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
             if (!$obj instanceof org_openpsa_contacts_person_dba) {
45 45
                 try {
46 46
                     $obj = new org_openpsa_contacts_person_dba($obj->id);
47
-                } catch (midcom_error $e) {
47
+                }
48
+                catch (midcom_error $e) {
48 49
                     $e->log();
49 50
                     continue;
50 51
                 }
Please login to merge, or discard this patch.
lib/midcom/db/member.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
         try {
24 24
             $person = new midcom_db_person($this->uid);
25 25
             $grp = new midcom_db_group($this->gid);
26
-        } catch (midcom_error $e) {
26
+        }
27
+        catch (midcom_error $e) {
27 28
             $e->log();
28 29
             return 'Invalid membership record';
29 30
         }
@@ -40,7 +41,8 @@  discard block
 block discarded – undo
40 41
         }
41 42
         try {
42 43
             $person = new midcom_db_person($this->uid);
43
-        } catch (midcom_error $e) {
44
+        }
45
+        catch (midcom_error $e) {
44 46
             return;
45 47
         }
46 48
         midcom::get()->cache->invalidate($person->guid);
Please login to merge, or discard this patch.
lib/midcom/helper/toolbar/node.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,8 @@
 block discarded – undo
88 88
                         $style = midcom_db_style::get_cached($style_id);
89 89
                         $styleeditor_url = midcom_connection::get_url('self') . "__mfa/asgard/object/view/{$style->guid}/";
90 90
                         $enabled = true;
91
-                    } catch (midcom_error $e) {
91
+                    }
92
+                    catch (midcom_error $e) {
92 93
                         $e->log();
93 94
                     }
94 95
                 }
Please login to merge, or discard this patch.
lib/midcom/baseclasses/components/configuration.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,8 @@
 block discarded – undo
143 143
 
144 144
         try {
145 145
             $data = file_get_contents($filename);
146
-        } catch (Exception $e) {
146
+        }
147
+        catch (Exception $e) {
147 148
             return false;
148 149
         }
149 150
 
Please login to merge, or discard this patch.
lib/midcom/style/midcom_helper_datamanager2_unlock.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,8 @@
 block discarded – undo
4 4
 try {
5 5
     $person = new midcom_db_person($metadata->locker);
6 6
     $name = $person->name;
7
-} catch (midcom_error $e) {
7
+}
8
+catch (midcom_error $e) {
8 9
     $name = $this->data['handler']->_l10n_midcom->get('unknown user');
9 10
     $e->log();
10 11
 }
Please login to merge, or discard this patch.
lib/midcom/exec/touch_attachments.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,8 @@
 block discarded – undo
16 16
 foreach ($atts as $att) {
17 17
     try {
18 18
         $att->file_to_cache();
19
-    } catch (midcom_error $e) {
19
+    }
20
+    catch (midcom_error $e) {
20 21
         echo 'Error: ' . $e->getMessage() . "\n";
21 22
     }
22 23
 }
Please login to merge, or discard this patch.
lib/midcom/services/cron.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,8 @@
 block discarded – undo
153 153
                         $job['component'] = $component;
154 154
                         $this->_jobs[] = $job;
155 155
                     }
156
-                } catch (midcom_error $e) {
156
+                }
157
+                catch (midcom_error $e) {
157 158
                     $e->log(MIDCOM_LOG_ERROR);
158 159
                     debug_print_r('Got this job declaration:', $job);
159 160
                     echo "ERROR: Failed to register a job for {$component}: " . $e->getMessage() . "\n";
Please login to merge, or discard this patch.