This commit is contained in:
codemasher
2021-12-09 01:32:44 +01:00
parent 5347080444
commit 278554af0d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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);