Completed
Push — master ( 97409b...0de86c )
by jean-marie
23s
created
src/Xlsx/DateTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Xlsx/RowIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
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' :
Please login to merge, or discard this patch.
src/Xlsx/Relationships.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Xlsx/ColumnIndexTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.