💄 code style fixes

This commit is contained in:
smiley
2023-03-11 02:38:57 +01:00
parent abfd69e44a
commit 6b2a529160
74 changed files with 843 additions and 777 deletions
+7 -7
View File
@@ -58,7 +58,7 @@ class RandomDotsSVGOutput extends QRMarkupSVG{
// randomly assign another $M_TYPE_LAYER for the given types
// note that the layer id has to be an integer value,
// ideally outside of the several bitmask values
// ideally outside the several bitmask values
if($M_TYPE_LAYER === (QRMatrix::M_DATA | QRMatrix::IS_DARK)){
$M_TYPE_LAYER = array_rand($this->options->dotColors);
}
@@ -134,17 +134,17 @@ $options = new RandomDotsOptions([
'connectPaths' => true,
'excludeFromConnect' => [
QRMatrix::M_FINDER|QRMatrix::IS_DARK,
QRMatrix::M_FINDER_DOT|QRMatrix::IS_DARK,
QRMatrix::M_ALIGNMENT|QRMatrix::IS_DARK,
(QRMatrix::M_FINDER|QRMatrix::IS_DARK),
(QRMatrix::M_FINDER_DOT|QRMatrix::IS_DARK),
(QRMatrix::M_ALIGNMENT|QRMatrix::IS_DARK),
],
'drawCircularModules' => true,
'circleRadius' => 0.4,
'keepAsSquare' => [
QRMatrix::M_FINDER|QRMatrix::IS_DARK,
QRMatrix::M_FINDER_DOT|QRMatrix::IS_DARK,
QRMatrix::M_ALIGNMENT|QRMatrix::IS_DARK,
(QRMatrix::M_FINDER|QRMatrix::IS_DARK),
(QRMatrix::M_FINDER_DOT|QRMatrix::IS_DARK),
(QRMatrix::M_ALIGNMENT|QRMatrix::IS_DARK),
],
]);