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 : 24 Aug 2025 10:37:45
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/Pricing/Adjustment/

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

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/Pricing/Adjustment/Collection.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Pricing\Adjustment; /** * Adjustment collection model * * @api * @since 100.0.2 */ class Collection { /** * @var Pool */ protected $adjustmentPool; /** * @var string[] */ protected $adjustments; /** * @var AdjustmentInterface[] */ protected $adjustmentInstances; /** * @param Pool $adjustmentPool * @param string[] $adjustments */ public function __construct( Pool $adjustmentPool, array $adjustments ) { $this->adjustmentPool = $adjustmentPool; $this->adjustments = $adjustments; } /** * @return AdjustmentInterface[] */ public function getItems() { if ($this->adjustmentInstances === null) { $this->adjustmentInstances = $this->fetchAdjustments($this->adjustments); } return $this->adjustmentInstances; } /** * Get adjustment by code * * @param string $adjustmentCode * @throws \InvalidArgumentException * @return AdjustmentInterface */ public function getItemByCode($adjustmentCode) { if ($this->adjustmentInstances === null) { $this->adjustmentInstances = $this->fetchAdjustments($this->adjustments); } if (!isset($this->adjustmentInstances[$adjustmentCode])) { throw new \InvalidArgumentException(sprintf('Price adjustment "%s" is not found', $adjustmentCode)); } return $this->adjustmentInstances[$adjustmentCode]; } /** * @param string[] $adjustments * @return AdjustmentInterface[] */ protected function fetchAdjustments($adjustments) { $instances = []; foreach ($adjustments as $code) { $instances[$code] = $this->adjustmentPool->getAdjustmentByCode($code); } uasort($instances, [$this, 'sortAdjustments']); return $instances; } /** * Sort adjustments * * @param AdjustmentInterface $firstAdjustment * @param AdjustmentInterface $secondAdjustment * @return int */ protected function sortAdjustments(AdjustmentInterface $firstAdjustment, AdjustmentInterface $secondAdjustment) { if ($firstAdjustment->getSortOrder() === \Magento\Framework\Pricing\Adjustment\Pool::DEFAULT_SORT_ORDER) { return 1; } return $firstAdjustment->getSortOrder() > $secondAdjustment->getSortOrder() ? 1 : -1; } }