Passed
Push — master ( dc34cc...293021 )
by Andreas
27:55
created
lib/org/openpsa/invoices/handler/invoice/action.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,8 @@  discard block
 block discarded – undo
132 132
         try {
133 133
             $pdf_helper->render_and_attach();
134 134
             return $this->reply(true, $this->_l10n->get('pdf created'));
135
-        } catch (midcom_error $e) {
135
+        }
136
+        catch (midcom_error $e) {
136 137
             return $this->reply(false, $this->_l10n->get('pdf creation failed') . ': ' . $e->getMessage());
137 138
         }
138 139
     }
@@ -143,7 +144,8 @@  discard block
 block discarded – undo
143 144
         try {
144 145
             $pdf_helper->render_and_attach('reminder');
145 146
             return $this->reply(true, $this->_l10n->get('payment warning pdf created'));
146
-        } catch (midcom_error $e) {
147
+        }
148
+        catch (midcom_error $e) {
147 149
             return $this->reply(false, $this->_l10n->get('payment warning pdf creation failed') . ': ' . $e->getMessage());
148 150
         }
149 151
     }
Please login to merge, or discard this patch.