Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored and github-actions[bot] committed Dec 21, 2023
1 parent 8fd0e3e commit 31259c4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 31259c4

Please sign in to comment.