@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Serialize; |
3 | 3 | |
4 | -require_once dirname(__FILE__) . '/../libs/PHPExcel/Classes/PHPExcel.php'; |
|
4 | +require_once dirname(__FILE__).'/../libs/PHPExcel/Classes/PHPExcel.php'; |
|
5 | 5 | |
6 | 6 | class ExcelSerializer extends SpreadSheetSerializer |
7 | 7 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | for($j = 0; $j < $colCount; $j++) |
33 | 33 | { |
34 | 34 | $colName = $keys[$j]; |
35 | - $sheat->setCellValueByColumnAndRow($j, 2+$i, $data[$i][$j]); |
|
35 | + $sheat->setCellValueByColumnAndRow($j, 2 + $i, $data[$i][$j]); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | if(strcasecmp($type, 'xlsx') === 0 || strcasecmp($type, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') === 0) |
@@ -105,7 +105,7 @@ |
||
105 | 105 | return true; |
106 | 106 | } |
107 | 107 | |
108 | - static function from_name($name, $data=false) |
|
108 | + static function from_name($name, $data = false) |
|
109 | 109 | { |
110 | 110 | return false; |
111 | 111 | } |
@@ -90,7 +90,10 @@ |
||
90 | 90 | { |
91 | 91 | $isLast = true; |
92 | 92 | } |
93 | - if(!isset($group->member[$i]->type)) continue; |
|
93 | + if(!isset($group->member[$i]->type)) |
|
94 | + { |
|
95 | + continue; |
|
96 | + } |
|
94 | 97 | if($group->member[$i]->type === 'Group') |
95 | 98 | { |
96 | 99 | $this->addMember($group->member[$i]->cn, true, $isLast); |