/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Utility
NameSizeModeActions
Crypto/-0755rm
Exception/-0755rm
bootstrap.php6950644editdlrm
composer.json11490644editdlrm
CookieCryptTrait.php55900644editdlrm
Hash.php432410644editdlrm
Inflector.php173900644editdlrm
LICENSE.txt12040644editdlrm
MergeVariablesTrait.php39300644editdlrm
README.md24510644editdlrm
Security.php99760644editdlrm
Text.php410020644editdlrm
Xml.php167310644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Utility/MergeVariablesTrait.php (3930B)
{$property}; if ($thisValue === null || $thisValue === false) { continue; } $this->_mergeProperty($property, $parents, $options); } } /** * Merge a single property with the values declared in all parent classes. * * @param string $property The name of the property being merged. * @param array $parentClasses An array of classes you want to merge with. * @param array $options Options for merging the property, see _mergeVars() * @return void */ protected function _mergeProperty(string $property, array $parentClasses, array $options): void { $thisValue = $this->{$property}; $isAssoc = false; if ( isset($options['associative']) && in_array($property, (array)$options['associative'], true) ) { $isAssoc = true; } if ($isAssoc) { $thisValue = Hash::normalize($thisValue); } foreach ($parentClasses as $class) { $parentProperties = get_class_vars($class); if (empty($parentProperties[$property])) { continue; } $parentProperty = $parentProperties[$property]; if (!is_array($parentProperty)) { continue; } $thisValue = $this->_mergePropertyData($thisValue, $parentProperty, $isAssoc); } $this->{$property} = $thisValue; } /** * Merge each of the keys in a property together. * * @param array $current The current merged value. * @param array $parent The parent class' value. * @param bool $isAssoc Whether or not the merging should be done in associative mode. * @return mixed The updated value. */ protected function _mergePropertyData(array $current, array $parent, bool $isAssoc) { if (!$isAssoc) { return array_merge($parent, $current); } $parent = Hash::normalize($parent); foreach ($parent as $key => $value) { if (!isset($current[$key])) { $current[$key] = $value; } } return $current; } }