mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-11 15:37:57 +00:00
forcely define returned data type
This commit is contained in:
parent
d557eb04c3
commit
22655dc71b
@ -155,16 +155,16 @@ try
|
|||||||
{
|
{
|
||||||
$users[] = (object)
|
$users[] = (object)
|
||||||
[
|
[
|
||||||
'userId' => $user->userId,
|
'userId' => (int) $user->userId,
|
||||||
'address' => $user->address,
|
'address' => (string) $user->address,
|
||||||
'timeAdded' => $user->timeAdded,
|
'timeAdded' => (int) $user->timeAdded,
|
||||||
'timeUpdated' => $user->timeUpdated,
|
'timeUpdated' => (int) $user->timeUpdated,
|
||||||
'approved' => (bool) $user->approved,
|
'approved' => (bool) $user->approved,
|
||||||
'magnets' => $db->findMagnetsTotalByUserId($user->userId),
|
'magnets' => (int) $db->findMagnetsTotalByUserId($user->userId),
|
||||||
'downloads' => $db->findMagnetDownloadsTotalByUserId($user->userId),
|
'downloads' => (int) $db->findMagnetDownloadsTotalByUserId($user->userId),
|
||||||
'comments' => $db->findMagnetCommentsTotalByUserId($user->userId),
|
'comments' => (int) $db->findMagnetCommentsTotalByUserId($user->userId),
|
||||||
'stars' => $db->findMagnetStarsTotalByUserId($user->userId),
|
'stars' => (int) $db->findMagnetStarsTotalByUserId($user->userId),
|
||||||
'views' => $db->findMagnetViewsTotalByUserId($user->userId),
|
'views' => (int) $db->findMagnetViewsTotalByUserId($user->userId),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,8 +197,8 @@ try
|
|||||||
if ($infoHash = $db->getInfoHash($result->infoHashId))
|
if ($infoHash = $db->getInfoHash($result->infoHashId))
|
||||||
{
|
{
|
||||||
$xt[] = (object) [
|
$xt[] = (object) [
|
||||||
'version' => $infoHash->version,
|
'version' => (float) $infoHash->version,
|
||||||
'value' => $infoHash->value,
|
'value' => (string) $infoHash->value,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -290,18 +290,18 @@ try
|
|||||||
|
|
||||||
$magnets[] = (object)
|
$magnets[] = (object)
|
||||||
[
|
[
|
||||||
'magnetId' => $magnet->magnetId,
|
'magnetId' => (int) $magnet->magnetId,
|
||||||
'userId' => $magnet->userId,
|
'userId' => (int) $magnet->userId,
|
||||||
'title' => $magnet->title,
|
'title' => (string) $magnet->title,
|
||||||
'preview' => $magnet->preview,
|
'preview' => (string) $magnet->preview,
|
||||||
'description' => $magnet->description,
|
'description' => (string) $magnet->description,
|
||||||
'comments' => (bool) $magnet->comments,
|
'comments' => (bool) $magnet->comments,
|
||||||
'sensitive' => (bool) $magnet->sensitive,
|
'sensitive' => (bool) $magnet->sensitive,
|
||||||
'approved' => (bool) $magnet->approved,
|
'approved' => (bool) $magnet->approved,
|
||||||
'timeAdded' => $magnet->timeAdded,
|
'timeAdded' => (int) $magnet->timeAdded,
|
||||||
'timeUpdated' => $magnet->timeUpdated,
|
'timeUpdated' => (int) $magnet->timeUpdated,
|
||||||
'dn' => $magnet->dn,
|
'dn' => (string) $magnet->dn,
|
||||||
'xl' => $magnet->xl,
|
'xl' => (float) $magnet->xl,
|
||||||
'xt' => (object) $xt,
|
'xt' => (object) $xt,
|
||||||
'kt' => (object) $kt,
|
'kt' => (object) $kt,
|
||||||
'tr' => (object) $tr,
|
'tr' => (object) $tr,
|
||||||
@ -335,10 +335,10 @@ try
|
|||||||
{
|
{
|
||||||
$magnetDownloads[] = (object)
|
$magnetDownloads[] = (object)
|
||||||
[
|
[
|
||||||
'magnetDownloadId' => $magnetDownload->magnetDownloadId,
|
'magnetDownloadId' => (int) $magnetDownload->magnetDownloadId,
|
||||||
'userId' => $magnetDownload->userId,
|
'userId' => (int) $magnetDownload->userId,
|
||||||
'magnetId' => $magnetDownload->magnetId,
|
'magnetId' => (int) $magnetDownload->magnetId,
|
||||||
'timeAdded' => $magnetDownload->timeAdded,
|
'timeAdded' => (int) $magnetDownload->timeAdded,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -364,13 +364,13 @@ try
|
|||||||
{
|
{
|
||||||
$magnetComments[] = (object)
|
$magnetComments[] = (object)
|
||||||
[
|
[
|
||||||
'magnetCommentId' => $magnetComment->magnetCommentId,
|
'magnetCommentId' => (int) $magnetComment->magnetCommentId,
|
||||||
'magnetCommentIdParent' => $magnetComment->magnetCommentIdParent,
|
'magnetCommentIdParent' => (int) $magnetComment->magnetCommentIdParent,
|
||||||
'userId' => $magnetComment->userId,
|
'userId' => (int) $magnetComment->userId,
|
||||||
'magnetId' => $magnetComment->magnetId,
|
'magnetId' => (int) $magnetComment->magnetId,
|
||||||
'timeAdded' => $magnetComment->timeAdded,
|
'timeAdded' => (int) $magnetComment->timeAdded,
|
||||||
'approved' => (bool) $magnetComment->approved,
|
'approved' => (bool) $magnetComment->approved,
|
||||||
'value' => $magnetComment->value
|
'value' => (string) $magnetComment->value
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -396,11 +396,11 @@ try
|
|||||||
{
|
{
|
||||||
$magnetStars[] = (object)
|
$magnetStars[] = (object)
|
||||||
[
|
[
|
||||||
'magnetStarId' => $magnetStar->magnetStarId,
|
'magnetStarId' => (int) $magnetStar->magnetStarId,
|
||||||
'userId' => $magnetStar->userId,
|
'userId' => (int) $magnetStar->userId,
|
||||||
'magnetId' => $magnetStar->magnetId,
|
'magnetId' => (int) $magnetStar->magnetId,
|
||||||
'value' => (bool) $magnetStar->value,
|
'value' => (bool) $magnetStar->value,
|
||||||
'timeAdded' => $magnetStar->timeAdded,
|
'timeAdded' => (int) $magnetStar->timeAdded,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -426,10 +426,10 @@ try
|
|||||||
{
|
{
|
||||||
$magnetViews[] = (object)
|
$magnetViews[] = (object)
|
||||||
[
|
[
|
||||||
'magnetViewId' => $magnetView->magnetViewId,
|
'magnetViewId' => (int) $magnetView->magnetViewId,
|
||||||
'userId' => $magnetView->userId,
|
'userId' => (int) $magnetView->userId,
|
||||||
'magnetId' => $magnetView->magnetId,
|
'magnetId' => (int) $magnetView->magnetId,
|
||||||
'timeAdded' => $magnetView->timeAdded,
|
'timeAdded' => (int) $magnetView->timeAdded,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user