1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00

Static Analysis

This commit is contained in:
David Bomba 2024-06-18 10:25:56 +10:00
parent 006e819f3a
commit dfdfc41fee

View File

@ -306,9 +306,6 @@ class TemplateService
} catch(SyntaxError $e) { } catch(SyntaxError $e) {
nlog($e->getMessage()); nlog($e->getMessage());
throw ($e); throw ($e);
} catch(Error $e) {
nlog("error = " . $e->getMessage());
throw ($e);
} catch(RuntimeError $e) { } catch(RuntimeError $e) {
nlog("runtime = " . $e->getMessage()); nlog("runtime = " . $e->getMessage());
throw ($e); throw ($e);
@ -318,6 +315,9 @@ class TemplateService
} catch(SecurityError $e) { } catch(SecurityError $e) {
nlog("security = " . $e->getMessage()); nlog("security = " . $e->getMessage());
throw ($e); throw ($e);
} catch(Error $e) {
nlog("error = " . $e->getMessage());
throw ($e);
} }
$template = $template->render($this->data); $template = $template->render($this->data);