File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,9 @@ public function __construct($phpExcelIO = '\PHPExcel_IOFactory')
25
25
*
26
26
* @return \PHPExcel
27
27
*/
28
- public function createPHPExcelObject ($ filename = null )
28
+ public function createPHPExcelObject ($ filename = null )
29
29
{
30
- if (null === $ filename ) {
31
- $ phpExcelObject = new \PHPExcel ();
32
-
33
- return $ phpExcelObject ;
34
- }
35
-
36
- return call_user_func (array ($ this ->phpExcelIO , 'load ' ), $ filename );
30
+ return (null === $ filename ) ? new \PHPExcel () : call_user_func (array ($ this ->phpExcelIO , 'load ' ), $ filename );
37
31
}
38
32
39
33
/**
@@ -42,9 +36,7 @@ public function createPHPExcelObject($filename = null)
42
36
*/
43
37
public function createPHPExcelWorksheetDrawing ()
44
38
{
45
- $ Object = new \PHPExcel_Worksheet_Drawing ();
46
-
47
- return $ Object ;
39
+ return new \PHPExcel_Worksheet_Drawing ();
48
40
}
49
41
50
42
/**
@@ -89,7 +81,6 @@ function () use ($writer) {
89
81
*/
90
82
public function createHelperHTML ()
91
83
{
92
- $ Object = new \PHPExcel_Helper_HTML ();
93
- return $ Object ;
84
+ return new \PHPExcel_Helper_HTML ();
94
85
}
95
86
}
You can’t perform that action at this time.
0 commit comments