Skip to content

Commit 7b922bb

Browse files
author
Dominik Bonsch
committed
changed NULL to null
1 parent 6ae1a50 commit 7b922bb

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Classes/PHPExcel/Worksheet.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
204204
*
205205
* @var PHPExcel_Worksheet_AutoFilter
206206
*/
207-
private $_autoFilter = NULL;
207+
private $_autoFilter = null;
208208

209209
/**
210210
* Freeze pane
@@ -362,12 +362,12 @@ public function __construct(PHPExcel $pParent = null, $pTitle = 'Worksheet')
362362
$this->_protection = new PHPExcel_Worksheet_Protection();
363363

364364
// Default row dimension
365-
$this->_defaultRowDimension = new PHPExcel_Worksheet_RowDimension(NULL);
365+
$this->_defaultRowDimension = new PHPExcel_Worksheet_RowDimension(null);
366366

367367
// Default column dimension
368-
$this->_defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension(NULL);
368+
$this->_defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension(null);
369369

370-
$this->_autoFilter = new PHPExcel_Worksheet_AutoFilter(NULL, $this);
370+
$this->_autoFilter = new PHPExcel_Worksheet_AutoFilter(null, $this);
371371
}
372372

373373

@@ -380,7 +380,7 @@ public function disconnectCells()
380380
{
381381
if ( $this->_cellCollection != null ){
382382
$this->_cellCollection->unsetWorksheetCells();
383-
$this->_cellCollection = NULL;
383+
$this->_cellCollection = null;
384384
}
385385
// detach ourself from the workbook, so that it can then delete this worksheet successfully
386386
$this->_parent = null;
@@ -391,7 +391,7 @@ public function disconnectCells()
391391
*
392392
*/
393393
function __destruct() {
394-
if ($this->_cellCollection !== NULL) {
394+
if ($this->_cellCollection !== null) {
395395
$this->disconnectCells();
396396
}
397397
}
@@ -451,7 +451,7 @@ public function getCellCollection($pSorted = true)
451451
// Re-order cell collection
452452
return $this->sortCellCollection();
453453
}
454-
if ($this->_cellCollection !== NULL) {
454+
if ($this->_cellCollection !== null) {
455455
return $this->_cellCollection->getCellList();
456456
}
457457
return array();
@@ -464,7 +464,7 @@ public function getCellCollection($pSorted = true)
464464
*/
465465
public function sortCellCollection()
466466
{
467-
if ($this->_cellCollection !== NULL) {
467+
if ($this->_cellCollection !== null) {
468468
return $this->_cellCollection->getSortedCellList();
469469
}
470470
return array();
@@ -1117,7 +1117,7 @@ public function getCell($pCoordinate = 'A1')
11171117
if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) &&
11181118
(preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) {
11191119
$namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this);
1120-
if ($namedRange !== NULL) {
1120+
if ($namedRange !== null) {
11211121
$pCoordinate = $namedRange->getRange();
11221122
return $namedRange->getWorksheet()->getCell($pCoordinate);
11231123
}
@@ -1136,7 +1136,7 @@ public function getCell($pCoordinate = 'A1')
11361136
// Coordinates
11371137
$aCoordinates = PHPExcel_Cell::coordinateFromString($pCoordinate);
11381138

1139-
$cell = $this->_cellCollection->addCacheData($pCoordinate,new PHPExcel_Cell($pCoordinate, NULL, PHPExcel_Cell_DataType::TYPE_NULL, $this));
1139+
$cell = $this->_cellCollection->addCacheData($pCoordinate,new PHPExcel_Cell($pCoordinate, null, PHPExcel_Cell_DataType::TYPE_NULL, $this));
11401140
$this->_cellCollectionIsSorted = false;
11411141

11421142
if (PHPExcel_Cell::columnIndexFromString($this->_cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($aCoordinates[0]))
@@ -1176,7 +1176,7 @@ public function getCellByColumnAndRow($pColumn = 0, $pRow = 1)
11761176
$coordinate = $columnLetter . $pRow;
11771177

11781178
if (!$this->_cellCollection->isDataSet($coordinate)) {
1179-
$cell = $this->_cellCollection->addCacheData($coordinate, new PHPExcel_Cell($coordinate, NULL, PHPExcel_Cell_DataType::TYPE_NULL, $this));
1179+
$cell = $this->_cellCollection->addCacheData($coordinate, new PHPExcel_Cell($coordinate, null, PHPExcel_Cell_DataType::TYPE_NULL, $this));
11801180
$this->_cellCollectionIsSorted = false;
11811181

11821182
if (PHPExcel_Cell::columnIndexFromString($this->_cachedHighestColumn) < $pColumn)
@@ -1209,7 +1209,7 @@ public function cellExists($pCoordinate = 'A1')
12091209
if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) &&
12101210
(preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) {
12111211
$namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this);
1212-
if ($namedRange !== NULL) {
1212+
if ($namedRange !== null) {
12131213
$pCoordinate = $namedRange->getRange();
12141214
if ($this->getHashCode() != $namedRange->getWorksheet()->getHashCode()) {
12151215
if (!$namedRange->getLocalOnly()) {
@@ -1899,7 +1899,7 @@ public function setAutoFilterByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2
18991899
*/
19001900
public function removeAutoFilter()
19011901
{
1902-
$this->_autoFilter->setRange(NULL);
1902+
$this->_autoFilter->setRange(null);
19031903
return $this;
19041904
}
19051905

@@ -2442,7 +2442,7 @@ public function rangeToArray(
24422442
);
24432443
}
24442444
} else {
2445-
// Cell holds a NULL
2445+
// Cell holds a null
24462446
$returnValue[$rRef][$cRef] = $nullValue;
24472447
}
24482448
} else {
@@ -2475,7 +2475,7 @@ public function namedRangeToArray(
24752475
)
24762476
{
24772477
$namedRange = PHPExcel_NamedRange::resolveRange($pNamedRange, $this);
2478-
if ($namedRange !== NULL) {
2478+
if ($namedRange !== null) {
24792479
$pWorkSheet = $namedRange->getWorksheet();
24802480
$pCellRange = $namedRange->getRange();
24812481

@@ -2759,7 +2759,7 @@ public function shrinkRangeToFit($range)
27592759
*/
27602760
public function getTabColor()
27612761
{
2762-
if ($this->_tabColor === NULL)
2762+
if ($this->_tabColor === null)
27632763
$this->_tabColor = new PHPExcel_Style_Color();
27642764

27652765
return $this->_tabColor;
@@ -2785,7 +2785,7 @@ public function resetTabColor()
27852785
*/
27862786
public function isTabColorSet()
27872787
{
2788-
return ($this->_tabColor !== NULL);
2788+
return ($this->_tabColor !== null);
27892789
}
27902790

27912791
/**

0 commit comments

Comments
 (0)