Completed
Pull Request — develop (#554)
by
unknown
62:32
created
src/PhpSpreadsheet/Reader/Xlsx.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -266,9 +266,9 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.