Skip to content

Commit 11e6a94

Browse files
committed
Replace assets and add note
1 parent 238badd commit 11e6a94

File tree

6 files changed

+7
-14
lines changed

6 files changed

+7
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $builder = new Builder(
5050
size: 300,
5151
margin: 10,
5252
roundBlockSizeMode: RoundBlockSizeMode::Margin,
53-
logoPath: __DIR__.'/assets/symfony.png',
53+
logoPath: __DIR__.'/assets/bender.png',
5454
logoResizeToWidth: 50,
5555
logoPunchoutBackground: true,
5656
labelText: 'This is the label',
@@ -90,7 +90,7 @@ $qrCode = new QrCode(
9090

9191
// Create generic logo
9292
$logo = new Logo(
93-
path: __DIR__.'/assets/symfony.png',
93+
path: __DIR__.'/assets/bender.png',
9494
resizeToWidth: 50,
9595
punchoutBackground: true
9696
);
@@ -137,7 +137,7 @@ found as a constant prefixed with WRITER_OPTION_ in the writer class.
137137
* `link`: a URL or an identifier returned by `AddLink()`.
138138
* `PngWriter`
139139
* `compression_level`: compression level (0-9, default: -1 = zlib default)
140-
* `number_of_colors`: number of colors (1-256, null for true color)
140+
* `number_of_colors`: number of colors (1-256, null for true color and transparency)
141141
* `SvgWriter`
142142
* `block_id`: id of the block element for external reference (default: block)
143143
* `exclude_xml_declaration`: exclude XML declaration (default: false)

tests/QrCodeTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testQrCode(WriterInterface $writer, string $resultClass, string
5757

5858
// Create generic logo
5959
$logo = new Logo(
60-
path: __DIR__.'/assets/symfony.png',
60+
path: __DIR__.'/assets/bender.png',
6161
resizeToWidth: 50
6262
);
6363

@@ -206,7 +206,7 @@ public function testSvgLogo(): void
206206
{
207207
$qrCode = new QrCode('QR Code');
208208
$logo = new Logo(
209-
path: __DIR__.'/assets/symfony.svg',
209+
path: __DIR__.'/assets/bender.svg',
210210
resizeToWidth: 100,
211211
resizeToHeight: 50
212212
);
@@ -239,9 +239,8 @@ public function testLogoPunchoutBackgroundAvailability(): void
239239
{
240240
$qrCode = new QrCode('QR Code');
241241
$logo = new Logo(
242-
path: __DIR__.'/assets/symfony.svg',
242+
path: __DIR__.'/assets/bender.svg',
243243
resizeToWidth: 100,
244-
resizeToHeight: 50,
245244
punchoutBackground: true
246245
);
247246

tests/assets/bender.png

12.1 KB
Loading

tests/assets/bender.svg

Lines changed: 1 addition & 0 deletions
Loading

tests/assets/symfony.png

-15.9 KB
Binary file not shown.

tests/assets/symfony.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)