summaryrefslogtreecommitdiffstats
path: root/tests/lib/CapabilitiesManagerTest.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:53:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:54:22 +0200
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /tests/lib/CapabilitiesManagerTest.php
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
downloadnextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.tar.gz
nextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.zip
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/CapabilitiesManagerTest.php')
-rw-r--r--tests/lib/CapabilitiesManagerTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/CapabilitiesManagerTest.php b/tests/lib/CapabilitiesManagerTest.php
index e7d519a7493..536355f9697 100644
--- a/tests/lib/CapabilitiesManagerTest.php
+++ b/tests/lib/CapabilitiesManagerTest.php
@@ -53,7 +53,7 @@ class CapabilitiesManagerTest extends TestCase {
* Test a valid capabilitie
*/
public function testValidCapability() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability();
});
@@ -65,13 +65,13 @@ class CapabilitiesManagerTest extends TestCase {
* Test a public capabilitie
*/
public function testPublicCapability() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new PublicSimpleCapability1();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability2();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability3();
});
@@ -86,7 +86,7 @@ class CapabilitiesManagerTest extends TestCase {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('The given Capability (Test\\NoCapability) does not implement the ICapability interface');
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new NoCapability();
});
@@ -98,13 +98,13 @@ class CapabilitiesManagerTest extends TestCase {
* Test a bunch of merged Capabilities
*/
public function testMergedCapabilities() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability2();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability3();
});
@@ -124,10 +124,10 @@ class CapabilitiesManagerTest extends TestCase {
* Test deep identical capabilities
*/
public function testDeepIdenticalCapabilities() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new DeepCapability();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new DeepCapability();
});