From beeffd66f93b148cd8b573b987f4519a2ae1e7dc Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Wed, 13 Nov 2024 19:45:27 +0100 Subject: [PATCH] [Task]: Update Gotenberg options documentation link (#90) * Update settings.js * Apply php-cs-fixer changes --------- Co-authored-by: kingjia90 --- public/js/settings.js | 2 +- src/Processor.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/js/settings.js b/public/js/settings.js index 1f72883..ffeb70c 100644 --- a/public/js/settings.js +++ b/public/js/settings.js @@ -274,7 +274,7 @@ pimcore.bundle.web2print.settings = Class.create({ autoEl:{ tag: 'a', target: '_blank', - href: "https://gotenberg.dev/docs/modules/chromium#routes", + href: "https://gotenberg.dev/docs/routes#page-properties-chromium", } },{ xtype: "displayfield", diff --git a/src/Processor.php b/src/Processor.php index caab45c..de7425f 100644 --- a/src/Processor.php +++ b/src/Processor.php @@ -40,16 +40,16 @@ public static function getInstance(): PdfReactor|Gotenberg|Chromium|Processor { $config = Config::getWeb2PrintConfig(); - if($config['generalTool'] == 'pdfreactor') { + if ($config['generalTool'] == 'pdfreactor') { return new PdfReactor(); - } elseif($config['generalTool'] == 'chromium') { + } elseif ($config['generalTool'] == 'chromium') { return new Chromium(); - } elseif($config['generalTool'] == 'gotenberg') { + } elseif ($config['generalTool'] == 'gotenberg') { return new Gotenberg(); } else { - if(class_exists($config['generalTool'])) { + if (class_exists($config['generalTool'])) { $generalToolClass = new $config['generalTool'](); - if($generalToolClass instanceof Processor) { + if ($generalToolClass instanceof Processor) { return $generalToolClass; } }