From 278554af0de7cedfe68dd3a92bca95c20ccea5d0 Mon Sep 17 00:00:00 2001 From: codemasher Date: Thu, 9 Dec 2021 01:32:44 +0100 Subject: [PATCH] :shower: --- src/Data/QRData.php | 2 +- src/Output/QROutputAbstract.php | 2 +- tests/Output/QROutputTestAbstract.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Data/QRData.php b/src/Data/QRData.php index 8ab359b3e..90fee68b5 100644 --- a/src/Data/QRData.php +++ b/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); diff --git a/src/Output/QROutputAbstract.php b/src/Output/QROutputAbstract.php index 72c80a820..e8d2b82ef 100644 --- a/src/Output/QROutputAbstract.php +++ b/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); diff --git a/tests/Output/QROutputTestAbstract.php b/tests/Output/QROutputTestAbstract.php index 0de9b1b32..b46f72c7e 100644 --- a/tests/Output/QROutputTestAbstract.php +++ b/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);