Completed
Push — develop ( bf3457...467bab )
by
unknown
09:08
created
src/PhpSpreadsheet/Cell.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 //echo 'Calculation Exception: '.$ex->getMessage().PHP_EOL;
292 292
                 $result = '#N/A';
293 293
                 throw new Calculation\Exception(
294
-                    $this->getWorksheet()->getTitle().'!'.$this->getCoordinate().' -> '.$ex->getMessage()
294
+                    $this->getWorksheet()->getTitle() . '!' . $this->getCoordinate() . ' -> ' . $ex->getMessage()
295 295
                 );
296 296
             }
297 297
 
@@ -586,14 +586,14 @@  discard block
 block discarded – undo
586 586
     public static function coordinateFromString($pCoordinateString = 'A1')
587 587
     {
588 588
         if (preg_match("/^([$]?[A-Z]{1,3})([$]?\d{1,7})$/", $pCoordinateString, $matches)) {
589
-            return array($matches[1],$matches[2]);
589
+            return array($matches[1], $matches[2]);
590 590
         } elseif ((strpos($pCoordinateString, ':') !== false) || (strpos($pCoordinateString, ',') !== false)) {
591 591
             throw new Exception('Cell coordinate string can not be a range of cells');
592 592
         } elseif ($pCoordinateString == '') {
593 593
             throw new Exception('Cell coordinate can not be zero-length string');
594 594
         }
595 595
 
596
-        throw new Exception('Invalid cell coordinate '.$pCoordinateString);
596
+        throw new Exception('Invalid cell coordinate ' . $pCoordinateString);
597 597
     }
598 598
 
599 599
     /**
@@ -733,11 +733,11 @@  discard block
 block discarded – undo
733 733
 
734 734
         // Calculate range outer borders
735 735
         $rangeStart = self::coordinateFromString($rangeA);
736
-        $rangeEnd    = self::coordinateFromString($rangeB);
736
+        $rangeEnd = self::coordinateFromString($rangeB);
737 737
 
738 738
         // Translate column into index
739
-        $rangeStart[0]    = self::columnIndexFromString($rangeStart[0]);
740
-        $rangeEnd[0]    = self::columnIndexFromString($rangeEnd[0]);
739
+        $rangeStart[0] = self::columnIndexFromString($rangeStart[0]);
740
+        $rangeEnd[0] = self::columnIndexFromString($rangeEnd[0]);
741 741
 
742 742
         return array($rangeStart, $rangeEnd);
743 743
     }
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
         // Calculate range outer borders
754 754
         list($rangeStart, $rangeEnd) = self::rangeBoundaries($pRange);
755 755
 
756
-        return array( ($rangeEnd[0] - $rangeStart[0] + 1), ($rangeEnd[1] - $rangeStart[1] + 1) );
756
+        return array(($rangeEnd[0] - $rangeStart[0] + 1), ($rangeEnd[1] - $rangeStart[1] + 1));
757 757
     }
758 758
 
759 759
     /**
@@ -780,7 +780,7 @@  discard block
 block discarded – undo
780 780
             list($rangeA, $rangeB) = explode(':', $pRange);
781 781
         }
782 782
 
783
-        return array( self::coordinateFromString($rangeA), self::coordinateFromString($rangeB));
783
+        return array(self::coordinateFromString($rangeA), self::coordinateFromString($rangeB));
784 784
     }
785 785
 
786 786
     /**
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
                 }
886 886
 
887 887
                 // Range...
888
-                list($rangeStart, $rangeEnd)    = $range;
888
+                list($rangeStart, $rangeEnd) = $range;
889 889
                 sscanf($rangeStart, '%[A-Z]%d', $startCol, $startRow);
890 890
                 sscanf($rangeEnd, '%[A-Z]%d', $endCol, $endRow);
891 891
                 ++$endCol;
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
                 // Loop cells
898 898
                 while ($currentCol != $endCol) {
899 899
                     while ($currentRow <= $endRow) {
900
-                        $returnValue[] = $currentCol.$currentRow;
900
+                        $returnValue[] = $currentCol . $currentRow;
901 901
                         ++$currentRow;
902 902
                     }
903 903
                     ++$currentCol;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Renderer/JpGraph.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace PHPExcel\Chart\Renderer;
4 4
 
5
-require_once(\PHPExcel\Settings::getChartRendererPath().'/jpgraph.php');
5
+require_once(\PHPExcel\Settings::getChartRendererPath() . '/jpgraph.php');
6 6
 
7 7
 /**
8 8
  * PHPExcel_Chart_Renderer_jpgraph
@@ -31,15 +31,15 @@  discard block
 block discarded – undo
31 31
  */
