- added more type-hints
- cleaned up some files (curly braces, spaces)
This commit is contained in:
Roland Häder 2022-06-23 07:16:22 +02:00
parent a1e17968d1
commit 04df7f6e05
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
74 changed files with 603 additions and 529 deletions

View file

@ -82,7 +82,7 @@ function wppost_settings(App &$a, array &$data)
}
function wppost_settings_post(&$a, &$b)
function wppost_settings_post(App $a, array &$b)
{
if(!empty($_POST['wppost-submit'])) {
DI::pConfig()->set(local_user(), 'wppost', 'post' , intval($_POST['wppost']));
@ -98,7 +98,7 @@ function wppost_settings_post(&$a, &$b)
}
}
function wppost_hook_fork(&$a, &$b)
function wppost_hook_fork(App $a, array &$b)
{
if ($b['name'] != 'notifier_normal') {
return;
@ -113,7 +113,7 @@ function wppost_hook_fork(&$a, &$b)
}
}
function wppost_post_local(&$a, &$b) {
function wppost_post_local(App $a, array &$b) {
// This can probably be changed to allow editing by pointing to a different API endpoint
@ -151,7 +151,7 @@ function wppost_post_local(&$a, &$b) {
function wppost_send(&$a, &$b)
function wppost_send(App $a, array &$b)
{
if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
return;