Skip to content

Commit

Permalink
Fix php cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenRenaux committed Oct 12, 2024
1 parent 558f3dd commit d8d7494
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/Builder/DownloadFromTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public function withDownloadFrom(array &$formFields, array $downloadFrom): stati
return $this;
}

/**
* @param array<string, array{url: string, extraHttpHeaders?: array<string, string>}> $value
*
* @return list<array{url: string, extraHttpHeaders?: array<string, string>}>
*/
private function downloadFromNormalizer(array $value, callable $encoder): array
{
$downloadsFrom = array_values($value);
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Pdf/AbstractChromiumPdfBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ protected function addConfiguration(string $configurationName, mixed $value): vo
'skip_network_idle_event' => $this->skipNetworkIdleEvent($value),
'metadata' => $this->metadata($value),
'download_from' => $this->downloadFrom($value),
default => throw new InvalidBuilderConfiguration(sprintf('Invalid option "%s": no method does not exist in class "%s" to configured it.', $configurationName, static::class)),
default => throw new InvalidBuilderConfiguration(\sprintf('Invalid option "%s": no method does not exist in class "%s" to configured it.', $configurationName, static::class)),
};
}
}
2 changes: 0 additions & 2 deletions src/Builder/Screenshot/AbstractScreenshotBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Sensiolabs\GotenbergBundle\Builder\DefaultBuilderTrait;
use Sensiolabs\GotenbergBundle\Builder\DownloadFromTrait;
use Sensiolabs\GotenbergBundle\Client\GotenbergClientInterface;
use Sensiolabs\GotenbergBundle\Enumeration\Part;
use Sensiolabs\GotenbergBundle\Formatter\AssetBaseDirFormatter;
use Symfony\Component\Mime\Part\DataPart;

abstract class AbstractScreenshotBuilder implements ScreenshotBuilderInterface
{
Expand Down
2 changes: 1 addition & 1 deletion tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function testWithDownloadFromConfiguration(): void
{
$processor = new Processor();
/** @var array{'default_options': array<string, mixed>} $config */
$config = $processor->processConfiguration(new Configuration(), [
$config = $processor->processConfiguration(new Configuration(), [
[
'http_client' => 'http_client',
'default_options' => [
Expand Down

0 comments on commit d8d7494

Please sign in to comment.