diff options
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Output/QRString.php')
-rw-r--r-- | vendor/chillerlan/php-qrcode/src/Output/QRString.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Output/QRString.php b/vendor/chillerlan/php-qrcode/src/Output/QRString.php index ba8d83675..3ed5153e1 100644 --- a/vendor/chillerlan/php-qrcode/src/Output/QRString.php +++ b/vendor/chillerlan/php-qrcode/src/Output/QRString.php @@ -8,6 +8,9 @@ * @author Smiley <[email protected]> * @copyright 2015 Smiley * @license MIT + * + * @noinspection PhpUnusedParameterInspection + * @noinspection PhpComposerExtensionStubsInspection */ namespace chillerlan\QRCode\Output; @@ -21,10 +24,7 @@ use function implode, is_string, json_encode; */ class QRString extends QROutputAbstract{ - /** - * @var string - */ - protected $defaultMode = QRCode::OUTPUT_STRING_TEXT; + protected string $defaultMode = QRCode::OUTPUT_STRING_TEXT; /** * @inheritDoc @@ -48,9 +48,9 @@ class QRString extends QROutputAbstract{ } /** - * @return string + * string output */ - protected function text():string{ + protected function text(string $file = null):string{ $str = []; foreach($this->matrix->matrix() as $row){ @@ -67,9 +67,9 @@ class QRString extends QROutputAbstract{ } /** - * @return string + * JSON output */ - protected function json():string{ + protected function json(string $file = null):string{ return json_encode($this->matrix->matrix()); } |