mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
Minor refactoring
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user