Completed
Pull Request — develop (#47)
by
unknown
10:56
created
src/PhpSpreadsheet/CalcEngine/Logger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@
 block discarded – undo
126 126
                     $message,
127 127
                     PHP_EOL;
128 128
             }
129
-            $this->debugLog[] = $cellReference.
130
-                ($this->cellStack->count() > 0 ? ' => ' : '').
129
+            $this->debugLog[] = $cellReference .
130
+                ($this->cellStack->count() > 0 ? ' => ' : '') .
131 131
                 $message;
132 132
         }
133 133
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLERead.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         // Check if file exists and is readable
80 80
         if (!is_readable($sFileName)) {
81
-            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Could not open '.$sFileName.' for reading! File does not exist, or it is not readable.');
81
+            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Could not open ' . $sFileName . ' for reading! File does not exist, or it is not readable.');
82 82
         }
83 83
 
84 84
         // Get the file identifier
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         // Check OLE identifier
89 89
         if ($this->data != self::IDENTIFIER_OLE) {
90
-            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('The filename '.$sFileName.' is not recognised as an OLE file');
90
+            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('The filename ' . $sFileName . ' is not recognised as an OLE file');
91 91
         }
92 92
 
93 93
         // Get the file data
@@ -283,12 +283,12 @@  discard block
 block discarded – undo
283 283
             }
284 284
 
285 285
             // Summary information
286
-            if ($name == chr(5).'SummaryInformation') {
286
+            if ($name == chr(5) . 'SummaryInformation') {
287 287
                 $this->summaryInformation = count($this->props) - 1;
288 288
             }
289 289
 
290 290
             // Additional Document Summary information
291
-            if ($name == chr(5).'DocumentSummaryInformation') {
291
+            if ($name == chr(5) . 'DocumentSummaryInformation') {
292 292
                 $this->documentSummaryInformation = count($this->props) - 1;
293 293
             }
294 294
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
             throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Parameter data is empty.');
312 312
         } elseif ($pos < 0) {
313 313
             // Invalid position
314
-            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Parameter pos='.$pos.' is invalid.');
314
+            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Parameter pos=' . $pos . ' is invalid.');
315 315
         }
316 316
 
317 317
         $len = strlen($data);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Xls.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -287,8 +287,8 @@
 block discarded – undo
287 287
         $x2 = ($width + 1) / self::sizeCol($sheet, \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object
288 288
         $y2 = ($height + 1) / self::sizeRow($sheet, $row_end + 1) * 256; // Distance to bottom of object
289 289
 
290
-        $startCoordinates = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($col_start).($row_start + 1);
291
-        $endCoordinates = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($col_end).($row_end + 1);
290
+        $startCoordinates = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($col_start) . ($row_start + 1);
291
+        $endCoordinates = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($col_end) . ($row_end + 1);
292 292
 
293 293
         $twoAnchor = [
294 294
             'startCoordinates' => $startCoordinates,
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Drawing.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
             $header_parts = str_split($header, 2);
199 199
 
200 200
             //    Get the width        4 bytes
201
-            $width = hexdec($header_parts[19].$header_parts[18]);
201
+            $width = hexdec($header_parts[19] . $header_parts[18]);
202 202
 
203 203
             //    Get the height        4 bytes
204
-            $height = hexdec($header_parts[23].$header_parts[22]);
204
+            $height = hexdec($header_parts[23] . $header_parts[22]);
205 205
 
206 206
             //    Unset the header params
207 207
             unset($header_parts);
@@ -252,9 +252,9 @@  discard block
 block discarded – undo
252 252
             // Calculation of the RGB-pixel (defined as BGR in image-data)
253 253
             // Define $i_pos as absolute position in the body
254 254
             $i_pos = $i * 2;
255
-            $r = hexdec($body[$i_pos + 4].$body[$i_pos + 5]);
256
-            $g = hexdec($body[$i_pos + 2].$body[$i_pos + 3]);
257
-            $b = hexdec($body[$i_pos].$body[$i_pos + 1]);
255
+            $r = hexdec($body[$i_pos + 4] . $body[$i_pos + 5]);
256
+            $g = hexdec($body[$i_pos + 2] . $body[$i_pos + 3]);
257
+            $b = hexdec($body[$i_pos] . $body[$i_pos + 1]);
258 258
 
259 259
             // Calculate and draw the pixel
260 260
             $color = imagecolorallocate($image, $r, $g, $b);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/Matrix.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1163,7 +1163,7 @@
 block discarded – undo
1163 1163
             $this->checkMatrixDimensions($M);
1164 1164
             for ($i = 0; $i < $this->m; ++$i) {
1165 1165
                 for ($j = 0; $j < $this->n; ++$j) {
1166
-                    $this->A[$i][$j] = trim($this->A[$i][$j], '"').trim($M->get($i, $j), '"');
1166
+                    $this->A[$i][$j] = trim($this->A[$i][$j], '"') . trim($M->get($i, $j), '"');
1167 1167
                 }
1168 1168
             }
1169 1169
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/TimeZone.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
     {
121 121
         if ($timezone !== null) {
122 122
             if (!self::validateTimezone($timezone)) {
123
-                throw new \PhpOffice\PhpSpreadsheet\Exception('Invalid timezone '.$timezone);
123
+                throw new \PhpOffice\PhpSpreadsheet\Exception('Invalid timezone ' . $timezone);
124 124
             }
125 125
         } else {
126 126
             $timezone = self::$timezone;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/ZipStreamWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     {
82 82
         // Check for mode
83 83
         if ($mode{0} != 'r') {
84
-            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Mode '.$mode.' is not supported. Only read mode is supported.');
84
+            throw new \PhpOffice\PhpSpreadsheet\Reader\Exception('Mode ' . $mode . ' is not supported. Only read mode is supported.');
85 85
         }
86 86
 
87 87
         $pos = strrpos($path, '#');
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/PowerBestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $slope = $this->getSlope($dp);
73 73
         $intersect = $this->getIntersect($dp);
74 74
 
75
-        return 'Y = '.$intersect.' * X^'.$slope;
75
+        return 'Y = ' . $intersect . ' * X^' . $slope;
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/Trend.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             trigger_error('Trend(): Number of elements in coordinate arrays do not match.', E_USER_ERROR);
88 88
         }
89 89
 
90
-        $key = md5($trendType.$const.serialize($yValues).serialize($xValues));
90
+        $key = md5($trendType . $const . serialize($yValues) . serialize($xValues));
91 91
         //    Determine which Trend method has been requested
92 92
         switch ($trendType) {
93 93
             //    Instantiate and return the class for the requested Trend method
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             case self::TREND_EXPONENTIAL:
97 97
             case self::TREND_POWER:
98 98
                 if (!isset(self::$trendCache[$key])) {
99
-                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\'.$trendType.'BestFit';
99
+                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\' . $trendType . 'BestFit';
100 100
                     self::$trendCache[$key] = new $className($yValues, $xValues, $const);
101 101
                 }
102 102
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 //    If the request is to determine the best fit regression, then we test each Trend line in turn
118 118
                 //    Start by generating an instance of each available Trend method
119 119
                 foreach (self::$trendTypes as $trendMethod) {
120
-                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\'.$trendType.'BestFit';
120
+                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\' . $trendType . 'BestFit';
121 121
                     $bestFit[$trendMethod] = new $className($yValues, $xValues, $const);
122 122
                     $bestFitValue[$trendMethod] = $bestFit[$trendMethod]->getGoodnessOfFit();
123 123
                 }
Please login to merge, or discard this patch.