@@ -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 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | if (\XMLReader::ELEMENT === $this->xml->nodeType) { |
| 130 | 130 | switch ($this->xml->name) { |
| 131 | 131 | case 'row': |
| 132 | - $currentKey = (int)$this->xml->getAttribute('r'); |
|
| 132 | + $currentKey = (int) $this->xml->getAttribute('r'); |
|
| 133 | 133 | $rowBuilder = $this->rowBuilderFactory->create(); |
| 134 | 134 | break; |
| 135 | 135 | case 'c': |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | $rowBuilder->addValue($columnIndex, $this->xml->readString()); |
| 148 | 148 | break; |
| 149 | 149 | case 't': |
| 150 | - if($type == ValueTransformer::TYPE_INLINE_STRING) { |
|
| 150 | + if ($type == ValueTransformer::TYPE_INLINE_STRING) { |
|
| 151 | 151 | $rowBuilder->addValue( |
| 152 | 152 | $columnIndex, |
| 153 | 153 | $this->valueTransformer->transform($this->xml->readString(), $type, $style) |