codemasher преди 5 години
родител
ревизия
c107e6e1ac
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 1
      examples/image.php
  2. 2 0
      src/Data/QRMatrix.php

+ 1 - 1
examples/image.php

@@ -48,7 +48,7 @@ $options = new QROptions([
 		8    => [255, 255, 255],
 		// quietzone
 		18   => [255, 255, 255],
-		// logo
+		// logo (requires a call to QRMatrix::setLogoSpace())
 		20    => [255, 255, 255],
 	],
 ]);

+ 2 - 0
src/Data/QRMatrix.php

@@ -574,6 +574,8 @@ final class QRMatrix{
 	 * Clears a space of $width * $height in order to add a logo or text. ECC level "H" (30%) is required.
 	 * This method should be called from within an output module (after the matrix has been filled with data).
 	 *
+	 * @codeCoverageIgnore (for now)
+	 *
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	public function setLogoSpace(int $width, int $height):QRMatrix{