Completed
Pull Request — develop (#175)
by
unknown
24:13
created
src/PhpSpreadsheet/Reader/Xlsx.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1358,15 +1358,15 @@  discard block
 block discarded – undo
1358 1358
                                         Settings::getLibXmlLoaderOptions()
1359 1359
                                     );
1360 1360
 
1361
-                                    if($vmlCommentsFile !== FALSE) {
1361
+                                    if ($vmlCommentsFile !== FALSE) {
1362 1362
                                         $vmlCommentsFile->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
1363 1363
                                         $shapes = $vmlCommentsFile->xpath('//v:shape');
1364 1364
                                         foreach ($shapes as $shape) {
1365 1365
                                             $shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
1366 1366
 
1367 1367
                                             if (isset($shape['style'])) {
1368
-                                                $style = (string)$shape['style'];
1369
-                                                $fillColor = strtoupper(substr((string)$shape['fillcolor'], 1));
1368
+                                                $style = (string) $shape['style'];
1369
+                                                $fillColor = strtoupper(substr((string) $shape['fillcolor'], 1));
1370 1370
                                                 $column = null;
1371 1371
                                                 $row = null;
1372 1372
 
@@ -1374,7 +1374,7 @@  discard block
 block discarded – undo
1374 1374
                                                 if (is_array($clientData) && !empty($clientData)) {
1375 1375
                                                     $clientData = $clientData[0];
1376 1376
 
1377
-                                                    if (isset($clientData['ObjectType']) && (string)$clientData['ObjectType'] == 'Note') {
1377
+                                                    if (isset($clientData['ObjectType']) && (string) $clientData['ObjectType'] == 'Note') {
1378 1378
                                                         $temp = $clientData->xpath('.//x:Row');
1379 1379
                                                         if (is_array($temp)) {
1380 1380
                                                             $row = $temp[0];
@@ -1389,7 +1389,7 @@  discard block
 block discarded – undo
1389 1389
 
1390 1390
                                                 if (($column !== null) && ($row !== null)) {
1391 1391
                                                     // Set comment properties
1392
-                                                    $comment = $docSheet->getCommentByColumnAndRow((string)$column, $row + 1);
1392
+                                                    $comment = $docSheet->getCommentByColumnAndRow((string) $column, $row + 1);
1393 1393
                                                     $comment->getFillColor()->setRGB($fillColor);
1394 1394
 
1395 1395
                                                     // Parse style
@@ -1417,7 +1417,7 @@  discard block
 block discarded – undo
1417 1417
                                             }
1418 1418
                                         }
1419 1419
                                     } else {
1420
-                                        error_log('Invalid VML Comment XML File '.$fileWorksheet.'/'.$relPath);
1420
+                                        error_log('Invalid VML Comment XML File ' . $fileWorksheet . '/' . $relPath);
1421 1421
                                     }
1422 1422
                                 }
1423 1423
 
Please login to merge, or discard this patch.