@@ -15,9 +15,9 @@ |
||
15 | 15 | |
16 | 16 | $helper->log('Set active sheet index 0'); |
17 | 17 | $aSheet = $spreadsheet->setActiveSheetIndex(0); |
18 | -$drawing = $aSheet->getDrawingCollection(); |
|
18 | +$drawing = $aSheet->getDrawingCollection(); |
|
19 | 19 | /** @var $dr \PhpOffice\PhpSpreadsheet\Worksheet\Drawing */ |
20 | -foreach ($drawing as $dr){ |
|
21 | - $helper->log("links " . $dr->getHyperlink()->getUrl()); |
|
20 | +foreach ($drawing as $dr) { |
|
21 | + $helper->log("links " . $dr->getHyperlink()->getUrl()); |
|
22 | 22 | } |
23 | 23 | $helper->log('End'); |
@@ -124,8 +124,7 @@ discard block |
||
124 | 124 | $this->rotation = 0; |
125 | 125 | $this->shadow = new Drawing\Shadow(); |
126 | 126 | |
127 | - // Set image index |
|
128 | - ++self::$imageCounter; |
|
127 | + // Set image index++self::$imageCounter; |
|
129 | 128 | $this->imageIndex = self::$imageCounter; |
130 | 129 | } |
131 | 130 | |
@@ -530,7 +529,7 @@ discard block |
||
530 | 529 | */ |
531 | 530 | public function getHyperlink() |
532 | 531 | { |
533 | - if ($this->hyperlink === null){ |
|
532 | + if ($this->hyperlink === null) { |
|
534 | 533 | $this->hyperlink = new Hyperlink(); |
535 | 534 | } |
536 | 535 |
@@ -1550,7 +1550,7 @@ discard block |
||
1550 | 1550 | $hyperlinks = array(); |
1551 | 1551 | if ($relsDrawing && $relsDrawing->Relationship) { |
1552 | 1552 | foreach ($relsDrawing->Relationship as $ele) { |
1553 | - if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink'){ |
|
1553 | + if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink') { |
|
1554 | 1554 | $hyperlinks[(string) $ele['Id']] = (string) $ele['Target']; |
1555 | 1555 | } |
1556 | 1556 | if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image') { |
@@ -1659,7 +1659,7 @@ discard block |
||
1659 | 1659 | $shadow->getColor()->setRGB(self::getArrayItem($outerShdw->srgbClr->attributes(), 'val')); |
1660 | 1660 | $shadow->setAlpha(self::getArrayItem($outerShdw->srgbClr->alpha->attributes(), 'val') / 1000); |
1661 | 1661 | } |
1662 | - if($hlinkClick) { |
|
1662 | + if ($hlinkClick) { |
|
1663 | 1663 | $hlinkId = (string) $hlinkClick->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships')['id']; |
1664 | 1664 | $hyperlink = new Hyperlink( |
1665 | 1665 | $hyperlinks[$hlinkId], |