summaryrefslogtreecommitdiffstats
path: root/src/Plugin/CellStyleFixer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin/CellStyleFixer.php')
-rw-r--r--src/Plugin/CellStyleFixer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Plugin/CellStyleFixer.php b/src/Plugin/CellStyleFixer.php
index cc497be..d1173ef 100644
--- a/src/Plugin/CellStyleFixer.php
+++ b/src/Plugin/CellStyleFixer.php
@@ -24,10 +24,10 @@ class CellStyleFixer implements Plugin
* @param BookUtil $bookUtil
* @param SheetUtil $sheetUtil
*/
- public function __construct(BookUtil $bookUtil, SheetUtil $sheetUtil)
+ public function __construct(BookUtil $bookUtil = null, SheetUtil $sheetUtil = null)
{
- $this->bookUtil = $bookUtil;
- $this->sheetUtil = $sheetUtil;
+ $this->bookUtil = $bookUtil ? $bookUtil : new BookUtil;
+ $this->sheetUtil = $sheetUtil ? $sheetUtil : new SheetUtil;
}
/**