File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33
44use Yii ;
55use yii \base \Object ;
6+ use yii \helpers \ArrayHelper ;
67use mikehaertl \tmp \File ;
78
89/**
@@ -60,9 +61,9 @@ public function getWorkbook()
6061 public function getTmpFile ()
6162 {
6263 if ($ this ->_tmpFile === null ) {
63- $ suffix = isset ($ this ->fileOptions [ ' suffix ' ]) ? $ this -> fileOptions [ 'suffix ' ] : null ;
64- $ prefix = isset ($ this ->fileOptions [ ' prefix ' ]) ? $ this -> fileOptions [ 'prefix ' ] : null ;
65- $ directory = isset ($ this ->fileOptions [ ' directory ' ]) ? $ this -> fileOptions [ 'directory ' ] : null ;
64+ $ suffix = ArrayHelper:: getValue ($ this ->fileOptions , 'suffix ' ) ;
65+ $ prefix = ArrayHelper:: getValue ($ this ->fileOptions , 'prefix ' ) ;
66+ $ directory = ArrayHelper:: getValue ($ this ->fileOptions , 'directory ' ) ;
6667 $ this ->_tmpFile = new File ('' , $ suffix , $ prefix , $ directory );
6768 }
6869 return $ this ->_tmpFile ;
You can’t perform that action at this time.
0 commit comments