[minor] SCA with Php Inspections (EA Ultimate) (#15871)

* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
This commit is contained in:
Vladimir Reznichenko
2018-03-11 23:37:19 +01:00
committed by Alexander Makarov
parent 80da46c32d
commit 1a74b3d4f8
25 changed files with 44 additions and 51 deletions

View File

@@ -310,7 +310,7 @@ class BaseStringHelper
*/
public static function normalizeNumber($value)
{
$value = "$value";
$value = (string)$value;
$localeInfo = localeconv();
$decimalSeparator = isset($localeInfo['decimal_point']) ? $localeInfo['decimal_point'] : null;