summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Hook.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:51:06 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:51:06 +0200
commit1584c9ae9c23d2a7915750ef9203cba0bcebf766 (patch)
tree568db931f631afd6e96772cf2b3ac539c989ec42 /lib/private/legacy/OC_Hook.php
parenta7c8d26d31cb1cf69e0e060c53622e545fcfbbb3 (diff)
downloadnextcloud-server-1584c9ae9c23d2a7915750ef9203cba0bcebf766.tar.gz
nextcloud-server-1584c9ae9c23d2a7915750ef9203cba0bcebf766.zip
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/legacy/OC_Hook.php')
-rw-r--r--lib/private/legacy/OC_Hook.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/legacy/OC_Hook.php b/lib/private/legacy/OC_Hook.php
index 4e75c9da747..980eb609259 100644
--- a/lib/private/legacy/OC_Hook.php
+++ b/lib/private/legacy/OC_Hook.php
@@ -51,7 +51,7 @@ class OC_Hook {
*
* TODO: write example
*/
- static public function connect($signalClass, $signalName, $slotClass, $slotName) {
+ public static function connect($signalClass, $signalName, $slotClass, $slotName) {
// If we're trying to connect to an emitting class that isn't
// yet registered, register it
if (!array_key_exists($signalClass, self::$registered)) {
@@ -91,7 +91,7 @@ class OC_Hook {
*
* TODO: write example
*/
- static public function emit($signalClass, $signalName, $params = []) {
+ public static function emit($signalClass, $signalName, $params = []) {
// Return false if no hook handlers are listening to this
// emitting class
@@ -129,7 +129,7 @@ class OC_Hook {
* @param string $signalClass
* @param string $signalName
*/
- static public function clear($signalClass='', $signalName='') {
+ public static function clear($signalClass='', $signalName='') {
if ($signalClass) {
if ($signalName) {
self::$registered[$signalClass][$signalName]=[];
@@ -145,7 +145,7 @@ class OC_Hook {
* DO NOT USE!
* For unit tests ONLY!
*/
- static public function getHooks() {
+ public static function getHooks() {
return self::$registered;
}
}