From 31a8571791c903b3e2722f1ad3779fd77c7d7d63 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 11 Nov 2015 23:53:06 +0100 Subject: [PATCH] Added type-hints Signed-off-by: Roland Haeder --- plugins/Linkback/LinkbackPlugin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Linkback/LinkbackPlugin.php b/plugins/Linkback/LinkbackPlugin.php index e3519dac9e..6644c129c0 100644 --- a/plugins/Linkback/LinkbackPlugin.php +++ b/plugins/Linkback/LinkbackPlugin.php @@ -139,7 +139,7 @@ class LinkbackPlugin extends Plugin // Based on https://github.com/indieweb/mention-client-php // which is licensed Apache 2.0 - function getWebmention($result) { + function getWebmention(Auth_Yadis_HTTPFetcher $result) { // XXX: the fetcher only gives back one of each header, so this may fail on multiple Link headers if(preg_match('~<((?:https?://)?[^>]+)>; rel="webmention"~', $result->headers['Link'], $match)) { return $match[1]; @@ -184,7 +184,7 @@ class LinkbackPlugin extends Plugin } } - function getPingback($result) { + function getPingback(Auth_Yadis_HTTPFetcher $result) { if (array_key_exists('X-Pingback', $result->headers)) { return $result->headers['X-Pingback']; } else if(preg_match('/<(?:link|a)[ ]+href="([^"]+)"[ ]+rel="[^" ]* ?pingback ?[^" ]*"[ ]*\/?>/i', $result->body, $match) @@ -229,7 +229,7 @@ class LinkbackPlugin extends Plugin // Largely cadged from trackback_cls.php by // Ran Aroussi , GPL2 or any later version // http://phptrackback.sourceforge.net/ - function getTrackback($result) + function getTrackback(Auth_Yadis_HTTPFetcher $result) { $text = $result->body; $url = $result->final_url; @@ -332,7 +332,7 @@ class LinkbackPlugin extends Plugin return true; } - function onEndAccountSettingsNav($action) + function onEndAccountSettingsNav(Action $action) { $action_name = $action->trimmed('action'); -- 2.39.5