Continued:

- removed optional "null", was not in original code
- added spaces into SQL query
- added space
- added back & (call-by-reference)
- removed no longer used parameter
- added type-hint App

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2018-07-06 22:32:37 +02:00
parent ac46a91a2c
commit 50d82f4004
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
15 changed files with 22 additions and 20 deletions

View file

@ -139,7 +139,8 @@ function blockem_prepare_body_content_filter(App $a, array &$hook_data)
} }
} }
function blockem_display_item(App $a, array &$b = null) { function blockem_display_item(App $a, array &$b)
{
if (strstr($b['output']['body'],'id="blockem-wrap-')) { if (strstr($b['output']['body'],'id="blockem-wrap-')) {
$b['output']['thumb'] = $a->get_baseurl() . "/images/person-80.jpg"; $b['output']['thumb'] = $a->get_baseurl() . "/images/person-80.jpg";
} }

View file

@ -50,7 +50,7 @@ function dwpost_jot_nets(App $a, &$b) {
} }
function dwpost_settings(App $a, $s) { function dwpost_settings(App $a, &$s) {
if(! local_user()) if(! local_user())
return; return;
@ -171,7 +171,7 @@ function dwpost_send(App $a, array &$b) {
$tz = 'UTC'; $tz = 'UTC';
$x = q("SELECT `timezone` FROM `user` WHERE `uid`=%d LIMIT 1", $x = q("SELECT `timezone` FROM `user` WHERE `uid` = %d LIMIT 1",
intval($b['uid']) intval($b['uid'])
); );

View file

@ -39,7 +39,7 @@ function fromgplus_uninstall() {
Addon::unregisterHook('addon_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post'); Addon::unregisterHook('addon_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
} }
function fromgplus_addon_settings(App $a, $s) { function fromgplus_addon_settings(App $a, &$s) {
if(! local_user()) if(! local_user())
return; return;

View file

@ -40,7 +40,7 @@ function geocoordinates_resolve_item(array &$item)
$language = Config::get("geocoordinates", "language", "de"); $language = Config::get("geocoordinates", "language", "de");
$coords = explode(' ',$item["coord"]); $coords = explode(' ', $item["coord"]);
if (count($coords) < 2) { if (count($coords) < 2) {
return; return;

View file

@ -168,7 +168,7 @@ function geonames_addon_admin_post($a,$post) {
function geonames_addon_admin(App $a, $s) { function geonames_addon_admin(App $a, &$s) {
if(! local_user()) if(! local_user())
return; return;

View file

@ -58,7 +58,7 @@ function group_text_settings_post($a,$post) {
function group_text_settings(App $a, $s) { function group_text_settings(App $a, &$s) {
if(! local_user()) if(! local_user())
return; return;

View file

@ -169,7 +169,7 @@ function ijpost_send(App $a, array &$b) {
$tz = 'UTC'; $tz = 'UTC';
$x = q("SELECT `timezone` FROM `user` WHERE `uid`=%d LIMIT 1", $x = q("SELECT `timezone` FROM `user` WHERE `uid` = %d LIMIT 1",
intval($b['uid']) intval($b['uid'])
); );

View file

@ -26,7 +26,7 @@ function irc_uninstall() {
} }
function irc_addon_settings(App $a, $s) { function irc_addon_settings(App $a, &$s) {
if(! local_user()) if(! local_user())
return; return;

View file

@ -136,7 +136,7 @@ function krynn_settings_post($a,$post) {
function krynn_settings(App $a, $s) { function krynn_settings(App $a, &$s) {
if(! local_user()) if(! local_user())
return; return;

View file

@ -45,7 +45,7 @@ function libertree_jot_nets(App $a, &$b) {
} }
function libertree_settings(App $a,&$s) { function libertree_settings(App $a, &$s) {
if(! local_user()) if(! local_user())
return; return;

View file

@ -35,7 +35,7 @@ function pageheader_uninstall() {
function pageheader_addon_settings(App $a, $s) { function pageheader_addon_settings(App $a, &$s) {
if(! is_site_admin()) if(! is_site_admin())

View file

@ -712,7 +712,7 @@ function statusnet_prepare_body(App $a, array &$b)
} }
} }
function statusnet_cron(App $a, array &$b = null) function statusnet_cron(App $a)
{ {
$last = Config::get('statusnet', 'last_poll'); $last = Config::get('statusnet', 'last_poll');

View file

@ -35,16 +35,17 @@ function testdrive_uninstall() {
} }
function testdrive_load_config(\Friendica\App $a) function testdrive_load_config(App $a)
{ {
$a->loadConfigFile(__DIR__. '/config/testdrive.ini.php'); $a->loadConfigFile(__DIR__. '/config/testdrive.ini.php');
} }
function testdrive_globaldir_update($a,&$b) { function testdrive_globaldir_update(App $a, &$b)
{
$b['url'] = ''; $b['url'] = '';
} }
function testdrive_register_account($a,$b) { function testdrive_register_account(App $a, $b) {
$uid = $b; $uid = $b;
@ -60,7 +61,7 @@ function testdrive_register_account($a,$b) {
}; };
function testdrive_cron($a,$b) { function testdrive_cron(App $a) {
require_once('include/enotify.php'); require_once('include/enotify.php');
$r = q("SELECT * FROM `user` WHERE `account_expires_on` < UTC_TIMESTAMP() + INTERVAL 5 DAY AND $r = q("SELECT * FROM `user` WHERE `account_expires_on` < UTC_TIMESTAMP() + INTERVAL 5 DAY AND

View file

@ -188,7 +188,7 @@ function tumblr_jot_nets(App $a, &$b) {
} }
function tumblr_settings(App $a, $s) { function tumblr_settings(App $a, &$s) {
if (! local_user()) { if (! local_user()) {
return; return;

View file

@ -658,7 +658,7 @@ function twitter_addon_admin(App $a, &$o)
]); ]);
} }
function twitter_cron(App $a, array &$b) function twitter_cron(App $a)
{ {
$last = Config::get('twitter', 'last_poll'); $last = Config::get('twitter', 'last_poll');
@ -726,7 +726,7 @@ function twitter_cron(App $a, array &$b)
Config::set('twitter', 'last_poll', time()); Config::set('twitter', 'last_poll', time());
} }
function twitter_expire(App $a, array &$b) function twitter_expire(App $a)
{ {
$days = Config::get('twitter', 'expire'); $days = Config::get('twitter', 'expire');