Completed
Push — master ( 76487a...deb021 )
by Alexander
03:13
created
src/RandomToFile.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,7 +254,9 @@
 block discarded – undo
254 254
     public function setOutputFile($file_name = null, $ext = null)
255 255
     {
256 256
         if (empty($file_name) || !is_string($file_name)) {
257
-            if (!is_null($ext)) $ext = $this->default_ext;
257
+            if (!is_null($ext)) {
258
+                $ext = $this->default_ext;
259
+            }
258 260
             $file_name = $this->genTempFileName($ext);
259 261
         }
260 262
         return $this->full_file_name = $file_name;
Please login to merge, or discard this patch.