@@ -204,7 +204,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
204
204
*
205
205
* @var PHPExcel_Worksheet_AutoFilter
206
206
*/
207
- private $ _autoFilter = NULL ;
207
+ private $ _autoFilter = null ;
208
208
209
209
/**
210
210
* Freeze pane
@@ -362,12 +362,12 @@ public function __construct(PHPExcel $pParent = null, $pTitle = 'Worksheet')
362
362
$ this ->_protection = new PHPExcel_Worksheet_Protection ();
363
363
364
364
// Default row dimension
365
- $ this ->_defaultRowDimension = new PHPExcel_Worksheet_RowDimension (NULL );
365
+ $ this ->_defaultRowDimension = new PHPExcel_Worksheet_RowDimension (null );
366
366
367
367
// Default column dimension
368
- $ this ->_defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension (NULL );
368
+ $ this ->_defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension (null );
369
369
370
- $ this ->_autoFilter = new PHPExcel_Worksheet_AutoFilter (NULL , $ this );
370
+ $ this ->_autoFilter = new PHPExcel_Worksheet_AutoFilter (null , $ this );
371
371
}
372
372
373
373
@@ -380,7 +380,7 @@ public function disconnectCells()
380
380
{
381
381
if ( $ this ->_cellCollection != null ){
382
382
$ this ->_cellCollection ->unsetWorksheetCells ();
383
- $ this ->_cellCollection = NULL ;
383
+ $ this ->_cellCollection = null ;
384
384
}
385
385
// detach ourself from the workbook, so that it can then delete this worksheet successfully
386
386
$ this ->_parent = null ;
@@ -391,7 +391,7 @@ public function disconnectCells()
391
391
*
392
392
*/
393
393
function __destruct () {
394
- if ($ this ->_cellCollection !== NULL ) {
394
+ if ($ this ->_cellCollection !== null ) {
395
395
$ this ->disconnectCells ();
396
396
}
397
397
}
@@ -451,7 +451,7 @@ public function getCellCollection($pSorted = true)
451
451
// Re-order cell collection
452
452
return $ this ->sortCellCollection ();
453
453
}
454
- if ($ this ->_cellCollection !== NULL ) {
454
+ if ($ this ->_cellCollection !== null ) {
455
455
return $ this ->_cellCollection ->getCellList ();
456
456
}
457
457
return array ();
@@ -464,7 +464,7 @@ public function getCellCollection($pSorted = true)
464
464
*/
465
465
public function sortCellCollection ()
466
466
{
467
- if ($ this ->_cellCollection !== NULL ) {
467
+ if ($ this ->_cellCollection !== null ) {
468
468
return $ this ->_cellCollection ->getSortedCellList ();
469
469
}
470
470
return array ();
@@ -1117,7 +1117,7 @@ public function getCell($pCoordinate = 'A1')
1117
1117
if ((!preg_match ('/^ ' .PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF .'$/i ' , $ pCoordinate , $ matches )) &&
1118
1118
(preg_match ('/^ ' .PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE .'$/i ' , $ pCoordinate , $ matches ))) {
1119
1119
$ namedRange = PHPExcel_NamedRange::resolveRange ($ pCoordinate , $ this );
1120
- if ($ namedRange !== NULL ) {
1120
+ if ($ namedRange !== null ) {
1121
1121
$ pCoordinate = $ namedRange ->getRange ();
1122
1122
return $ namedRange ->getWorksheet ()->getCell ($ pCoordinate );
1123
1123
}
@@ -1136,7 +1136,7 @@ public function getCell($pCoordinate = 'A1')
1136
1136
// Coordinates
1137
1137
$ aCoordinates = PHPExcel_Cell::coordinateFromString ($ pCoordinate );
1138
1138
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 ));
1140
1140
$ this ->_cellCollectionIsSorted = false ;
1141
1141
1142
1142
if (PHPExcel_Cell::columnIndexFromString ($ this ->_cachedHighestColumn ) < PHPExcel_Cell::columnIndexFromString ($ aCoordinates [0 ]))
@@ -1176,7 +1176,7 @@ public function getCellByColumnAndRow($pColumn = 0, $pRow = 1)
1176
1176
$ coordinate = $ columnLetter . $ pRow ;
1177
1177
1178
1178
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 ));
1180
1180
$ this ->_cellCollectionIsSorted = false ;
1181
1181
1182
1182
if (PHPExcel_Cell::columnIndexFromString ($ this ->_cachedHighestColumn ) < $ pColumn )
@@ -1209,7 +1209,7 @@ public function cellExists($pCoordinate = 'A1')
1209
1209
if ((!preg_match ('/^ ' .PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF .'$/i ' , $ pCoordinate , $ matches )) &&
1210
1210
(preg_match ('/^ ' .PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE .'$/i ' , $ pCoordinate , $ matches ))) {
1211
1211
$ namedRange = PHPExcel_NamedRange::resolveRange ($ pCoordinate , $ this );
1212
- if ($ namedRange !== NULL ) {
1212
+ if ($ namedRange !== null ) {
1213
1213
$ pCoordinate = $ namedRange ->getRange ();
1214
1214
if ($ this ->getHashCode () != $ namedRange ->getWorksheet ()->getHashCode ()) {
1215
1215
if (!$ namedRange ->getLocalOnly ()) {
@@ -1899,7 +1899,7 @@ public function setAutoFilterByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2
1899
1899
*/
1900
1900
public function removeAutoFilter ()
1901
1901
{
1902
- $ this ->_autoFilter ->setRange (NULL );
1902
+ $ this ->_autoFilter ->setRange (null );
1903
1903
return $ this ;
1904
1904
}
1905
1905
@@ -2442,7 +2442,7 @@ public function rangeToArray(
2442
2442
);
2443
2443
}
2444
2444
} else {
2445
- // Cell holds a NULL
2445
+ // Cell holds a null
2446
2446
$ returnValue [$ rRef ][$ cRef ] = $ nullValue ;
2447
2447
}
2448
2448
} else {
@@ -2475,7 +2475,7 @@ public function namedRangeToArray(
2475
2475
)
2476
2476
{
2477
2477
$ namedRange = PHPExcel_NamedRange::resolveRange ($ pNamedRange , $ this );
2478
- if ($ namedRange !== NULL ) {
2478
+ if ($ namedRange !== null ) {
2479
2479
$ pWorkSheet = $ namedRange ->getWorksheet ();
2480
2480
$ pCellRange = $ namedRange ->getRange ();
2481
2481
@@ -2759,7 +2759,7 @@ public function shrinkRangeToFit($range)
2759
2759
*/
2760
2760
public function getTabColor ()
2761
2761
{
2762
- if ($ this ->_tabColor === NULL )
2762
+ if ($ this ->_tabColor === null )
2763
2763
$ this ->_tabColor = new PHPExcel_Style_Color ();
2764
2764
2765
2765
return $ this ->_tabColor ;
@@ -2785,7 +2785,7 @@ public function resetTabColor()
2785
2785
*/
2786
2786
public function isTabColorSet ()
2787
2787
{
2788
- return ($ this ->_tabColor !== NULL );
2788
+ return ($ this ->_tabColor !== null );
2789
2789
}
2790
2790
2791
2791
/**
0 commit comments