$fileIds =
[];
$profiles =
[];
$profileIds =
[];
$activities =
[];
if ($num > 0
) { // Dependencies
$users =
$this->
prepareUsers(2
);
$userIds =
array_column($users, 'id'
);
$files =
$this->
prepareFiles(2
);
$fileIds =
array_column($files, 'id'
);
$profiles =
$this->
prepareProfiles(2
);
$profileIds =
array_column($profiles, 'id'
);
$activities =
[0 => 'import', 1 => 'export'
];
} for ($i = 1;
$i <=
$num; ++
$i) { $uuid = Uuid::
randomHex();
$profile =
$profiles[Uuid::
fromHexToBytes($profileIds[$i % 2
])];
$data[Uuid::
fromHexToBytes($uuid)] =
[ 'id' =>
$uuid,
'activity' =>
$activities[$i % 2
] ?? null,