summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Hook.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 16:07:47 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 16:07:47 +0200
commit44577e4345066952622feca9ef69c24fc23d08ab (patch)
tree362160e9a6cf5c55eb1a2cca5aa32fb3bac336ad /lib/private/legacy/OC_Hook.php
parent42625a46be495ea1c60ac8fe8e13946fd9ed9732 (diff)
downloadnextcloud-server-44577e4345066952622feca9ef69c24fc23d08ab.tar.gz
nextcloud-server-44577e4345066952622feca9ef69c24fc23d08ab.zip
Remove trailing and in between spaces
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.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/legacy/OC_Hook.php b/lib/private/legacy/OC_Hook.php
index d7b1e414a00..b98424711dd 100644
--- a/lib/private/legacy/OC_Hook.php
+++ b/lib/private/legacy/OC_Hook.php
@@ -54,12 +54,12 @@ class OC_Hook {
static public 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 )) {
+ if(!array_key_exists($signalClass, self::$registered)) {
self::$registered[$signalClass] = [];
}
// If we're trying to connect to an emitting method that isn't
// yet registered, register it with the emitting class
- if( !array_key_exists( $signalName, self::$registered[$signalClass] )) {
+ if(!array_key_exists($signalName, self::$registered[$signalClass])) {
self::$registered[$signalClass][$signalName] = [];
}
@@ -95,20 +95,20 @@ class OC_Hook {
// Return false if no hook handlers are listening to this
// emitting class
- if( !array_key_exists($signalClass, self::$registered )) {
+ if(!array_key_exists($signalClass, self::$registered)) {
return false;
}
// Return false if no hook handlers are listening to this
// emitting method
- if( !array_key_exists( $signalName, self::$registered[$signalClass] )) {
+ if(!array_key_exists($signalName, self::$registered[$signalClass])) {
return false;
}
// Call all slots
- foreach( self::$registered[$signalClass][$signalName] as $i ) {
+ foreach(self::$registered[$signalClass][$signalName] as $i) {
try {
- call_user_func( [ $i["class"], $i["name"] ], $params );
+ call_user_func([ $i["class"], $i["name"] ], $params);
} catch (Exception $e){
self::$thrownExceptions[] = $e;
\OC::$server->getLogger()->logException($e);