Completed
Pull Request — develop (#47)
by
unknown
10:56
created
src/PhpSpreadsheet/Cell/DataValidation.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -471,19 +471,19 @@
 block discarded – undo
471 471
     public function getHashCode()
472 472
     {
473 473
         return md5(
474
-            $this->formula1.
475
-            $this->formula2.
476
-            $this->type = self::TYPE_NONE.
477
-            $this->errorStyle = self::STYLE_STOP.
478
-            $this->operator.
479
-            ($this->allowBlank ? 't' : 'f').
480
-            ($this->showDropDown ? 't' : 'f').
481
-            ($this->showInputMessage ? 't' : 'f').
482
-            ($this->showErrorMessage ? 't' : 'f').
483
-            $this->errorTitle.
484
-            $this->error.
485
-            $this->promptTitle.
486
-            $this->prompt.
474
+            $this->formula1 .
475
+            $this->formula2 .
476
+            $this->type = self::TYPE_NONE .
477
+            $this->errorStyle = self::STYLE_STOP .
478
+            $this->operator .
479
+            ($this->allowBlank ? 't' : 'f') .
480
+            ($this->showDropDown ? 't' : 'f') .
481
+            ($this->showInputMessage ? 't' : 'f') .
482
+            ($this->showErrorMessage ? 't' : 'f') .
483
+            $this->errorTitle .
484
+            $this->error .
485
+            $this->promptTitle .
486
+            $this->prompt .
487 487
             __CLASS__
488 488
         );
489 489
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/Hyperlink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,8 @@
 block discarded – undo
121 121
     public function getHashCode()
122 122
     {
123 123
         return md5(
124
-            $this->url.
125
-            $this->tooltip.
124
+            $this->url .
125
+            $this->tooltip .
126 126
             __CLASS__
127 127
         );
128 128
     }
Please login to merge, or discard this patch.
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.