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

View File

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