Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv authored and github-actions[bot] committed Jan 3, 2025
1 parent 5aefa29 commit 41c7214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mjml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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];
Expand All @@ -159,6 +158,7 @@ public function getCommand(TemporaryDirectory $tempDir, string $templatePath, st
$command[] = "-c.{$configKey}";
$command[] = $configValue;
}

return $command;
}

Expand Down

0 comments on commit 41c7214

Please sign in to comment.