32 32
 class JpGraph
33 33
 {
34
-    private static $width    = 640;
34
+    private static $width = 640;
35 35
 
36 36
     private static $height    = 480;
37 37
 
38 38
     private static $colourSet = [
39
-        'mediumpurple1',    'palegreen3',     'gold1',          'cadetblue1',
40
-        'darkmagenta',      'coral',          'dodgerblue3',    'eggplant',
41
-        'mediumblue',       'magenta',        'sandybrown',     'cyan',
42
-        'firebrick1',       'forestgreen',    'deeppink4',      'darkolivegreen',
39
+        'mediumpurple1', 'palegreen3', 'gold1', 'cadetblue1',
40
+        'darkmagenta', 'coral', 'dodgerblue3', 'eggplant',
41
+        'mediumblue', 'magenta', 'sandybrown', 'cyan',
42
+        'firebrick1', 'forestgreen', 'deeppink4', 'darkolivegreen',
43 43
         'goldenrod2'
44 44
     ];
45 45
 
@@ -188,21 +188,21 @@  discard block
 block discarded – undo
188 188
             $legendOverlay = $legend->getOverlay();
189 189
             switch ($legendPosition) {
190 190
                 case 'r':
191
-                    $this->graph->legend->SetPos(0.01, 0.5, 'right', 'center');    //    right
191
+                    $this->graph->legend->SetPos(0.01, 0.5, 'right', 'center'); //    right
192 192
                     $this->graph->legend->SetColumns(1);
193 193
                     break;
194 194
                 case 'l':
195
-                    $this->graph->legend->SetPos(0.01, 0.5, 'left', 'center');    //    left
195
+                    $this->graph->legend->SetPos(0.01, 0.5, 'left', 'center'); //    left
196 196
                     $this->graph->legend->SetColumns(1);
197 197
                     break;
198 198
                 case 't':
199
-                    $this->graph->legend->SetPos(0.5, 0.01, 'center', 'top');    //    top
199
+                    $this->graph->legend->SetPos(0.5, 0.01, 'center', 'top'); //    top
200 200
                     break;
201 201
                 case 'b':
202
-                    $this->graph->legend->SetPos(0.5, 0.99, 'center', 'bottom');    //    bottom
202
+                    $this->graph->legend->SetPos(0.5, 0.99, 'center', 'bottom'); //    bottom
203 203
                     break;
204 204
                 default:
205
-                    $this->graph->legend->SetPos(0.01, 0.01, 'right', 'top');    //    top-right
205
+                    $this->graph->legend->SetPos(0.01, 0.01, 'right', 'top'); //    top-right
206 206
                     $this->graph->legend->SetColumns(1);
207 207
                     break;
208 208
             }
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
 
566 566
     private function renderAreaChart($groupCount, $dimensions = '2d')
567 567
     {
568
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_line.php');
568
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_line.php');
569 569
 
570 570
         $this->renderCartesianPlotArea();
571 571
 
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 
578 578
     private function renderLineChart($groupCount, $dimensions = '2d')
579 579
     {
580
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_line.php');
580
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_line.php');
581 581
 
582 582
         $this->renderCartesianPlotArea();
583 583
 
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 
590 590
     private function renderBarChart($groupCount, $dimensions = '2d')
591 591
     {
592
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_bar.php');
592
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_bar.php');
593 593
 
594 594
         $this->renderCartesianPlotArea();
595 595
 
@@ -601,9 +601,9 @@  discard block
 block discarded – undo
601 601
 
602 602
     private function renderScatterChart($groupCount)
603 603
     {
604
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_scatter.php');
605
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_regstat.php');
606
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_line.php');
604
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_scatter.php');
605
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_regstat.php');
606
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_line.php');
607 607
 
608 608
         $this->renderCartesianPlotArea('linlin');
609 609
 
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 
616 616
     private function renderBubbleChart($groupCount)
617 617
     {
618
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_scatter.php');
618
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_scatter.php');
619 619
 
620 620
         $this->renderCartesianPlotArea('linlin');
621 621
 
@@ -627,9 +627,9 @@  discard block
 block discarded – undo
627 627
 
628 628
     private function renderPieChart($groupCount, $dimensions = '2d', $doughnut = false, $multiplePlots = false)
629 629
     {
630
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_pie.php');
630
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_pie.php');
631 631
         if ($dimensions == '3d') {
632
-            require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_pie3d.php');
632
+            require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_pie3d.php');
633 633
         }
634 634
 
635 635
         $this->renderPiePlotArea($doughnut);
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
                 }
676 676
 
677 677
                 if ($multiplePlots) {
678
-                    $seriesPlot->SetSize(($jLimit-$j) / ($jLimit * 4));
678
+                    $seriesPlot->SetSize(($jLimit - $j) / ($jLimit * 4));
679 679
                 }
680 680
 
681 681
                 if ($doughnut) {
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 
705 705
     private function renderRadarChart($groupCount)
706 706
     {
707
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_radar.php');
707
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_radar.php');
708 708
 
709 709
         $this->renderRadarPlotArea();
710 710
 
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 
717 717
     private function renderStockChart($groupCount)
718 718
     {
719
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_stock.php');
719
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_stock.php');
720 720
 
721 721
         $this->renderCartesianPlotArea('intint');
722 722
 
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
 
729 729
     private function renderContourChart($groupCount, $dimensions)
730 730
     {
731
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_contour.php');
731
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_contour.php');
732 732
 
733 733
         $this->renderCartesianPlotArea('intint');
734 734
 
@@ -740,11 +740,11 @@  discard block
 block discarded – undo
740 740
 
741 741
     private function renderCombinationChart($groupCount, $dimensions, $outputDestination)
742 742
     {
743
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_line.php');
744
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_bar.php');
745
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_scatter.php');
746
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_regstat.php');
747
-        require_once(\PHPExcel\Settings::getChartRendererPath().'jpgraph_line.php');
743
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_line.php');
744
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_bar.php');
745
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_scatter.php');
746
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_regstat.php');
747
+        require_once(\PHPExcel\Settings::getChartRendererPath() . 'jpgraph_line.php');
748 748
 
749 749
         $this->renderCartesianPlotArea();
750 750
 
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
                 $this->renderStockChart($groupCount, $dimensions);
865 865
                 break;
866 866
             default:
867
-                echo $chartType.' is not yet implemented<br />';
867
+                echo $chartType . ' is not yet implemented<br />';
868 868
                 return false;
869 869
         }
870 870
         $this->renderLegend();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@
 block discarded – undo
38 38
     const TYPE_PIECHART        = 'pieChart';
39 39
     const TYPE_PIECHART_3D     = 'pie3DChart';
40 40
     const TYPE_DOUGHTNUTCHART  = 'doughnutChart';
41
-    const TYPE_DONUTCHART      = self::TYPE_DOUGHTNUTCHART;    //    Synonym
41
+    const TYPE_DONUTCHART      = self::TYPE_DOUGHTNUTCHART; //    Synonym
42 42
     const TYPE_SCATTERCHART    = 'scatterChart';
43 43
     const TYPE_SURFACECHART    = 'surfaceChart';
44 44
     const TYPE_SURFACECHART_3D = 'surface3DChart';
45 45
     const TYPE_RADARCHART      = 'radarChart';
46 46
     const TYPE_BUBBLECHART     = 'bubbleChart';
47 47
     const TYPE_STOCKCHART      = 'stockChart';
48
-    const TYPE_CANDLECHART     = self::TYPE_STOCKCHART;       //    Synonym
48
+    const TYPE_CANDLECHART     = self::TYPE_STOCKCHART; //    Synonym
49 49
 
50 50
     const GROUPING_CLUSTERED       = 'clustered';
51 51
     const GROUPING_STACKED         = 'stacked';
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Legend.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
 class Legend
31 31
 {
32 32
     /** Legend positions */
33
-    const XL_LEGEND_POSITION_BOTTOM = -4107;    //    Below the chart.
34
-    const XL_LEGEND_POSITION_CORNER = 2;        //    In the upper right-hand corner of the chart border.
35
-    const XL_LEGEND_POSITION_CUSTOM = -4161;    //    A custom position.
36
-    const XL_LEGEND_POSITION_LEFT   = -4131;    //    Left of the chart.
37
-    const XL_LEGEND_POSITION_RIGHT  = -4152;    //    Right of the chart.
38
-    const XL_LEGEND_POSITION_TOP    = -4160;    //    Above the chart.
33
+    const XL_LEGEND_POSITION_BOTTOM = -4107; //    Below the chart.
34
+    const XL_LEGEND_POSITION_CORNER = 2; //    In the upper right-hand corner of the chart border.
35
+    const XL_LEGEND_POSITION_CUSTOM = -4161; //    A custom position.
36
+    const XL_LEGEND_POSITION_LEFT   = -4131; //    Left of the chart.
37
+    const XL_LEGEND_POSITION_RIGHT  = -4152; //    Right of the chart.
38
+    const XL_LEGEND_POSITION_TOP    = -4160; //    Above the chart.
39 39
 
40 40
     const POSITION_RIGHT    = 'r';
41 41
     const POSITION_LEFT     = 'l';
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeriesValues.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@
 block discarded – undo
293 293
             $calcEngine = \PHPExcel\Calculation::getInstance($worksheet->getParent());
294 294
             $newDataValues = \PHPExcel\Calculation::unwrapResult(
295 295
                 $calcEngine->_calculateFormulaValue(
296
-                    '='.$this->dataSource,
296
+                    '=' . $this->dataSource,
297 297
                     null,
298 298
                     $worksheet->getCell('A1')
299 299
                 )
Please login to merge, or discard this patch.
src/PhpSpreadsheet/CachedObjectStorageFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
             return false;
175 175
         }
176 176
 
177
-        $cacheStorageClass = '\\PHPExcel\\CachedObjectStorage\\'.$method;
177
+        $cacheStorageClass = '\\PHPExcel\\CachedObjectStorage\\' . $method;
178 178
         if (!call_user_func([$cacheStorageClass, 'cacheMethodIsAvailable'])) {
179 179
             return false;
180 180
         }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -618,7 +618,7 @@
 block discarded – undo
618 618
             $this->numberFormat->getHashCode() .
619 619
             $hashConditionals .
620 620
             $this->protection->getHashCode() .
621
-            ($this->quotePrefix  ? 't' : 'f') .
621
+            ($this->quotePrefix ? 't' : 'f') .
622 622
             __CLASS__
623 623
         );
624 624
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Spreadsheet.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -289,16 +289,16 @@  discard block
 block discarded – undo
289 289
             case 'names':
290 290
             case 'data':
291 291
                 if (is_array($this->ribbonBinObjects) && array_key_exists($What, $this->ribbonBinObjects)) {
292
-                    $ReturnData=$this->ribbonBinObjects[$What];
292
+                    $ReturnData = $this->ribbonBinObjects[$What];
293 293
                 }
294 294
                 break;
295 295
             case 'types':
296 296
                 if (is_array($this->ribbonBinObjects) &&
297 297
                     array_key_exists('data', $this->ribbonBinObjects) && is_array($this->ribbonBinObjects['data'])) {
298
-                    $tmpTypes=array_keys($this->ribbonBinObjects['data']);
298
+                    $tmpTypes = array_keys($this->ribbonBinObjects['data']);
299 299
                     $ReturnData = array_unique(array_map(array($this, 'getExtensionOnly'), $tmpTypes));
300 300
                 } else {
301
-                    $ReturnData=array(); // the caller want an array... not null if empty
301
+                    $ReturnData = array(); // the caller want an array... not null if empty
302 302
                 }
303 303
                 break;
304 304
         }
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
             $this->namedRanges[$namedRange->getName()] = $namedRange;
788 788
         } else {
789 789
             // local scope
790
-            $this->namedRanges[$namedRange->getScope()->getTitle().'!'.$namedRange->getName()] = $namedRange;
790
+            $this->namedRanges[$namedRange->getScope()->getTitle() . '!' . $namedRange->getName()] = $namedRange;
791 791
         }
792 792
         return true;
793 793
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/NumberFormat.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @var string
97 97
      */
98
-    protected $builtInFormatCode    = 0;
98
+    protected $builtInFormatCode = 0;
99 99
 
100 100
     /**
101 101
      * Create a new NumberFormat
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
             self::$builtInFormats[11] = '0.00E+00';
284 284
             self::$builtInFormats[12] = '# ?/?';
285 285
             self::$builtInFormats[13] = '# ??/??';
286
-            self::$builtInFormats[14] = 'm/d/yyyy';                     // Despite ECMA 'mm-dd-yy';
286
+            self::$builtInFormats[14] = 'm/d/yyyy'; // Despite ECMA 'mm-dd-yy';
287 287
             self::$builtInFormats[15] = 'd-mmm-yy';
288 288
             self::$builtInFormats[16] = 'd-mmm';
289 289
             self::$builtInFormats[17] = 'mmm-yy';
@@ -291,17 +291,17 @@  discard block
 block discarded – undo
291 291
             self::$builtInFormats[19] = 'h:mm:ss AM/PM';
292 292
             self::$builtInFormats[20] = 'h:mm';
293 293
             self::$builtInFormats[21] = 'h:mm:ss';
294
-            self::$builtInFormats[22] = 'm/d/yyyy h:mm';                // Despite ECMA 'm/d/yy h:mm';
294
+            self::$builtInFormats[22] = 'm/d/yyyy h:mm'; // Despite ECMA 'm/d/yy h:mm';
295 295
 
296
-            self::$builtInFormats[37] = '#,##0_);(#,##0)';              //  Despite ECMA '#,##0 ;(#,##0)';
297
-            self::$builtInFormats[38] = '#,##0_);[Red](#,##0)';         //  Despite ECMA '#,##0 ;[Red](#,##0)';
298
-            self::$builtInFormats[39] = '#,##0.00_);(#,##0.00)';        //  Despite ECMA '#,##0.00;(#,##0.00)';
299
-            self::$builtInFormats[40] = '#,##0.00_);[Red](#,##0.00)';   //  Despite ECMA '#,##0.00;[Red](#,##0.00)';
296
+            self::$builtInFormats[37] = '#,##0_);(#,##0)'; //  Despite ECMA '#,##0 ;(#,##0)';
297
+            self::$builtInFormats[38] = '#,##0_);[Red](#,##0)'; //  Despite ECMA '#,##0 ;[Red](#,##0)';
298
+            self::$builtInFormats[39] = '#,##0.00_);(#,##0.00)'; //  Despite ECMA '#,##0.00;(#,##0.00)';
299
+            self::$builtInFormats[40] = '#,##0.00_);[Red](#,##0.00)'; //  Despite ECMA '#,##0.00;[Red](#,##0.00)';
300 300
 
301 301
             self::$builtInFormats[44] = '_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)';
302 302
             self::$builtInFormats[45] = 'mm:ss';
303 303
             self::$builtInFormats[46] = '[h]:mm:ss';
304
-            self::$builtInFormats[47] = 'mm:ss.0';                      //  Despite ECMA 'mmss.0';
304
+            self::$builtInFormats[47] = 'mm:ss.0'; //  Despite ECMA 'mmss.0';
305 305
             self::$builtInFormats[48] = '##0.0E+0';
306 306
             self::$builtInFormats[49] = '@';
307 307
 
@@ -520,8 +520,8 @@  discard block
 block discarded – undo
520 520
 
521 521
         $GCD = \PHPExcel\Calculation\MathTrig::GCD($decimalPart, $decimalDivisor);
522 522
 
523
-        $adjustedDecimalPart = $decimalPart/$GCD;
524
-        $adjustedDecimalDivisor = $decimalDivisor/$GCD;
523
+        $adjustedDecimalPart = $decimalPart / $GCD;
524
+        $adjustedDecimalDivisor = $decimalDivisor / $GCD;
525 525
 
526 526
         if ((strpos($format, '0') !== false) || (strpos($format, '#') !== false) || (substr($format, 0, 3) == '? ?')) {
527 527
             if ($integerPart == 0) {
@@ -617,13 +617,13 @@  discard block
 block discarded – undo
617 617
                 break;
618 618
             case 3:
619 619
                 $format = ($value > 0) ?
620
-                    $sections[0] : ( ($value < 0) ?
620
+                    $sections[0] : (($value < 0) ?
621 621
                         $sections[1] : $sections[2]);
622 622
                 $value = abs($value); // Use the absolute value
623 623
                 break;
624 624
             case 4:
625 625
                 $format = ($value > 0) ?
626
-                    $sections[0] : ( ($value < 0) ?
626
+                    $sections[0] : (($value < 0) ?
627 627
                         $sections[1] : $sections[2]);
628 628
                 $value = abs($value); // Use the absolute value
629 629
                 break;
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
 
685 685
                 if (preg_match('/#?.*\?\/\?/', $format, $m)) {
686 686
                     //echo 'Format mask is fractional '.$format.' <br />';
687
-                    if ($value != (int)$value) {
687
+                    if ($value != (int) $value) {
688 688
                         self::formatAsFraction($value, $format);
689 689
                     }
690 690
                 } else {
Please login to merge, or discard this patch.