mirror of
https://github.com/friendica/friendica
synced 2025-04-20 15:50:12 +00:00
Changes:
- added missing type-hints - added documentation - removed parameter $baseURL while it can be locally get the same way but lesser parameter - used ActivityNamespace::SALMON_ME - changed double-quotes to single
This commit is contained in:
parent
074bae33c9
commit
cfa575b8e5
10 changed files with 71 additions and 35 deletions
|
@ -109,7 +109,7 @@ class ApiResponse extends Response
|
|||
* @param int $cid Contact ID of template
|
||||
* @return array
|
||||
*/
|
||||
private function addRSSValues(array $arr, int $cid)
|
||||
private function addRSSValues(array $arr, int $cid): array
|
||||
{
|
||||
if (empty($cid)) {
|
||||
return $arr;
|
||||
|
@ -244,6 +244,8 @@ class ApiResponse extends Response
|
|||
* Wrapper around exit() for JSON only responses
|
||||
*
|
||||
* @param array $data
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function exitWithJson(array $data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue