Skip to content

Commit 278554a

Browse files
committed
🚿
1 parent 5347080 commit 278554a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Data/QRData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function setData(array $dataSegments):self{
9191
}
9292

9393
/**
94-
* returns a fresh matrix object with the data written for the given $maskPattern
94+
* returns a fresh matrix object with the data written and masked with the given $maskPattern
9595
*/
9696
public function writeMatrix(MaskPattern $maskPattern):QRMatrix{
9797
$data = (new ReedSolomonEncoder)->interleaveEcBytes($this->bitBuffer, $this->version, $this->eccLevel);

src/Output/QROutputAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function base64encode(string $data, string $mime):string{
106106
protected function saveToFile(string $data, string $file):bool{
107107

108108
if(!is_writable(dirname($file))){
109-
throw new QRCodeOutputException(sprintf('Could not write data to cache file: %s', $file));
109+
throw new QRCodeOutputException(sprintf('Cannot write data to cache file: %s', $file));
110110
}
111111

112112
return (bool)file_put_contents($file, $data);

tests/Output/QROutputTestAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testInstance():void{
6464
*/
6565
public function testSaveException():void{
6666
$this->expectException(QRCodeOutputException::class);
67-
$this->expectExceptionMessage('Could not write data to cache file: /foo/bar.test');
67+
$this->expectExceptionMessage('Cannot write data to cache file: /foo/bar.test');
6868

6969
$this->options->cachefile = '/foo/bar.test';
7070
$this->outputInterface = $this->getOutputInterface($this->options);

0 commit comments

Comments
 (0)