Skip to content

Commit d7a02d0

Browse files
committed
:octocat:
1 parent 2b4345e commit d7a02d0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/Data/QRMatrix.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class QRMatrix{
3838
/** @var int */
3939
public const M_SEPARATOR = 0b000000001000;
4040
/** @var int */
41+
public const M_SEPARATOR_DARK = 0b100000001000;
42+
/** @var int */
4143
public const M_ALIGNMENT = 0b000000010000;
4244
/** @var int */
4345
public const M_ALIGNMENT_DARK = 0b100000010000;
@@ -305,7 +307,7 @@ public function checkType(int $x, int $y, int $M_TYPE):bool{
305307
}
306308

307309
/**
308-
* checks whether the module at ($x, $y) is in the given array of $M_TYPES,
310+
* Checks whether the module at ($x, $y) is in the given array of $M_TYPES,
309311
* returns true if a match is found, otherwise false.
310312
*/
311313
public function checkTypeIn(int $x, int $y, array $M_TYPES):bool{

src/Output/QROutputInterface.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface QROutputInterface{
4141
public const CUSTOM = 'custom';
4242

4343
/**
44-
* Map of built-in output modes => modules
44+
* Map of built-in output modes => class FQN
4545
*
4646
* @var string[]
4747
*/
@@ -59,6 +59,8 @@ interface QROutputInterface{
5959
];
6060

6161
/**
62+
* Map of module type => default value
63+
*
6264
* @var bool[]
6365
*/
6466
public const DEFAULT_MODULE_VALUES = [
@@ -78,6 +80,7 @@ interface QROutputInterface{
7880
QRMatrix::M_DARKMODULE => true,
7981
QRMatrix::M_DATA_DARK => true,
8082
QRMatrix::M_FINDER_DARK => true,
83+
QRMatrix::M_SEPARATOR_DARK => true,
8184
QRMatrix::M_ALIGNMENT_DARK => true,
8285
QRMatrix::M_TIMING_DARK => true,
8386
QRMatrix::M_FORMAT_DARK => true,
@@ -89,6 +92,8 @@ interface QROutputInterface{
8992
];
9093

9194
/**
95+
* Map of module type => readable name (for CSS etc.)
96+
*
9297
* @var string[]
9398
*/
9499
public const LAYERNAMES = [
@@ -108,6 +113,7 @@ interface QROutputInterface{
108113
QRMatrix::M_DARKMODULE => 'darkmodule',
109114
QRMatrix::M_DATA_DARK => 'data-dark',
110115
QRMatrix::M_FINDER_DARK => 'finder-dark',
116+
QRMatrix::M_SEPARATOR_DARK => 'separator-dark',
111117
QRMatrix::M_ALIGNMENT_DARK => 'alignment-dark',
112118
QRMatrix::M_TIMING_DARK => 'timing-dark',
113119
QRMatrix::M_FORMAT_DARK => 'format-dark',

0 commit comments

Comments
 (0)