Passed
Push — master ( 65f4f0...af4b87 )
by Andreas
12:07
created
lib/org/openpsa/mypage/style/show-updates.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,8 @@
 block discarded – undo
31 31
             }
32 32
             $contact = new org_openpsa_widgets_contact($editor);
33 33
             echo "<li class=\"updated-{$class}\"><a href=\"{$url}\"{$onclick}>{$document->title}</a> <div class=\"metadata\">" . $formatter->datetime($document->edited) . " (" . $contact->show_inline() . ")</div></li>\n";
34
-        } catch (midcom_error $e) {
34
+        }
35
+        catch (midcom_error $e) {
35 36
         }
36 37
     }
37 38
     echo "</ul></div>\n";
Please login to merge, or discard this patch.
lib/org/openpsa/projects/style/show-project.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,8 @@
 block discarded – undo
19 19
             $customer_html = '<a href="' . $contacts_url . '/group/' . $customer->guid . '/">' . $customer_html . "</a>\n";
20 20
         }
21 21
         echo $customer_html;
22
-    } catch (midcom_error $e) {
22
+    }
23
+    catch (midcom_error $e) {
23 24
     }
24 25
 
25 26
     if ($project->manager) {
Please login to merge, or discard this patch.
lib/org/openpsa/projects/style/show-prospects-xml.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,8 @@
 block discarded – undo
6 6
     foreach ($data['prospects'] as $prospect) {
7 7
         try {
8 8
             $person = org_openpsa_contacts_person_dba::get_cached($prospect->person);
9
-        } catch (midcom_error $e) {
9
+        }
10
+        catch (midcom_error $e) {
10 11
             continue;
11 12
         } ?>
12 13
         <person>
Please login to merge, or discard this patch.
lib/org/openpsa/projects/style/show-frontpage.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,8 @@
 block discarded – undo
31 31
         try {
32 32
             $customer = new org_openpsa_contacts_group_dba($customer);
33 33
             $customer_title = $customer->official;
34
-        } catch (midcom_error $e) {
34
+        }
35
+        catch (midcom_error $e) {
35 36
             $customer_title = $data['l10n']->get('no customer');
36 37
         }
37 38
 
Please login to merge, or discard this patch.
lib/org/openpsa/sales/style/show-salesproject-deliverables-header.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
                         try {
18 18
                             $group = org_openpsa_products_product_group_dba::get_cached($product['productGroup']);
19 19
                             $desc .= $group->title . ', ';
20
-                        } catch (midcom_error $e) {
20
+                        }
21
+                        catch (midcom_error $e) {
21 22
                             $e->log();
22 23
                         }
23 24
                         if ($product['delivery'] == org_openpsa_products_product_dba::DELIVERY_SINGLE) {
Please login to merge, or discard this patch.
lib/org/openpsa/slideshow/style/edit.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,8 @@
 block discarded – undo
21 21
         $original = new midcom_db_attachment($image->attachment);
22 22
         $original_url = midcom_db_attachment::get_url($original);
23 23
         $name = $original->name;
24
-    } catch (midcom_error $e) {
24
+    }
25
+    catch (midcom_error $e) {
25 26
         $url = MIDCOM_STATIC_URL . '/stock-icons/mime/gnome-text-blank.png';
26 27
         $name = $data['l10n']->get('attachment missing');
27 28
         $original_url = '';
Please login to merge, or discard this patch.
lib/org/openpsa/reports/style/invoices_report-grid.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,8 @@  discard block
 block discarded – undo
73 73
         } else {
74 74
             $entry['customer'] = $customer->official;
75 75
         }
76
-    } catch (midcom_error $e) {
76
+    }
77
+    catch (midcom_error $e) {
77 78
     }
78 79
 
79 80
     if ($entry['status'] === 'canceled') {
@@ -85,7 +86,8 @@  discard block
 block discarded – undo
85 86
         $entry['index_contact'] = $contact->rname;
86 87
         $contact_card = org_openpsa_widgets_contact::get($invoice->customerContact);
87 88
         $entry['contact'] = $contact_card->show_inline();
88
-    } catch (midcom_error $e) {
89
+    }
90
+    catch (midcom_error $e) {
89 91
     }
90 92
 
91 93
     $entries[] = $entry;
Please login to merge, or discard this patch.
lib/midgard/admin/asgard/style/midgard_admin_asgard_shell_runner.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,8 @@
 block discarded – undo
61 61
     try {
62 62
         ?>&(data['code']:p);<?php
63 63
 
64
-    } catch (Exception $e) {
64
+    }
65
+    catch (Exception $e) {
65 66
         echo '<div class="shell-error">' . $e->getMessage() . '</div>';
66 67
         echo htmlentities($e->getTraceAsString());
67 68
     }
Please login to merge, or discard this patch.
lib/midcom/helper/search/style/result_item.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
 
5 5
 try {
6 6
     $topic = midcom_db_topic::get_cached($document->topic_guid);
7
-} catch (midcom_error $e) {
7
+}
8
+catch (midcom_error $e) {
8 9
     $e->log();
9 10
 }
10 11
 ?>
Please login to merge, or discard this patch.