Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
rest-api
/
vendor
/
jms
/
serializer
/
src
/
Ordering
/
File Content:
AlphabeticalPropertyOrderingStrategy.php
<?php declare (strict_types=1); namespace PleskRestApi\JMS\Serializer\Ordering; use PleskRestApi\JMS\Serializer\Metadata\PropertyMetadata; final class AlphabeticalPropertyOrderingStrategy implements PropertyOrderingInterface { /** * {@inheritdoc} */ public function order(array $properties) : array { \uasort($properties, static fn(PropertyMetadata $a, PropertyMetadata $b): int => \strcmp($a->name, $b->name)); return $properties; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
AlphabeticalPropertyOrderingStrategy.php
480 bytes
0644
CustomPropertyOrderingStrategy.php
1158 bytes
0644
IdenticalPropertyOrderingStrategy.php
299 bytes
0644
PropertyOrderingInterface.php
371 bytes
0644
N4ST4R_ID | Naxtarrr