@@ -49,7 +49,7 @@ |
||
| 49 | 49 | while ($xml->read()) { |
| 50 | 50 | if (\XMLReader::ELEMENT === $xml->nodeType && 'Relationship' === $xml->name) { |
| 51 | 51 | |
| 52 | - $type = basename((string)$xml->getAttribute('Type')); |
|
| 52 | + $type = basename((string) $xml->getAttribute('Type')); |
|
| 53 | 53 | $this->storeRelationShipByType($type, $xml->getAttribute('Id'), 'xl/' . $xml->getAttribute('Target')); |
| 54 | 54 | } |
| 55 | 55 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $this->zip = new \ZipArchive(); |
| 80 | 80 | if (true !== $errorCode = $this->zip->open($this->archivePath)) { |
| 81 | 81 | $this->zip = null; |
| 82 | - throw new \RuntimeException('Error opening file: '.$this->getErrorMessage($errorCode)); |
|
| 82 | + throw new \RuntimeException('Error opening file: ' . $this->getErrorMessage($errorCode)); |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | return 'Entry has been deleted'; |
| 194 | 194 | |
| 195 | 195 | default: |
| 196 | - return 'An unknown error has occurred('.intval($errorCode).')'; |
|
| 196 | + return 'An unknown error has occurred(' . intval($errorCode) . ')'; |
|
| 197 | 197 | } |
| 198 | 198 | } |
| 199 | 199 | } |
@@ -71,8 +71,8 @@ |
||
| 71 | 71 | private $archive; |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * @var int |
|
| 75 | - */ |
|
| 74 | + * @var int |
|
| 75 | + */ |
|
| 76 | 76 | protected $maxColumnHeaderCount; |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | if (\XMLReader::ELEMENT === $this->xml->nodeType) { |
| 136 | 136 | switch ($this->xml->name) { |
| 137 | 137 | case 'row': |
| 138 | - $currentKey = (int)$this->xml->getAttribute('r'); |
|
| 138 | + $currentKey = (int) $this->xml->getAttribute('r'); |
|
| 139 | 139 | $rowBuilder = $this->rowBuilderFactory->create(); |
| 140 | 140 | break; |
| 141 | 141 | case 'c': |
@@ -158,12 +158,12 @@ discard block |
||
| 158 | 158 | case 'row': |
| 159 | 159 | $currentValue = $rowBuilder->getData(); |
| 160 | 160 | |
| 161 | - if($currentKey === 1) { |
|
| 162 | - if($this->maxColumnHeaderCount < count($currentValue)) { |
|
| 161 | + if ($currentKey === 1) { |
|
| 162 | + if ($this->maxColumnHeaderCount < count($currentValue)) { |
|
| 163 | 163 | $this->maxColumnHeaderCount = count($currentValue); |
| 164 | 164 | } |
| 165 | 165 | } elseif (count($currentValue) < $this->maxColumnHeaderCount) { |
| 166 | - for($i = count($currentValue); $i < $this->maxColumnHeaderCount; $i++) { |
|
| 166 | + for ($i = count($currentValue); $i < $this->maxColumnHeaderCount; $i++) { |
|
| 167 | 167 | $currentValue[] = ''; |
| 168 | 168 | } |
| 169 | 169 | } |