Skip to content

Commit 71ce3fa

Browse files
Stanislav Idolovjignesh-baldha
authored andcommitted
Update DefaultValidator.php
1 parent d60b3cf commit 71ce3fa

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

app/code/Magento/Catalog/Model/Product/Option/Validator/DefaultValidator.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function isValidOptionTitle($title, $storeId)
108108
}
109109

110110
// checking whether title is null and also changed is_empty to is_null
111-
if ($this->isNull($title)) {
111+
if ($title === null) {
112112
return false;
113113
}
114114

@@ -170,15 +170,4 @@ protected function isNegative($value)
170170
{
171171
return intval($value) < 0;
172172
}
173-
174-
/**
175-
* check whether title is null
176-
*
177-
* @param $title
178-
* @return bool
179-
*/
180-
protected function isNull($title)
181-
{
182-
return is_null($title);
183-
}
184173
}

0 commit comments

Comments
 (0)