ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / 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
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
nelmio
/
alice
/
src
/
Parser
/
IncludeProcessor
/
Viewing: IncludeDataMerger.php
<?php /* * This file is part of the Alice package. * * (c) Nelmio <hello@nelm.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Nelmio\Alice\Parser\IncludeProcessor; use Nelmio\Alice\IsAServiceTrait; final class IncludeDataMerger { use IsAServiceTrait; /** * Merges a parsed file data with another. If some data overlaps, the existent data is kept, i.e. the included data * is discarded. * * @param array $data Parsed file data * @param array $includeData Parsed file data to merge */ public function mergeInclude(array $data, array $includeData): array { foreach ($data as $class => $fixtures) { // $class is either a FQCN or 'parameters' $includeData[$class] = ( array_key_exists($class, $includeData) && is_array($includeData[$class]) && is_array($fixtures) ) ? array_merge($includeData[$class], $fixtures) : $fixtures ; } return $includeData; } }
Coded With 💗 by
0x6ick