Correct format/style errors

This commit is contained in:
Hank Grabowski 2023-02-28 11:41:53 -05:00
parent c33c624f83
commit 32bb097604
3 changed files with 30 additions and 12 deletions

View file

@ -189,8 +189,17 @@ class BaseApi extends BaseModule
return $params;
}
protected function updateBoundaries(Status $status, array $post_item, string $order) {
;
/**
* Update the ID/time boundaries for this result set. Used for building Link Headers
*
* @param Status $status
* @param array $post_item
* @param string $order
* @return void
* @throws \Exception
*/
protected function updateBoundaries(Status $status, array $post_item, string $order)
{
try {
switch ($order) {
case TimelineOrderByTypes::CHANGED:

View file

@ -52,16 +52,27 @@ class FriendicaExtension extends BaseDataTransferObject
/** @var int */
protected $dislikes_count;
/**
* Creates a status count object
*
* @param string $title
* @param string|null $changed_at
* @param string|null $commented_at
* @param string|null $edited_at
* @param string|null $received_at
* @param int $dislikes_count
* @param FriendicaDeliveryData $delivery_data
*/
public function __construct(string $title, ?string $changed_at, ?string $commented_at, ?string $edited_at, ?string $received_at,
int $dislikes_count, FriendicaDeliveryData $delivery_data)
{
public function __construct(
string $title,
?string $changed_at,
?string $commented_at,
?string $edited_at,
?string $received_at,
int $dislikes_count,
FriendicaDeliveryData $delivery_data
) {
$this->title = $title;
$this->changed_at = $changed_at;
$this->commented_at = $commented_at;
@ -106,5 +117,4 @@ class FriendicaExtension extends BaseDataTransferObject
{
return $this->received_at;
}
}

View file

@ -38,5 +38,4 @@ abstract class TimelineOrderByTypes
const ID = 'id';
const RECEIVED = 'received';
}