Completed
Pull Request — develop (#490)
by Georgio
113:52 queued 48:51
created
src/PhpSpreadsheet/Writer/Xlsx/Drawing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             /** @var BaseDrawing $pDrawing */
47 47
             $pDrawing = $iterator->current();
48 48
             $pRelationId = $i;
49
-            $pHlinkClickId = ($pDrawing->getHyperlink() === null ) ? null : ++$i;
49
+            $pHlinkClickId = ($pDrawing->getHyperlink() === null) ? null : ++$i;
50 50
 
51 51
             $this->writeDrawing($objWriter, $pDrawing, $pRelationId, $pHlinkClickId);
52 52
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2409,10 +2409,10 @@
 block discarded – undo
2409 2409
     {
2410 2410
         $hlinkClick = $cellAnchor->pic->nvPicPr->cNvPr->children('http://schemas.openxmlformats.org/drawingml/2006/main')->hlinkClick;
2411 2411
         if ($hlinkClick) {
2412
-            $hlinkId = (string)$hlinkClick->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships')['id'];
2412
+            $hlinkId = (string) $hlinkClick->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships')['id'];
2413 2413
             $hyperlink = new Hyperlink(
2414 2414
                 $hyperlinks[$hlinkId],
2415
-                (string)self::getArrayItem($cellAnchor->pic->nvPicPr->cNvPr->attributes(), 'name')
2415
+                (string) self::getArrayItem($cellAnchor->pic->nvPicPr->cNvPr->attributes(), 'name')
2416 2416
             );
2417 2417
             $objDrawing->setHyperlink($hyperlink);
2418 2418
         }
Please login to merge, or discard this patch.