smiley 3 年 前
コミット
e9229a3679
1 ファイル変更2 行追加3 行削除
  1. 2 3
      src/Output/QREps.php

+ 2 - 3
src/Output/QREps.php

@@ -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);
 		}