Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp authored and github-actions[bot] committed Nov 7, 2024
1 parent 28f7204 commit b86b5d2
Show file tree
Hide file tree
Showing 5 changed files with 1,237 additions and 547 deletions.
2 changes: 1 addition & 1 deletion src/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function testWeb2printAction(Request $request): Response
if ($adapter instanceof PdfReactor) {
$params['adapterConfig'] = [
'javaScriptSettings' => [
'enabled' => false
'enabled' => false,
],
'addLinks' => true,
'appendLog' => true,
Expand Down
10 changes: 5 additions & 5 deletions src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
Loading

0 comments on commit b86b5d2

Please sign in to comment.