File tree Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public function displayProducts()
104
104
*/
105
105
public function getItems ()
106
106
{
107
- if (is_null ( $ this ->_itemCollection ) ) {
107
+ if (null === $ this ->_itemCollection ) {
108
108
$ this ->_prepareCollection ();
109
109
}
110
110
return $ this ->_itemCollection ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ protected function _preparePostCollection()
46
46
*/
47
47
public function getMonths ()
48
48
{
49
- if (is_null ( $ this ->_months ) ) {
49
+ if (null === $ this ->_months ) {
50
50
$ this ->_months = [];
51
51
$ this ->_preparePostCollection ();
52
52
foreach ($ this ->_postCollection as $ post ) {
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function __construct(
76
76
*/
77
77
public function getFeedUrl ()
78
78
{
79
- if (is_null ( $ this ->_feedUrl ) ) {
79
+ if (null === $ this ->_feedUrl ) {
80
80
$ this ->_feedUrl = 'https://mage ' .'fan '
81
81
.'.c ' .'om/community/notifications ' .'/ ' .'feed/ ' ;
82
82
}
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ public function getParentComment()
238
238
*/
239
239
public function getChildComments ()
240
240
{
241
- if (is_null ( $ this ->comments ) ) {
241
+ if (null === $ this ->comments ) {
242
242
$ this ->comments = $ this ->commentCollectionFactory ->create ()
243
243
->addFieldToFilter ('parent_id ' , $ this ->getId ());
244
244
}
Original file line number Diff line number Diff line change @@ -625,7 +625,7 @@ public function getOgImage()
625
625
*/
626
626
public function getParentCategories ()
627
627
{
628
- if (is_null ( $ this ->_parentCategories ) ) {
628
+ if (null === $ this ->_parentCategories ) {
629
629
$ this ->_parentCategories = $ this ->_categoryCollectionFactory ->create ()
630
630
->addFieldToFilter ('category_id ' , ['in ' => $ this ->getCategories ()])
631
631
->addStoreFilter ($ this ->getStoreId ())
@@ -671,7 +671,7 @@ public function getCategoriesCount()
671
671
*/
672
672
public function getRelatedTags ()
673
673
{
674
- if (is_null ( $ this ->_relatedTags ) ) {
674
+ if (null === $ this ->_relatedTags ) {
675
675
$ this ->_relatedTags = $ this ->_tagCollectionFactory ->create ()
676
676
->addFieldToFilter ('tag_id ' , ['in ' => $ this ->getTags ()])
677
677
->addActiveFilter ()
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ protected function _afterSave(\Magento\Framework\Model\AbstractModel $object)
141
141
*/
142
142
public function load (\Magento \Framework \Model \AbstractModel $ object , $ value , $ field = null )
143
143
{
144
- if (!is_numeric ($ value ) && is_null ( $ field) ) {
144
+ if (!is_numeric ($ value ) && null === $ field ) {
145
145
$ field = 'identifier ' ;
146
146
}
147
147
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ protected function _updateLinks(
274
274
*/
275
275
public function load (\Magento \Framework \Model \AbstractModel $ object , $ value , $ field = null )
276
276
{
277
- if (!is_numeric ($ value ) && is_null ( $ field) ) {
277
+ if (!is_numeric ($ value ) && null === $ field ) {
278
278
$ field = 'identifier ' ;
279
279
}
280
280
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ protected function _beforeSave(\Magento\Framework\Model\AbstractModel $object)
93
93
*/
94
94
public function load (\Magento \Framework \Model \AbstractModel $ object , $ value , $ field = null )
95
95
{
96
- if (!is_numeric ($ value ) && is_null ( $ field) ) {
96
+ if (!is_numeric ($ value ) && null === $ field ) {
97
97
$ field = 'identifier ' ;
98
98
}
99
99
You can’t perform that action at this time.
0 commit comments