mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 03:58:28 +00:00
🚿
This commit is contained in:
@@ -50,8 +50,7 @@ class QREps extends QROutputAbstract{
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function dump(string $file = null):string{
|
||||
$file ??= $this->options->cachefile;
|
||||
$saveToFile = $file !== null;
|
||||
$file ??= $this->options->cachefile;
|
||||
|
||||
$eps = [
|
||||
// main header
|
||||
@@ -91,7 +90,7 @@ class QREps extends QROutputAbstract{
|
||||
|
||||
$data = implode("\n", $eps);
|
||||
|
||||
if($saveToFile){
|
||||
if($file !== null){
|
||||
$this->saveToFile($data, $file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user