Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 066a85d

Browse files
committed
PSR2 Fixes
1 parent 004d411 commit 066a85d

10 files changed

+46
-46
lines changed

Classes/PHPExcel/Cell.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
class PHPExcel_Cell
2929
{
30-
3130
/**
3231
* Default range variable constant
3332
*
@@ -227,6 +226,7 @@ public function setValueExplicit($pValue = null, $pDataType = PHPExcel_Cell_Data
227226
break;
228227
case PHPExcel_Cell_DataType::TYPE_STRING2:
229228
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING;
229+
// no break
230230
case PHPExcel_Cell_DataType::TYPE_STRING:
231231
// Synonym for string
232232
case PHPExcel_Cell_DataType::TYPE_INLINE:

Classes/PHPExcel/Reader/Excel5/RC4.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
class PHPExcel_Reader_Excel5_RC4
3636
{
3737
// Context
38-
var $s = array();
39-
var $i = 0;
40-
var $j = 0;
38+
protected $s = array();
39+
protected $i = 0;
40+
protected $j = 0;
4141

4242
/**
4343
* RC4 stream decryption/encryption constrcutor

Classes/PHPExcel/Shared/ZipStreamWrapper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function stream_stat()
131131
* @param int $count maximum number of bytes to read
132132
* @return string
133133
*/
134-
function stream_read($count)
134+
public function stream_read($count)
135135
{
136136
$ret = substr($this->_data, $this->_position, $count);
137137
$this->_position += strlen($ret);

Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private function _exponential_regression($yValues, $xValues, $const)
138138
* @param float[] $xValues The set of X-values for this regression
139139
* @param boolean $const
140140
*/
141-
function __construct($yValues, $xValues = array(), $const = true)
141+
public function __construct($yValues, $xValues = array(), $const = true)
142142
{
143143
if (parent::__construct($yValues, $xValues) !== false) {
144144
$this->_exponential_regression($yValues, $xValues, $const);

Classes/PHPExcel/Shared/trend/linearBestFitClass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function _linear_regression($yValues, $xValues, $const)
100100
* @param float[] $xValues The set of X-values for this regression
101101
* @param boolean $const
102102
*/
103-
function __construct($yValues, $xValues = array(), $const = true)
103+
public function __construct($yValues, $xValues = array(), $const = true)
104104
{
105105
if (parent::__construct($yValues, $xValues) !== false) {
106106
$this->_linear_regression($yValues, $xValues, $const);

Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function _logarithmic_regression($yValues, $xValues, $const)
108108
* @param float[] $xValues The set of X-values for this regression
109109
* @param boolean $const
110110
*/
111-
function __construct($yValues, $xValues = array(), $const = true)
111+
public function __construct($yValues, $xValues = array(), $const = true)
112112
{
113113
if (parent::__construct($yValues, $xValues) !== false) {
114114
$this->_logarithmic_regression($yValues, $xValues, $const);

Classes/PHPExcel/Shared/trend/polynomialBestFitClass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private function _polynomial_regression($order, $yValues, $xValues, $const)
213213
* @param float[] $xValues The set of X-values for this regression
214214
* @param boolean $const
215215
*/
216-
function __construct($order, $yValues, $xValues = array(), $const = true)
216+
public function __construct($order, $yValues, $xValues = array(), $const = true)
217217
{
218218
if (parent::__construct($yValues, $xValues) !== false) {
219219
if ($order < $this->_valueCount) {

Classes/PHPExcel/Shared/trend/powerBestFitClass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private function _power_regression($yValues, $xValues, $const)
138138
* @param float[] $xValues The set of X-values for this regression
139139
* @param boolean $const
140140
*/
141-
function __construct($yValues, $xValues = array(), $const = true)
141+
public function __construct($yValues, $xValues = array(), $const = true)
142142
{
143143
if (parent::__construct($yValues, $xValues) !== false) {
144144
$this->_power_regression($yValues, $xValues, $const);

Classes/PHPExcel/Shared/trend/trendClass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,4 @@ public static function calculate($trendType = self::TREND_BEST_FIT, $yValues, $x
153153
return false;
154154
}
155155
} // function calculate()
156-
} // class trendClass
156+
}

0 commit comments

Comments
 (0)