mirror of
https://github.com/friendica/friendica
synced 2025-04-22 11:10:11 +00:00
Changes:
- fixed wrong type-hint uid => int - added returned type-hint - added some documentation - formatted arrays a bit
This commit is contained in:
parent
5ec407699b
commit
37bda3e5fb
3 changed files with 17 additions and 15 deletions
|
@ -67,6 +67,7 @@ class Receive extends BaseModule
|
|||
/**
|
||||
* Receive a public Diaspora posting
|
||||
*
|
||||
* @return void
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
|
@ -84,6 +85,7 @@ class Receive extends BaseModule
|
|||
/**
|
||||
* Receive a Diaspora posting for a user
|
||||
*
|
||||
* @return void
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
|
@ -127,7 +129,7 @@ class Receive extends BaseModule
|
|||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
private function decodePost(bool $public = true, string $privKey = '')
|
||||
private function decodePost(bool $public = true, string $privKey = ''): array
|
||||
{
|
||||
if (empty($_POST['xml'])) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue