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
 	 * @inheritDoc
 	 */
 	 */
 	public function dump(string $file = null):string{
 	public function dump(string $file = null):string{
-		$file       ??= $this->options->cachefile;
-		$saveToFile   = $file !== null;
+		$file ??= $this->options->cachefile;
 
 
 		$eps = [
 		$eps = [
 			// main header
 			// main header
@@ -91,7 +90,7 @@ class QREps extends QROutputAbstract{
 
 
 		$data = implode("\n", $eps);
 		$data = implode("\n", $eps);
 
 
-		if($saveToFile){
+		if($file !== null){
 			$this->saveToFile($data, $file);
 			$this->saveToFile($data, $file);
 		}
 		}