File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -710,7 +710,7 @@ public function getAttributes()
710
710
*/
711
711
public function hasAttribute ($ name )
712
712
{
713
- return isset ( $ this ->attributes [ $ name ] );
713
+ return array_key_exists ( $ name , $ this ->attributes );
714
714
}
715
715
716
716
/**
@@ -723,7 +723,7 @@ public function hasAttribute($name)
723
723
*/
724
724
public function getAttribute ($ name , $ default = null )
725
725
{
726
- return isset ( $ this ->attributes [ $ name ] ) ? $ this ->attributes [$ name ] : $ default ;
726
+ return array_key_exists ( $ name , $ this ->attributes ) ? $ this ->attributes [$ name ] : $ default ;
727
727
}
728
728
729
729
/**
@@ -785,7 +785,7 @@ public function getOptions()
785
785
*/
786
786
public function hasOption ($ name )
787
787
{
788
- return isset ( $ this ->options [ $ name ] );
788
+ return array_key_exists ( $ name , $ this ->options );
789
789
}
790
790
791
791
/**
@@ -798,7 +798,7 @@ public function hasOption($name)
798
798
*/
799
799
public function getOption ($ name , $ default = null )
800
800
{
801
- return isset ( $ this ->options [ $ name ] ) ? $ this ->options [$ name ] : $ default ;
801
+ return array_key_exists ( $ name , $ this ->options ) ? $ this ->options [$ name ] : $ default ;
802
802
}
803
803
804
804
/**
Original file line number Diff line number Diff line change @@ -392,15 +392,15 @@ public function getAttributes()
392
392
*/
393
393
public function hasAttribute ($ name )
394
394
{
395
- return isset ( $ this ->attributes [ $ name ] );
395
+ return array_key_exists ( $ name , $ this ->attributes );
396
396
}
397
397
398
398
/**
399
399
* {@inheritdoc}
400
400
*/
401
401
public function getAttribute ($ name , $ default = null )
402
402
{
403
- return isset ( $ this ->attributes [ $ name ] ) ? $ this ->attributes [$ name ] : $ default ;
403
+ return array_key_exists ( $ name , $ this ->attributes ) ? $ this ->attributes [$ name ] : $ default ;
404
404
}
405
405
406
406
/**
@@ -448,15 +448,15 @@ public function getOptions()
448
448
*/
449
449
public function hasOption ($ name )
450
450
{
451
- return isset ( $ this ->options [ $ name ] );
451
+ return array_key_exists ( $ name , $ this ->options );
452
452
}
453
453
454
454
/**
455
455
* {@inheritdoc}
456
456
*/
457
457
public function getOption ($ name , $ default = null )
458
458
{
459
- return isset ( $ this ->options [ $ name ] ) ? $ this ->options [$ name ] : $ default ;
459
+ return array_key_exists ( $ name , $ this ->options ) ? $ this ->options [$ name ] : $ default ;
460
460
}
461
461
462
462
/**
You can’t perform that action at this time.
0 commit comments