change array declarations

This commit is contained in:
Alessandro Minoccheri
2018-09-07 12:18:46 +02:00
committed by Ben Ramsey
parent 2074056769
commit c4cc058f3d
7 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -300,14 +300,14 @@ class UuidFactory implements UuidFactoryInterface
$timeHi = BinaryUtils::applyVersion(substr($hash, 12, 4), $version);
$clockSeqHi = BinaryUtils::applyVariant(hexdec(substr($hash, 16, 2)));
$fields = array(
$fields = [
'time_low' => substr($hash, 0, 8),
'time_mid' => substr($hash, 8, 4),
'time_hi_and_version' => str_pad(dechex($timeHi), 4, '0', STR_PAD_LEFT),
'clock_seq_hi_and_reserved' => str_pad(dechex($clockSeqHi), 2, '0', STR_PAD_LEFT),
'clock_seq_low' => substr($hash, 18, 2),
'node' => substr($hash, 20, 12),
);
];
return $this->uuid($fields);
}