Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Apr 19, 2019
1 parent a6b396f commit a168a3e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Eav\Model\Entity\Attribute\Source;

/**
Expand Down Expand Up @@ -65,7 +66,7 @@ public function getOptionText($value)
{
$options = $this->getAllOptions();
// Fixed for tax_class_id and custom_design
if (sizeof($options) > 0) {
if (count($options) > 0) {
foreach ($options as $option) {
if (isset($option['value']) && $option['value'] == $value) {
return isset($option['label']) ? $option['label'] : $option['value'];
Expand Down Expand Up @@ -168,10 +169,11 @@ public function toOptionArray()
}

/**
* Multibyte support strcasecmp function version
* Multibyte support strcasecmp function version.
*
* @param string $str1
* @param string $str2
* @return int|\\lt
* @return int
*/
private function mbStrcasecmp($str1, $str2)
{
Expand Down

0 comments on commit a168a3e

Please sign in to comment.