Browse Source

Removed unused method

tags/2.0.11
Alexander Makarov 8 years ago
parent
commit
3f66f1907f
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 20
      framework/validators/NumberValidator.php

20
framework/validators/NumberValidator.php

@ -119,26 +119,6 @@ class NumberValidator extends Validator
}
/**
* Returns string represenation of number value with replaced commas to dots, if decimal point
* of current locale is comma
* @param int|float|string $value
* @return string
*/
private function getStringValue($value)
{
$value = "$value";
$localeInfo = localeconv();
$decimalSeparator = isset($localeInfo['decimal_point']) ? $localeInfo['decimal_point'] : null;
if ($decimalSeparator !== null && $decimalSeparator !== '.') {
$value = str_replace($decimalSeparator, '.', $value);
}
return $value;
}
/**
* @inheritdoc
*/
public function clientValidateAttribute($model, $attribute, $view)

Loading…
Cancel
Save