@@ -266,9 +266,9 @@ |
||
266 | 266 | |
267 | 267 | private static function castToString($c) |
268 | 268 | { |
269 | - if(strstr(strtolower($c->v), 'e') && !strstr(strtolower($c->v), 'e+')) { return $c->v; } |
|
270 | - // TODO: Should check cell type here and convert to string. It does not go well scientific notion "8.2276843555001E+18" etc. |
|
271 | - return isset($c->v) ? (string) $c->v : null; |
|
269 | + if(strstr(strtolower($c->v), 'e') && !strstr(strtolower($c->v), 'e+')) { return $c->v; } |
|
270 | + // TODO: Should check cell type here and convert to string. It does not go well scientific notion "8.2276843555001E+18" etc. |
|
271 | + return isset($c->v) ? (string) $c->v : null; |
|
272 | 272 | } |
273 | 273 | |
274 | 274 | private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType) |
@@ -266,7 +266,7 @@ |
||
266 | 266 | |
267 | 267 | private static function castToString($c) |
268 | 268 | { |
269 | - if(strstr(strtolower($c->v), 'e') && !strstr(strtolower($c->v), 'e+')) { return $c->v; } |
|
269 | + if (strstr(strtolower($c->v), 'e') && !strstr(strtolower($c->v), 'e+')) { return $c->v; } |
|
270 | 270 | // TODO: Should check cell type here and convert to string. It does not go well scientific notion "8.2276843555001E+18" etc. |
271 | 271 | return isset($c->v) ? (string) $c->v : null; |
272 | 272 | } |