Minor refactoring

This commit is contained in:
Meritoo
2019-03-24 22:19:45 +01:00
parent 56b058ca1d
commit 5022efb9a3
2 changed files with 7 additions and 8 deletions

View File

@@ -397,8 +397,8 @@ class Arrays
$counter = 0;
$arrayCount = count($array);
$array = self::quoteStrings($array);
$isMultiDimensional = self::isMultiDimensional($array);
$arrayPrepared = self::quoteStrings($array);
$isMultiDimensional = self::isMultiDimensional($arrayPrepared);
/*
* Name of the variable was not provided and it's a multi dimensional array?
@@ -419,7 +419,7 @@ class Arrays
$result .= ');';
}
foreach ($array as $index => $value) {
foreach ($arrayPrepared as $index => $value) {
++$counter;
if (is_array($value)) {
@@ -1483,12 +1483,11 @@ class Arrays
}
$effect[$key] = $diff;
} elseif ($value !== $array2[$key]) {
/*
* Value is different than in 2nd array?
* OKay, I've got difference
*/
} elseif ($value !== $array2[$key]) {
$effect[$key] = $value;
}
} else {

View File

@@ -22,7 +22,7 @@ class Version
*
* @var int
*/
private $majorPart;
protected $majorPart;
/**
* The "minor" part.
@@ -30,7 +30,7 @@ class Version
*
* @var int
*/
private $minorPart;
protected $minorPart;
/**
* The "patch" part.
@@ -38,7 +38,7 @@ class Version
*
* @var int
*/
private $patchPart;
protected $patchPart;
/**
* Class constructor