codemasher %!s(int64=4) %!d(string=hai) anos
pai
achega
278554af0d

+ 1 - 1
src/Data/QRData.php

@@ -91,7 +91,7 @@ final class QRData{
 	}
 
 	/**
-	 * returns a fresh matrix object with the data written for the given $maskPattern
+	 * returns a fresh matrix object with the data written and masked with the given $maskPattern
 	 */
 	public function writeMatrix(MaskPattern $maskPattern):QRMatrix{
 		$data = (new ReedSolomonEncoder)->interleaveEcBytes($this->bitBuffer, $this->version, $this->eccLevel);

+ 1 - 1
src/Output/QROutputAbstract.php

@@ -106,7 +106,7 @@ abstract class QROutputAbstract implements QROutputInterface{
 	protected function saveToFile(string $data, string $file):bool{
 
 		if(!is_writable(dirname($file))){
-			throw new QRCodeOutputException(sprintf('Could not write data to cache file: %s', $file));
+			throw new QRCodeOutputException(sprintf('Cannot write data to cache file: %s', $file));
 		}
 
 		return (bool)file_put_contents($file, $data);

+ 1 - 1
tests/Output/QROutputTestAbstract.php

@@ -64,7 +64,7 @@ abstract class QROutputTestAbstract extends TestCase{
 	 */
 	public function testSaveException():void{
 		$this->expectException(QRCodeOutputException::class);
-		$this->expectExceptionMessage('Could not write data to cache file: /foo/bar.test');
+		$this->expectExceptionMessage('Cannot write data to cache file: /foo/bar.test');
 
 		$this->options->cachefile = '/foo/bar.test';
 		$this->outputInterface = $this->getOutputInterface($this->options);