Completed
Branch develop (3f9c38)
by
unknown
25:32
created
phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
         $slope = $this->getSlope($dp);
76 76
         $intersect = $this->getIntersect($dp);
77 77
 
78
-        $equation = 'Y = ' . $intersect;
78
+        $equation = 'Y = '.$intersect;
79 79
         foreach ($slope as $key => $value) {
80 80
             if ($value != 0.0) {
81
-                $equation .= ' + ' . $value . ' * X';
81
+                $equation .= ' + '.$value.' * X';
82 82
                 if ($key > 0) {
83
-                    $equation .= '^' . ($key + 1);
83
+                    $equation .= '^'.($key + 1);
84 84
                 }
85 85
             }
86 86
         }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
         if (!$this->error) {
188 188
             if ($order < $this->valueCount) {
189
-                $this->bestFitType .= '_' . $order;
189
+                $this->bestFitType .= '_'.$order;
190 190
                 $this->order = $order;
191 191
                 $this->polynomialRegression($order, $yValues, $xValues);
192 192
                 if (($this->getGoodnessOfFit() < 0.0) || ($this->getGoodnessOfFit() > 1.0)) {
Please login to merge, or discard this patch.
phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $slope = $this->getSlope($dp);
49 49
         $intersect = $this->getIntersect($dp);
50 50
 
51
-        return 'Y = ' . $intersect . ' + ' . $slope . ' * X';
51
+        return 'Y = '.$intersect.' + '.$slope.' * X';
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PowerBestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $slope = $this->getSlope($dp);
49 49
         $intersect = $this->getIntersect($dp);
50 50
 
51
-        return 'Y = ' . $intersect . ' * X^' . $slope;
51
+        return 'Y = '.$intersect.' * X^'.$slope;
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/ExponentialBestFit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $slope = $this->getSlope($dp);
49 49
         $intersect = $this->getIntersect($dp);
50 50
 
51
-        return 'Y = ' . $intersect . ' * ' . $slope . '^X';
51
+        return 'Y = '.$intersect.' * '.$slope.'^X';
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
includes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/Trend.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             trigger_error('Trend(): Number of elements in coordinate arrays do not match.', E_USER_ERROR);
64 64
         }
65 65
 
66
-        $key = md5($trendType . $const . serialize($yValues) . serialize($xValues));
66
+        $key = md5($trendType.$const.serialize($yValues).serialize($xValues));
67 67
         //    Determine which Trend method has been requested
68 68
         switch ($trendType) {
69 69
             //    Instantiate and return the class for the requested Trend method
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             case self::TREND_EXPONENTIAL:
73 73
             case self::TREND_POWER:
74 74
                 if (!isset(self::$trendCache[$key])) {
75
-                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\' . $trendType . 'BestFit';
75
+                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\'.$trendType.'BestFit';
76 76
                     self::$trendCache[$key] = new $className($yValues, $xValues, $const);
77 77
                 }
78 78
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 //    If the request is to determine the best fit regression, then we test each Trend line in turn
94 94
                 //    Start by generating an instance of each available Trend method
95 95
                 foreach (self::$trendTypes as $trendMethod) {
96
-                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\' . $trendType . 'BestFit';
96
+                    $className = '\PhpOffice\PhpSpreadsheet\Shared\Trend\\'.$trendType.'BestFit';
97 97
                     $bestFit[$trendMethod] = new $className($yValues, $xValues, $const);
98 98
                     $bestFitValue[$trendMethod] = $bestFit[$trendMethod]->getGoodnessOfFit();
99 99
                 }
Please login to merge, or discard this patch.
phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/Root.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
                 . pack('V', 0)// Extra BDList Count
259 259
             );
260 260
         } else {
261
-            fwrite($FILE, pack('V', $iAll + $iBdCnt) . pack('V', $iBdExL));
261
+            fwrite($FILE, pack('V', $iAll + $iBdCnt).pack('V', $iBdExL));
262 262
         }
263 263
 
264 264
         // BDList
Please login to merge, or discard this patch.
htdocs/includes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Xls.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,8 +266,8 @@
 block discarded – undo
266 266
         $x2 = ($width + 1) / self::sizeCol($sheet, Coordinate::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object
267 267
         $y2 = ($height + 1) / self::sizeRow($sheet, $row_end + 1) * 256; // Distance to bottom of object
268 268
 
269
-        $startCoordinates = Coordinate::stringFromColumnIndex($col_start) . ($row_start + 1);
270
-        $endCoordinates = Coordinate::stringFromColumnIndex($col_end) . ($row_end + 1);
269
+        $startCoordinates = Coordinate::stringFromColumnIndex($col_start).($row_start + 1);
270
+        $endCoordinates = Coordinate::stringFromColumnIndex($col_end).($row_end + 1);
271 271
 
272 272
         return [
273 273
             'startCoordinates' => $startCoordinates,
Please login to merge, or discard this patch.
includes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         // Check OLE identifier
109 109
         $identifierOle = pack('CCCCCCCC', 0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1);
110 110
         if ($this->data != $identifierOle) {
111
-            throw new ReaderException('The filename ' . $pFilename . ' is not recognised as an OLE file');
111
+            throw new ReaderException('The filename '.$pFilename.' is not recognised as an OLE file');
112 112
         }
113 113
 
114 114
         // Get the file data
@@ -303,12 +303,12 @@  discard block
 block discarded – undo
303 303
             }
304 304
 
305 305
             // Summary information
306
-            if ($name == chr(5) . 'SummaryInformation') {
306
+            if ($name == chr(5).'SummaryInformation') {
307 307
                 $this->summaryInformation = count($this->props) - 1;
308 308
             }
309 309
 
310 310
             // Additional Document Summary information
311
-            if ($name == chr(5) . 'DocumentSummaryInformation') {
311
+            if ($name == chr(5).'DocumentSummaryInformation') {
312 312
                 $this->documentSummaryInformation = count($this->props) - 1;
313 313
             }
314 314
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     {
329 329
         if ($pos < 0) {
330 330
             // Invalid position
331
-            throw new ReaderException('Parameter pos=' . $pos . ' is invalid.');
331
+            throw new ReaderException('Parameter pos='.$pos.' is invalid.');
332 332
         }
333 333
 
334 334
         $len = strlen($data);
Please login to merge, or discard this patch.
htdocs/includes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Font.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -506,12 +506,12 @@
 block discarded – undo
506 506
 
507 507
                 break;
508 508
             default:
509
-                throw new PhpSpreadsheetException('Unknown font name "' . $name . '". Cannot map to TrueType font file');
509
+                throw new PhpSpreadsheetException('Unknown font name "'.$name.'". Cannot map to TrueType font file');
510 510
 
511 511
                 break;
512 512
         }
513 513
 
514
-        $fontFile = self::$trueTypeFontPath . $fontFile;
514
+        $fontFile = self::$trueTypeFontPath.$fontFile;
515 515
 
516 516
         // Check if file actually exists
517 517
         if (!file_exists($fontFile)) {
Please login to merge, or discard this patch.