@@ -35,10 +35,10 @@ |
||
35 | 35 | { |
36 | 36 | $days = floor($value); |
37 | 37 | |
38 | - $seconds = round(($value - $days) * 86400); |
|
38 | + $seconds = round(($value-$days) * 86400); |
|
39 | 39 | |
40 | 40 | $date = clone $this->baseDate; |
41 | - $date->modify(sprintf('+%sday +%ssecond', $days - 1, $seconds)); |
|
41 | + $date->modify(sprintf('+%sday +%ssecond', $days-1, $seconds)); |
|
42 | 42 | |
43 | 43 | return $date; |
44 | 44 | } |
@@ -110,7 +110,7 @@ |
||
110 | 110 | if (\XMLReader::ELEMENT === $this->xml->nodeType) { |
111 | 111 | switch ($this->xml->name) { |
112 | 112 | case 'row' : |
113 | - $currentKey = (int)$this->xml->getAttribute('r'); |
|
113 | + $currentKey = (int) $this->xml->getAttribute('r'); |
|
114 | 114 | $rowBuilder = $this->rowBuilderFactory->create(); |
115 | 115 | break; |
116 | 116 | case 'c' : |
@@ -49,8 +49,8 @@ |
||
49 | 49 | while ($xml->read()) { |
50 | 50 | if (\XMLReader::ELEMENT === $xml->nodeType && 'Relationship' === $xml->name) { |
51 | 51 | |
52 | - $type = basename((string)$xml->getAttribute('Type')); |
|
53 | - $this->storeRelationShipByType($type, $xml->getAttribute('Id'), 'xl/' . $xml->getAttribute('Target')); |
|
52 | + $type = basename((string) $xml->getAttribute('Type')); |
|
53 | + $this->storeRelationShipByType($type, $xml->getAttribute('Id'), 'xl/'.$xml->getAttribute('Target')); |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 |
@@ -24,11 +24,11 @@ |
||
24 | 24 | $number = -1; |
25 | 25 | |
26 | 26 | foreach (str_split($name) as $chr) { |
27 | - $digit = ord($chr) - 65; |
|
27 | + $digit = ord($chr)-65; |
|
28 | 28 | if ($digit < 0) { |
29 | 29 | break; |
30 | 30 | } |
31 | - $number = ($number + 1) * 26 + $digit; |
|
31 | + $number = ($number+1) * 26+$digit; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | return $number; |