#401 : Support for namespaces

This commit is contained in:
Progi1984 2016-03-22 16:26:31 +01:00
parent 86bfdcba15
commit f546be620e
8 changed files with 8 additions and 9 deletions

View File

@ -2,7 +2,6 @@
namespace PHPExcel\Calculation; namespace PHPExcel\Calculation;
/** LOG_GAMMA_X_MAX_VALUE */ /** LOG_GAMMA_X_MAX_VALUE */
define('LOG_GAMMA_X_MAX_VALUE', 2.55e305); define('LOG_GAMMA_X_MAX_VALUE', 2.55e305);

View File

@ -74,7 +74,7 @@ class NamedRange
* @param Worksheet|null $pScope Scope. Only applies when $pLocalOnly = true. Null for global scope. * @param Worksheet|null $pScope Scope. Only applies when $pLocalOnly = true. Null for global scope.
* @throws Exception * @throws Exception
*/ */
public function __construct($pName = null, Worksheet $pWorksheet, $pRange = 'A1', $pLocalOnly = false, $pScope = null) public function __construct($pName, Worksheet $pWorksheet, $pRange = 'A1', $pLocalOnly = false, $pScope = null)
{ {
// Validate data // Validate data
if (($pName === null) || ($pWorksheet === null) || ($pRange === null)) { if (($pName === null) || ($pWorksheet === null) || ($pRange === null)) {
@ -229,7 +229,7 @@ class NamedRange
* @param Worksheet|null $pSheet Scope. Use null for global scope * @param Worksheet|null $pSheet Scope. Use null for global scope
* @return NamedRange * @return NamedRange
*/ */
public static function resolveRange($pNamedRange = '', Worksheet $pSheet) public static function resolveRange($pNamedRange, Worksheet $pSheet)
{ {
return $pSheet->getParent()->getNamedRange($pNamedRange, $pSheet); return $pSheet->getParent()->getNamedRange($pNamedRange, $pSheet);
} }

View File

@ -27,7 +27,7 @@ namespace PHPExcel\Shared\trend;
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
*/ */
class exponentialBestFit extends bestFit class ExponentialBestFit extends BestFit
{ {
/** /**
* Algorithm type to use for best-fit * Algorithm type to use for best-fit

View File

@ -27,7 +27,7 @@ namespace PHPExcel\Shared\trend;
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
*/ */
class linearBestFit extends bestFit class LinearBestFit extends BestFit
{ {
/** /**
* Algorithm type to use for best-fit * Algorithm type to use for best-fit

View File

@ -27,7 +27,7 @@ namespace PHPExcel\Shared\trend;
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
*/ */
class logarithmicBestFit extends bestFit class LogarithmicBestFit extends BestFit
{ {
/** /**
* Algorithm type to use for best-fit * Algorithm type to use for best-fit

View File

@ -27,7 +27,7 @@ namespace PHPExcel\Shared\trend;
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
*/ */
class polynomialBestFit extends bestFit class PolynomialBestFit extends BestFit
{ {
/** /**
* Algorithm type to use for best-fit * Algorithm type to use for best-fit

View File

@ -27,7 +27,7 @@ namespace PHPExcel\Shared\trend;
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
*/ */
class powerBestFit extends bestFit class PowerBestFit extends BestFit
{ {
/** /**
* Algorithm type to use for best-fit * Algorithm type to use for best-fit

View File

@ -1476,7 +1476,7 @@ class Worksheet implements IComparable
* @param $pValue Style\Conditional[] * @param $pValue Style\Conditional[]
* @return Worksheet * @return Worksheet
*/ */
public function setConditionalStyles($pCoordinate = 'A1', $pValue) public function setConditionalStyles($pCoordinate, $pValue)
{ {
$this->conditionalStylesCollection[strtoupper($pCoordinate)] = $pValue; $this->conditionalStylesCollection[strtoupper($pCoordinate)] = $pValue;
return $this; return $this;