@@ -36,15 +36,15 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public $lim_elements = 10000; |
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * Model number for generation random Keys for Arrays |
|
| 41 | - * if 0 then array keys will be simple 1,2,3... numeric |
|
| 42 | - * if 1 then array keys will be numeric from min_arr_key to max_arr_key |
|
| 43 | - * if 2 then array keys will be string len from min_arr_key to max_arr_key |
|
| 44 | - * This value setting by function setKeysModel() |
|
| 45 | - * |
|
| 46 | - * @var integer |
|
| 47 | - */ |
|
| 39 | + /** |
|
| 40 | + * Model number for generation random Keys for Arrays |
|
| 41 | + * if 0 then array keys will be simple 1,2,3... numeric |
|
| 42 | + * if 1 then array keys will be numeric from min_arr_key to max_arr_key |
|
| 43 | + * if 2 then array keys will be string len from min_arr_key to max_arr_key |
|
| 44 | + * This value setting by function setKeysModel() |
|
| 45 | + * |
|
| 46 | + * @var integer |
|
| 47 | + */ |
|
| 48 | 48 | protected $keys_model; |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -254,7 +254,9 @@ |
||
| 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; |