diff --git a/src/Processor.php b/src/Processor.php index 7ac2915..a6d33c8 100644 --- a/src/Processor.php +++ b/src/Processor.php @@ -40,19 +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'])){ + } else { + if(class_exists($config['generalTool'])) { $generalToolClass = new $config['generalTool'](); - if($generalToolClass instanceof Processor){ + if($generalToolClass instanceof Processor) { return $generalToolClass; } }