Passed
Push — master ( 6fbf8f...2b4b5d )
by Georg
35:25 queued 18:20
created
apps/encryption/lib/Migration/SetMasterKeyStatus.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -35,43 +35,43 @@
 block discarded – undo
35 35
 class SetMasterKeyStatus implements IRepairStep {
36 36
 
37 37
 
38
-	/** @var  IConfig */
39
-	private $config;
38
+    /** @var  IConfig */
39
+    private $config;
40 40
 
41 41
 
42
-	public function __construct(IConfig $config) {
43
-		$this->config = $config;
44
-	}
42
+    public function __construct(IConfig $config) {
43
+        $this->config = $config;
44
+    }
45 45
 
46
-	/**
47
-	 * Returns the step's name
48
-	 *
49
-	 * @return string
50
-	 * @since 9.1.0
51
-	 */
52
-	public function getName() {
53
-		return 'Write default encryption module configuration to the database';
54
-	}
46
+    /**
47
+     * Returns the step's name
48
+     *
49
+     * @return string
50
+     * @since 9.1.0
51
+     */
52
+    public function getName() {
53
+        return 'Write default encryption module configuration to the database';
54
+    }
55 55
 
56
-	/**
57
-	 * @param IOutput $output
58
-	 */
59
-	public function run(IOutput $output) {
60
-		if (!$this->shouldRun()) {
61
-			return;
62
-		}
56
+    /**
57
+     * @param IOutput $output
58
+     */
59
+    public function run(IOutput $output) {
60
+        if (!$this->shouldRun()) {
61
+            return;
62
+        }
63 63
 
64
-		// if no config for the master key is set we set it explicitly to '0' in
65
-		// order not to break old installations because the default changed to '1'.
66
-		$configAlreadySet = $this->config->getAppValue('encryption', 'useMasterKey', false);
67
-		if ($configAlreadySet === false) {
68
-			$this->config->setAppValue('encryption', 'useMasterKey', '0');
69
-		}
70
-	}
64
+        // if no config for the master key is set we set it explicitly to '0' in
65
+        // order not to break old installations because the default changed to '1'.
66
+        $configAlreadySet = $this->config->getAppValue('encryption', 'useMasterKey', false);
67
+        if ($configAlreadySet === false) {
68
+            $this->config->setAppValue('encryption', 'useMasterKey', '0');
69
+        }
70
+    }
71 71
 
72
-	protected function shouldRun() {
73
-		$appVersion = $this->config->getAppValue('encryption', 'installed_version', '0.0.0');
74
-		return version_compare($appVersion, '2.0.0', '<');
75
-	}
72
+    protected function shouldRun() {
73
+        $appVersion = $this->config->getAppValue('encryption', 'installed_version', '0.0.0');
74
+        return version_compare($appVersion, '2.0.0', '<');
75
+    }
76 76
 
77 77
 }
Please login to merge, or discard this patch.
core/Command/Db/Migrations/ExecuteCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 			$olderVersions = $ms->getMigratedVersions();
79 79
 			$olderVersions[] = '0';
80 80
 			$olderVersions[] = 'prev';
