From b19c68bd8fd798acab34e0987742997fc661bc4e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 31 Jan 2015 17:50:11 +0100 Subject: [PATCH] onEndShowStyles() only uses 'Action' as well. Signed-off-by: Roland Haeder --- plugins/AccountManager/AccountManagerPlugin.php | 2 +- plugins/ActivitySpam/ActivitySpamPlugin.php | 2 +- plugins/Bookmark/BookmarkPlugin.php | 2 +- plugins/Event/EventPlugin.php | 2 +- plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php | 2 +- .../GNUsocialProfileExtensionsPlugin.php | 2 +- plugins/Mobile/WAP20Plugin.php | 2 +- plugins/MobileProfile/MobileProfilePlugin.php | 2 +- plugins/Poll/PollPlugin.php | 2 +- plugins/QnA/QnAPlugin.php | 2 +- plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php | 2 +- plugins/TinyMCE/TinyMCEPlugin.php | 2 +- plugins/WebFinger/WebFingerPlugin.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/AccountManager/AccountManagerPlugin.php b/plugins/AccountManager/AccountManagerPlugin.php index 768f71510f..24a95395a3 100644 --- a/plugins/AccountManager/AccountManagerPlugin.php +++ b/plugins/AccountManager/AccountManagerPlugin.php @@ -61,7 +61,7 @@ class AccountManagerPlugin extends Plugin common_local_url('AccountManagementControlDocument')); } - function onStartShowHTML($action) + function onStartShowHTML(Action $action) { //Account management discovery link header('Link: <'.common_local_url('AccountManagementControlDocument').'>; rel="'. AccountManagerPlugin::AM_REL.'"; type="application/json"'); diff --git a/plugins/ActivitySpam/ActivitySpamPlugin.php b/plugins/ActivitySpam/ActivitySpamPlugin.php index 9d61b2dddd..ae4bf9a7fb 100644 --- a/plugins/ActivitySpam/ActivitySpamPlugin.php +++ b/plugins/ActivitySpam/ActivitySpamPlugin.php @@ -191,7 +191,7 @@ class ActivitySpamPlugin extends Plugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->element('style', null, '.form-train-spam input.submit { background: url('.$this->path('icons/bullet_black.png').') no-repeat 0px 0px } ' . "\n" . diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index d7bd2de87e..234e8accac 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -94,7 +94,7 @@ class BookmarkPlugin extends MicroAppPlugin * * @return boolean hook value */ - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/bookmark.css')); return true; diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index 54046d57d5..b64779fa77 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -296,7 +296,7 @@ class EventPlugin extends MicroAppPlugin $action->script($this->path('js/event.js')); } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/event.css')); return true; diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php index 986b5457a6..598af388fb 100644 --- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php +++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php @@ -157,7 +157,7 @@ class GNUsocialPhotosPlugin extends Plugin _('Photo gallery'), $nav->action->trimmed('action') == 'photos', 'nav_photos'); } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink('/plugins/GNUsocialPhotos/res/style.css'); } diff --git a/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php b/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php index abef3f47cf..cf8eda17c9 100644 --- a/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php +++ b/plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php @@ -102,7 +102,7 @@ class GNUsocialProfileExtensionsPlugin extends Plugin } } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink('/plugins/GNUsocialProfileExtensions/res/style.css'); } diff --git a/plugins/Mobile/WAP20Plugin.php b/plugins/Mobile/WAP20Plugin.php index fc5008cda6..a48a32e9f1 100644 --- a/plugins/Mobile/WAP20Plugin.php +++ b/plugins/Mobile/WAP20Plugin.php @@ -43,7 +43,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { class WAP20Plugin extends Plugin { - function onStartShowHTML($action) + function onStartShowHTML(Action $action) { } diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index c496eb0fcb..145311d5b0 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -59,7 +59,7 @@ class MobileProfilePlugin extends WAP20Plugin parent::__construct(); } - function onStartShowHTML($action) + function onStartShowHTML(Action $action) { // XXX: This should probably graduate to WAP20Plugin diff --git a/plugins/Poll/PollPlugin.php b/plugins/Poll/PollPlugin.php index 0a673eb30f..64b254e418 100644 --- a/plugins/Poll/PollPlugin.php +++ b/plugins/Poll/PollPlugin.php @@ -77,7 +77,7 @@ class PollPlugin extends MicroAppPlugin * * @return boolean hook value */ - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/poll.css')); return true; diff --git a/plugins/QnA/QnAPlugin.php b/plugins/QnA/QnAPlugin.php index 7c6c3e00e3..8dcc082922 100644 --- a/plugins/QnA/QnAPlugin.php +++ b/plugins/QnA/QnAPlugin.php @@ -445,7 +445,7 @@ class QnAPlugin extends MicroAppPlugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->cssLink($this->path('css/qna.css')); return true; diff --git a/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php b/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php index 3131847349..0ed0de4544 100644 --- a/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php +++ b/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php @@ -70,7 +70,7 @@ class SiteNoticeInSidebarPlugin extends Plugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { $action->element('style', null, '#site_notice { width: 100% }'); return true; diff --git a/plugins/TinyMCE/TinyMCEPlugin.php b/plugins/TinyMCE/TinyMCEPlugin.php index c5db116f0d..8f6d52e112 100644 --- a/plugins/TinyMCE/TinyMCEPlugin.php +++ b/plugins/TinyMCE/TinyMCEPlugin.php @@ -68,7 +68,7 @@ class TinyMCEPlugin extends Plugin return true; } - function onEndShowStyles($action) + function onEndShowStyles(Action $action) { if ($this->isAllowedRichEdit()) { $action->style('span#notice_data-text_container, span#notice_data-text_parent { float: left }'); diff --git a/plugins/WebFinger/WebFingerPlugin.php b/plugins/WebFinger/WebFingerPlugin.php index 5b7dc20d86..80da17dff6 100644 --- a/plugins/WebFinger/WebFingerPlugin.php +++ b/plugins/WebFinger/WebFingerPlugin.php @@ -125,7 +125,7 @@ class WebFingerPlugin extends Plugin /** * Add a link header for LRDD Discovery */ - public function onStartShowHTML($action) + public function onStartShowHTML(Action $action) { if ($action instanceof ShowstreamAction) { $acct = 'acct:'. $action->profile->nickname .'@'. common_config('site', 'server'); -- 2.39.5