fix phpcs and phpstan errors
Signed-off-by: aonamrata <aonamrata@gmail.com>
This commit is contained in:
parent
712dd4bdfd
commit
42409df462
@ -29,6 +29,7 @@ use function array_keys;
|
||||
use function mb_strtoupper;
|
||||
use function md5;
|
||||
use function strnatcasecmp;
|
||||
use function strnatcmp;
|
||||
use function strtoupper;
|
||||
use function uksort;
|
||||
use function usort;
|
||||
@ -180,9 +181,10 @@ final class RelationController implements InvocableController
|
||||
uksort($columnArray, strnatcasecmp(...));
|
||||
usort(
|
||||
$relationsForeign,
|
||||
fn (ForeignKeyObject $before, ForeignKeyObject $after) => strnatcmp(
|
||||
$before->constraint, $after->constraint
|
||||
)
|
||||
static fn (ForeignKeyObject $before, ForeignKeyObject $after) => strnatcmp(
|
||||
$before->constraint ?? '',
|
||||
$after->constraint ?? '',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user