From 41c72144683cd33f1ce744902b7862b8c96480ac Mon Sep 17 00:00:00 2001 From: riasvdv Date: Fri, 3 Jan 2025 14:12:34 +0000 Subject: [PATCH] Fix styling --- src/Mjml.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mjml.php b/src/Mjml.php index fc760aa..49f7c26 100755 --- a/src/Mjml.php +++ b/src/Mjml.php @@ -6,7 +6,6 @@ use Spatie\Mjml\Exceptions\SidecarPackageUnavailable; use Spatie\MjmlSidecar\MjmlFunction; use Spatie\TemporaryDirectory\TemporaryDirectory; -use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\Process\ExecutableFinder; use Symfony\Component\Process\Process; @@ -144,13 +143,13 @@ protected function checkForDeprecationWarning(string $result): string public function getCommand(TemporaryDirectory $tempDir, string $templatePath, string $outputPath, $arguments): array { - $executableFinder = new ExecutableFinder(); + $executableFinder = new ExecutableFinder; $mjml = $executableFinder->find('mjml'); if (! $mjml) { $tempDir->delete(); - throw CouldNotConvertMjml::make("No MJML binary found. Make sure it is installed on your system."); + throw CouldNotConvertMjml::make('No MJML binary found. Make sure it is installed on your system.'); } $command = [$mjml, $templatePath, '-o', $outputPath]; @@ -159,6 +158,7 @@ public function getCommand(TemporaryDirectory $tempDir, string $templatePath, st $command[] = "-c.{$configKey}"; $command[] = $configValue; } + return $command; }