81
-			if (in_array($version,  $olderVersions, true)) {
81
+			if (in_array($version, $olderVersions, true)) {
82 82
 				$output->writeln('<error>Can not go back to previous migration without debug enabled</error>');
83 83
 				return 1;
84 84
 			}
Please login to merge, or discard this patch.
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -37,94 +37,94 @@
 block discarded – undo
37 37
 
38 38
 class ExecuteCommand extends Command implements CompletionAwareInterface {
39 39
 
40
-	/** @var IDBConnection */
41
-	private $connection;
42
-
43
-	/** @var IConfig */
44
-	private $config;
45
-
46
-	/** @var IAppManager */
47
-	protected $appManager;
48
-
49
-	/**
50
-	 * ExecuteCommand constructor.
51
-	 *
52
-	 * @param IDBConnection $connection
53
-	 * @param IConfig $config
54
-	 * @param IAppManager $appManager
55
-	 */
56
-	public function __construct(IDBConnection $connection, IAppManager $appManager, IConfig $config) {
57
-		$this->connection = $connection;
58
-		$this->config = $config;
59
-
60
-		parent::__construct();
61
-	}
62
-
63
-	protected function configure() {
64
-		$this
65
-			->setName('migrations:execute')
66
-			->setDescription('Execute a single migration version manually.')
67
-			->addArgument('app', InputArgument::REQUIRED, 'Name of the app this migration command shall work on')
68
-			->addArgument('version', InputArgument::REQUIRED, 'The version to execute.', null);
69
-
70
-		parent::configure();
71
-	}
72
-
73
-	/**
74
-	 * @param InputInterface $input
75
-	 * @param OutputInterface $output
76
-	 * @return int
77
-	 */
78
-	public function execute(InputInterface $input, OutputInterface $output): int {
79
-		$appName = $input->getArgument('app');
80
-		$ms = new MigrationService($appName, $this->connection, new ConsoleOutput($output));
81
-		$version = $input->getArgument('version');
82
-
83
-		if ($this->config->getSystemValue('debug', false) === false) {
84
-			$olderVersions = $ms->getMigratedVersions();
85
-			$olderVersions[] = '0';
86
-			$olderVersions[] = 'prev';
87
-			if (in_array($version,  $olderVersions, true)) {
88
-				$output->writeln('<error>Can not go back to previous migration without debug enabled</error>');
89
-				return 1;
90
-			}
91
-		}
92
-
93
-
94
-		$ms->executeStep($version);
95
-		return 0;
96
-	}
97
-
98
-	/**
99
-	 * @param string $optionName
100
-	 * @param CompletionContext $context
101
-	 * @return string[]
102
-	 */
103
-	public function completeOptionValues($optionName, CompletionContext $context) {
104
-		return [];
105
-	}
106
-
107
-	/**
108
-	 * @param string $argumentName
109
-	 * @param CompletionContext $context
110
-	 * @return string[]
111
-	 */
112
-	public function completeArgumentValues($argumentName, CompletionContext $context) {
113
-		if ($argumentName === 'app') {
114
-			$allApps = \OC_App::getAllApps();
115
-			return array_diff($allApps, \OC_App::getEnabledApps(true, true));
116
-		}
117
-
118
-		if ($argumentName === 'version') {
119
-			$appName = $context->getWordAtIndex($context->getWordIndex() - 1);
120
-
121
-			$ms = new MigrationService($appName, $this->connection);
122
-			$migrations = $ms->getAvailableVersions();
123
-
124
-			array_unshift($migrations, 'next', 'latest');
125
-			return $migrations;
126
-		}
127
-
128
-		return [];
129
-	}
40
+    /** @var IDBConnection */
41
+    private $connection;
42
+
43
+    /** @var IConfig */
44
+    private $config;
45
+
46
+    /** @var IAppManager */
47
+    protected $appManager;
48
+
49
+    /**
50
+     * ExecuteCommand constructor.
51
+     *
52
+     * @param IDBConnection $connection
53
+     * @param IConfig $config
54
+     * @param IAppManager $appManager
55
+     */
56
+    public function __construct(IDBConnection $connection, IAppManager $appManager, IConfig $config) {
57
+        $this->connection = $connection;
58
+        $this->config = $config;
59
+
60
+        parent::__construct();
61
+    }
62
+
63
+    protected function configure() {
64
+        $this
65
+            ->setName('migrations:execute')
66
+            ->setDescription('Execute a single migration version manually.')
67
+            ->addArgument('app', InputArgument::REQUIRED, 'Name of the app this migration command shall work on')
68
+            ->addArgument('version', InputArgument::REQUIRED, 'The version to execute.', null);
69
+
70
+        parent::configure();
71
+    }
72
+
73
+    /**
74
+     * @param InputInterface $input
75
+     * @param OutputInterface $output
76
+     * @return int
77
+     */
78
+    public function execute(InputInterface $input, OutputInterface $output): int {
79
+        $appName = $input->getArgument('app');
80
+        $ms = new MigrationService($appName, $this->connection, new ConsoleOutput($output));
81
+        $version = $input->getArgument('version');
82
+
83
+        if ($this->config->getSystemValue('debug', false) === false) {
84
+            $olderVersions = $ms->getMigratedVersions();
85
+            $olderVersions[] = '0';
86
+            $olderVersions[] = 'prev';
87
+            if (in_array($version,  $olderVersions, true)) {
88
+                $output->writeln('<error>Can not go back to previous migration without debug enabled</error>');
89
+                return 1;
90
+            }
91
+        }
92
+
93
+
94
+        $ms->executeStep($version);
95
+        return 0;
96
+    }
97
+
98
+    /**
99
+     * @param string $optionName
100
+     * @param CompletionContext $context
101
+     * @return string[]
102
+     */
103
+    public function completeOptionValues($optionName, CompletionContext $context) {
104
+        return [];
105
+    }
106
+
107
+    /**
108
+     * @param string $argumentName
109
+     * @param CompletionContext $context
110
+     * @return string[]
111
+     */
112
+    public function completeArgumentValues($argumentName, CompletionContext $context) {
113
+        if ($argumentName === 'app') {
114
+            $allApps = \OC_App::getAllApps();
115
+            return array_diff($allApps, \OC_App::getEnabledApps(true, true));
116
+        }
117
+
118
+        if ($argumentName === 'version') {
119
+            $appName = $context->getWordAtIndex($context->getWordIndex() - 1);
120
+
121
+            $ms = new MigrationService($appName, $this->connection);
122
+            $migrations = $ms->getAvailableVersions();
123
+
124
+            array_unshift($migrations, 'next', 'latest');
125
+            return $migrations;
126
+        }
127
+
128
+        return [];
129
+    }
130 130
 }
Please login to merge, or discard this patch.
lib/private/Migration/SimpleOutput.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -36,49 +36,49 @@
 block discarded – undo
36 36
  */
37 37
 class SimpleOutput implements IOutput {
38 38
 
39
-	/** @var ILogger */
40
-	private $logger;
41
-	private $appName;
39
+    /** @var ILogger */
40
+    private $logger;
41
+    private $appName;
42 42
 
43
-	public function __construct(ILogger $logger, $appName) {
44
-		$this->logger = $logger;
45
-		$this->appName = $appName;
46
-	}
43
+    public function __construct(ILogger $logger, $appName) {
44
+        $this->logger = $logger;
45
+        $this->appName = $appName;
46
+    }
47 47
 
48
-	/**
49
-	 * @param string $message
50
-	 * @since 9.1.0
51
-	 */
52
-	public function info($message) {
53
-		$this->logger->info($message, ['app' => $this->appName]);
54
-	}
48
+    /**
49
+     * @param string $message
50
+     * @since 9.1.0
51
+     */
52
+    public function info($message) {
53
+        $this->logger->info($message, ['app' => $this->appName]);
54
+    }
55 55
 
56
-	/**
57
-	 * @param string $message
58
-	 * @since 9.1.0
59
-	 */
60
-	public function warning($message) {
61
-		$this->logger->warning($message, ['app' => $this->appName]);
62
-	}
56
+    /**
57
+     * @param string $message
58
+     * @since 9.1.0
59
+     */
60
+    public function warning($message) {
61
+        $this->logger->warning($message, ['app' => $this->appName]);
62
+    }
63 63
 
64
-	/**
65
-	 * @param int $max
66
-	 * @since 9.1.0
67
-	 */
68
-	public function startProgress($max = 0) {
69
-	}
64
+    /**
65
+     * @param int $max
66
+     * @since 9.1.0
67
+     */
68
+    public function startProgress($max = 0) {
69
+    }
70 70
 
71
-	/**
72
-	 * @param int $step
73
-	 * @param string $description
74
-	 * @since 9.1.0
75
-	 */
76
-	public function advance($step = 1, $description = '') {
77
-	}
71
+    /**
72
+     * @param int $step
73
+     * @param string $description
74
+     * @since 9.1.0
75
+     */
76
+    public function advance($step = 1, $description = '') {
77
+    }
78 78
 
79
-	/**
80
-	 * @since 9.1.0
81
-	 */
82
-	public function finishProgress() {
83
-	}
79
+    /**
80
+     * @since 9.1.0
81
+     */
82
+    public function finishProgress() {
83
+    }
84 84
 }
Please login to merge, or discard this patch.
lib/private/Comments/ManagerFactory.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -30,33 +30,33 @@
 block discarded – undo
30 30
 
31 31
 class ManagerFactory implements ICommentsManagerFactory {
32 32
 
33
-	/**
34
-	 * Server container
35
-	 *
36
-	 * @var IServerContainer
37
-	 */
38
-	private $serverContainer;
33
+    /**
34
+     * Server container
35
+     *
36
+     * @var IServerContainer
37
+     */
38
+    private $serverContainer;
39 39
 
40
-	/**
41
-	 * Constructor for the comments manager factory
42
-	 *
43
-	 * @param IServerContainer $serverContainer server container
44
-	 */
45
-	public function __construct(IServerContainer $serverContainer) {
46
-		$this->serverContainer = $serverContainer;
47
-	}
40
+    /**
41
+     * Constructor for the comments manager factory
42
+     *
43
+     * @param IServerContainer $serverContainer server container
44
+     */
45
+    public function __construct(IServerContainer $serverContainer) {
46
+        $this->serverContainer = $serverContainer;
47
+    }
48 48
 
49
-	/**
50
-	 * creates and returns an instance of the ICommentsManager
51
-	 *
52
-	 * @return ICommentsManager
53
-	 * @since 9.0.0
54
-	 */
55
-	public function getManager() {
56
-		return new Manager(
57
-			$this->serverContainer->getDatabaseConnection(),
58
-			$this->serverContainer->getLogger(),
59
-			$this->serverContainer->getConfig()
60
-		);
61
-	}
49
+    /**
50
+     * creates and returns an instance of the ICommentsManager
51
+     *
52
+     * @return ICommentsManager
53
+     * @since 9.0.0
54
+     */
55
+    public function getManager() {
56
+        return new Manager(
57
+            $this->serverContainer->getDatabaseConnection(),
58
+            $this->serverContainer->getLogger(),
59
+            $this->serverContainer->getConfig()
60
+        );
61
+    }
62 62
 }
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/CachingTree.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@
 block discarded – undo
24 24
 use Sabre\DAV\Tree;
25 25
 
26 26
 class CachingTree extends Tree {
27
-	/**
28
-	 * Store a node in the cache
29
-	 *
30
-	 * @param Node $node
31
-	 * @param null|string $path
32
-	 */
33
-	public function cacheNode(Node $node, $path = null) {
34
-		if (is_null($path)) {
35
-			$path = $node->getPath();
36
-		}
37
-		$this->cache[trim($path, '/')] = $node;
38
-	}
27
+    /**
28
+     * Store a node in the cache
29
+     *
30
+     * @param Node $node
31
+     * @param null|string $path
32
+     */
33
+    public function cacheNode(Node $node, $path = null) {
34
+        if (is_null($path)) {
35
+            $path = $node->getPath();
36
+        }
37
+        $this->cache[trim($path, '/')] = $node;
38
+    }
39 39
 }
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/Server.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
  * @see \Sabre\DAV\Server
34 34
  */
35 35
 class Server extends \Sabre\DAV\Server {
36
-	/** @var CachingTree $tree */
36
+    /** @var CachingTree $tree */
37 37
 
38
-	/**
39
-	 * @see \Sabre\DAV\Server
40
-	 */
41
-	public function __construct($treeOrNode = null) {
42
-		parent::__construct($treeOrNode);
43
-		self::$exposeVersion = false;
44
-		$this->enablePropfindDepthInfinity = true;
45
-	}
38
+    /**
39
+     * @see \Sabre\DAV\Server
40
+     */
41
+    public function __construct($treeOrNode = null) {
42
+        parent::__construct($treeOrNode);
43
+        self::$exposeVersion = false;
44
+        $this->enablePropfindDepthInfinity = true;
45
+    }
46 46
 }
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/lib/Activity/Provider.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -31,47 +31,47 @@
 block discarded – undo
31 31
 
32 32
 class Provider implements IProvider {
33 33
 
34
-	/** @var L10nFactory */
35
-	private $l10n;
34
+    /** @var L10nFactory */
35
+    private $l10n;
36 36
 
37
-	/** @var IURLGenerator */
38
-	private $urlGenerator;
37
+    /** @var IURLGenerator */
38
+    private $urlGenerator;
39 39
 
40
-	/** @var IManager */
41
-	private $activityManager;
40
+    /** @var IManager */
41
+    private $activityManager;
42 42
 
43
-	/**
44
-	 * @param L10nFactory $l10n
45
-	 * @param IURLGenerator $urlGenerator
46
-	 * @param IManager $activityManager
47
-	 */
48
-	public function __construct(L10nFactory $l10n, IURLGenerator $urlGenerator, IManager $activityManager) {
49
-		$this->urlGenerator = $urlGenerator;
50
-		$this->activityManager = $activityManager;
51
-		$this->l10n = $l10n;
52
-	}
43
+    /**
44
+     * @param L10nFactory $l10n
45
+     * @param IURLGenerator $urlGenerator
46
+     * @param IManager $activityManager
47
+     */
48
+    public function __construct(L10nFactory $l10n, IURLGenerator $urlGenerator, IManager $activityManager) {
49
+        $this->urlGenerator = $urlGenerator;
50
+        $this->activityManager = $activityManager;
51
+        $this->l10n = $l10n;
52
+    }
53 53
 
54
-	public function parse($language, IEvent $event, IEvent $previousEvent = null) {
55
-		if ($event->getApp() !== 'twofactor_backupcodes') {
56
-			throw new InvalidArgumentException();
57
-		}
54
+    public function parse($language, IEvent $event, IEvent $previousEvent = null) {
55
+        if ($event->getApp() !== 'twofactor_backupcodes') {
56
+            throw new InvalidArgumentException();
57
+        }
58 58
 
59
-		$l = $this->l10n->get('twofactor_backupcodes', $language);
59
+        $l = $this->l10n->get('twofactor_backupcodes', $language);
60 60
 
61
-		switch ($event->getSubject()) {
62
-			case 'codes_generated':
63
-				$event->setParsedSubject($l->t('You created two-factor backup codes for your account'));
61
+        switch ($event->getSubject()) {
62
+            case 'codes_generated':
63
+                $event->setParsedSubject($l->t('You created two-factor backup codes for your account'));
64 64
 
65
-				if ($this->activityManager->getRequirePNG()) {
66
-					$event->setIcon($this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/password.png')));
67
-				} else {
68
-					$event->setIcon($this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/password.svg')));
69
-				}
70
-				break;
71
-			default:
72
-				throw new InvalidArgumentException();
73
-		}
74
-		return $event;
75
-	}
65
+                if ($this->activityManager->getRequirePNG()) {
66
+                    $event->setIcon($this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/password.png')));
67
+                } else {
68
+                    $event->setIcon($this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/password.svg')));
69
+                }
70
+                break;
71
+            default:
72
+                throw new InvalidArgumentException();
73
+        }
74
+        return $event;
75
+    }
76 76
 
77 77
 }
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Settings/PersonalSection.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -29,58 +29,58 @@
 block discarded – undo
29 29
 use OCP\Settings\IIconSection;
30 30
 
31 31
 class PersonalSection implements IIconSection {
32
-	/** @var IURLGenerator */
33
-	private $urlGenerator;
34
-	/** @var IL10N */
35
-	private $l;
32
+    /** @var IURLGenerator */
33
+    private $urlGenerator;
34
+    /** @var IL10N */
35
+    private $l;
36 36
 
37
-	public function __construct(IURLGenerator $urlGenerator, IL10N $l) {
38
-		$this->urlGenerator = $urlGenerator;
39
-		$this->l = $l;
40
-	}
37
+    public function __construct(IURLGenerator $urlGenerator, IL10N $l) {
38
+        $this->urlGenerator = $urlGenerator;
39
+        $this->l = $l;
40
+    }
41 41
 
42
-	/**
43
-	 * returns the relative path to an 16*16 icon describing the section.
44
-	 * e.g. '/core/img/places/files.svg'
45
-	 *
46
-	 * @returns string
47
-	 * @since 13.0.0
48
-	 */
49
-	public function getIcon() {
50
-		return $this->urlGenerator->imagePath('core', 'actions/share.svg');
51
-	}
42
+    /**
43
+     * returns the relative path to an 16*16 icon describing the section.
44
+     * e.g. '/core/img/places/files.svg'
45
+     *
46
+     * @returns string
47
+     * @since 13.0.0
48
+     */
49
+    public function getIcon() {
50
+        return $this->urlGenerator->imagePath('core', 'actions/share.svg');
51
+    }
52 52
 
53
-	/**
54
-	 * returns the ID of the section. It is supposed to be a lower case string,
55
-	 * e.g. 'ldap'
56
-	 *
57
-	 * @returns string
58
-	 * @since 9.1
59
-	 */
60
-	public function getID() {
61
-		return 'sharing';
62
-	}
53
+    /**
54
+     * returns the ID of the section. It is supposed to be a lower case string,
55
+     * e.g. 'ldap'
56
+     *
57
+     * @returns string
58
+     * @since 9.1
59
+     */
60
+    public function getID() {
61
+        return 'sharing';
62
+    }
63 63
 
64
-	/**
65
-	 * returns the translated name as it should be displayed, e.g. 'LDAP / AD
66
-	 * integration'. Use the L10N service to translate it.
67
-	 *
68
-	 * @return string
69
-	 * @since 9.1
70
-	 */
71
-	public function getName() {
72
-		return $this->l->t('Sharing');
73
-	}
64
+    /**
65
+     * returns the translated name as it should be displayed, e.g. 'LDAP / AD
66
+     * integration'. Use the L10N service to translate it.
67
+     *
68
+     * @return string
69
+     * @since 9.1
70
+     */
71
+    public function getName() {
72
+        return $this->l->t('Sharing');
73
+    }
74 74
 
75
-	/**
76
-	 * @return int whether the form should be rather on the top or bottom of
77
-	 * the settings navigation. The sections are arranged in ascending order of
78
-	 * the priority values. It is required to return a value between 0 and 99.
79
-	 *
80
-	 * E.g.: 70
81
-	 * @since 9.1
82
-	 */
83
-	public function getPriority() {
84
-		return 15;
85
-	}
75
+    /**
76
+     * @return int whether the form should be rather on the top or bottom of
77
+     * the settings navigation. The sections are arranged in ascending order of
78
+     * the priority values. It is required to return a value between 0 and 99.
79
+     *
80
+     * E.g.: 70
81
+     * @since 9.1
82
+     */
83
+    public function getPriority() {
84
+        return 15;
85
+    }
86 86
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/GroupManagement.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -38,71 +38,71 @@
 block discarded – undo
38 38
  */
39 39
 class GroupManagement extends Action {
40 40
 
41
-	/**
42
-	 * log add user to group event
43
-	 *
44
-	 * @param IGroup $group
45
-	 * @param IUser $user
46
-	 */
47
-	public function addUser(IGroup $group, IUser $user) {
48
-		$this->log('User "%s" added to group "%s"',
49
-			[
50
-				'group' => $group->getGID(),
51
-				'user' => $user->getUID()
52
-			],
53
-			[
54
-				'user', 'group'
55
-			]
56
-		);
57
-	}
41
+    /**
42
+     * log add user to group event
43
+     *
44
+     * @param IGroup $group
45
+     * @param IUser $user
46
+     */
47
+    public function addUser(IGroup $group, IUser $user) {
48
+        $this->log('User "%s" added to group "%s"',
49
+            [
50
+                'group' => $group->getGID(),
51
+                'user' => $user->getUID()
52
+            ],
53
+            [
54
+                'user', 'group'
55
+            ]
56
+        );
57
+    }
58 58
 
59
-	/**
60
-	 * log remove user from group event
61
-	 *
62
-	 * @param IGroup $group
63
-	 * @param IUser $user
64
-	 */
65
-	public function removeUser(IGroup $group, IUser $user) {
66
-		$this->log('User "%s" removed from group "%s"',
67
-			[
68
-				'group' => $group->getGID(),
69
-				'user' => $user->getUID()
70
-			],
71
-			[
72
-				'user', 'group'
73
-			]
74
-		);
75
-	}
59
+    /**
60
+     * log remove user from group event
61
+     *
62
+     * @param IGroup $group
63
+     * @param IUser $user
64
+     */
65
+    public function removeUser(IGroup $group, IUser $user) {
66
+        $this->log('User "%s" removed from group "%s"',
67
+            [
68
+                'group' => $group->getGID(),
69
+                'user' => $user->getUID()
70
+            ],
71
+            [
72
+                'user', 'group'
73
+            ]
74
+        );
75
+    }
76 76
 	
77
-	/**
78
-	 * log create group to group event
79
-	 *
80
-	 * @param IGroup $group
81
-	 */
82
-	public function createGroup(IGroup $group) {
83
-		$this->log('Group created: "%s"',
84
-			[
85
-				'group' => $group->getGID()
86
-			],
87
-			[
88
-				'group'
89
-			]
90
-		);
91
-	}
77
+    /**
78
+     * log create group to group event
79
+     *
80
+     * @param IGroup $group
81
+     */
82
+    public function createGroup(IGroup $group) {
83
+        $this->log('Group created: "%s"',
84
+            [
85
+                'group' => $group->getGID()
86
+            ],
87
+            [
88
+                'group'
89
+            ]
90
+        );
91
+    }
92 92
 
93
-	/**
94
-	 * log delete group to group event
95
-	 *
96
-	 * @param IGroup $group
97
-	 */
98
-	public function deleteGroup(IGroup $group) {
99
-		$this->log('Group deleted: "%s"',
100
-			[
101
-				'group' => $group->getGID()
102
-			],
103
-			[
104
-				'group'
105
-			]
106
-		);
107
-	}
93
+    /**
94
+     * log delete group to group event
95
+     *
96
+     * @param IGroup $group
97
+     */
98
+    public function deleteGroup(IGroup $group) {
99
+        $this->log('Group deleted: "%s"',
100
+            [
101
+                'group' => $group->getGID()
102
+            ],
103
+            [
104
+                'group'
105
+            ]
106
+        );
107
+    }
108 108
 }
Please login to merge, or discard this patch.