Skip to content

Commit 07eb6e3

Browse files
committed
:octocat: removed QROptionsTrait::$textDark and QROptionsTrait::$textLight
1 parent 98d4447 commit 07eb6e3

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

examples/text.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,23 @@
2121
$options->outputType = QROutputInterface::STRING_TEXT;
2222
$options->eol = "\n";
2323
$options->textLineStart = str_repeat(' ', 6);
24-
$options->textDark = QRString::ansi8('██', 253);
25-
$options->textLight = QRString::ansi8('░░', 253);
2624
$options->moduleValues = [
27-
// finder
2825
QRMatrix::M_FINDER_DARK => QRString::ansi8('██', 124),
2926
QRMatrix::M_FINDER => QRString::ansi8('░░', 124),
3027
QRMatrix::M_FINDER_DOT => QRString::ansi8('██', 124),
31-
// alignment
3228
QRMatrix::M_ALIGNMENT_DARK => QRString::ansi8('██', 2),
3329
QRMatrix::M_ALIGNMENT => QRString::ansi8('░░', 2),
34-
// timing
3530
QRMatrix::M_TIMING_DARK => QRString::ansi8('██', 184),
3631
QRMatrix::M_TIMING => QRString::ansi8('░░', 184),
37-
// format
3832
QRMatrix::M_FORMAT_DARK => QRString::ansi8('██', 200),
3933
QRMatrix::M_FORMAT => QRString::ansi8('░░', 200),
40-
// version
4134
QRMatrix::M_VERSION_DARK => QRString::ansi8('██', 21),
4235
QRMatrix::M_VERSION => QRString::ansi8('░░', 21),
43-
// dark module
4436
QRMatrix::M_DARKMODULE => QRString::ansi8('██', 53),
45-
// data
4637
QRMatrix::M_DATA_DARK => QRString::ansi8('██', 166),
4738
QRMatrix::M_DATA => QRString::ansi8('░░', 166),
39+
QRMatrix::M_QUIETZONE => QRString::ansi8('░░', 253),
40+
QRMatrix::M_SEPARATOR => QRString::ansi8('░░', 253),
4841
];
4942

5043

src/Output/QRString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function prepareModuleValue($value):string{
3838
* @inheritDoc
3939
*/
4040
protected function getDefaultModuleValue(bool $isDark):string{
41-
return ($isDark) ? $this->options->textDark : $this->options->textLight;
41+
return ($isDark) ? '██' : '░░';
4242
}
4343

4444
/**

src/QROptionsTrait.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -425,19 +425,6 @@ trait QROptionsTrait{
425425
* QRString settings
426426
*/
427427

428-
/**
429-
* String substitute for dark
430-
*
431-
* @see https://en.wikipedia.org/wiki/Block_Elements
432-
* @see https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
433-
*/
434-
protected string $textDark = '██';
435-
436-
/**
437-
* String substitute for light
438-
*/
439-
protected string $textLight = '░░';
440-
441428
/**
442429
* An optional line prefix, e.g. empty space to align the QR Code in a console
443430
*/

0 commit comments

Comments
 (0)