:octocat: yo scrunitizer

This commit is contained in:
codemasher
2018-01-21 16:35:10 +01:00
parent 459db14e0a
commit 1dc4c77072
5 changed files with 31 additions and 31 deletions
+5 -13
View File
@@ -19,18 +19,7 @@ use chillerlan\QRCode\QRCode;
*/
class QRString extends QROutputAbstract{
/**
* @return string
*/
public function dump():string{
$data = call_user_func([$this, $this->outputMode ?? QRCode::OUTPUT_STRING_TEXT]);
if($this->options->cachefile !== null){
$this->saveToFile($data);
}
return $data;
}
protected $defaultMode = QRCode::OUTPUT_STRING_TEXT;
/**
* @return string
@@ -60,7 +49,10 @@ class QRString extends QROutputAbstract{
return implode($this->options->eol, $str);
}
protected function json(){
/**
* @return string
*/
protected function json():string{
return json_encode($this->matrix->matrix());
}