aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http/RequestTest.php
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-04-09 15:53:09 +0200
committerGitHub <noreply@github.com>2020-04-09 15:53:09 +0200
commitc56a273b39186c509c57ef6bec221d3c4e3d81d3 (patch)
treeb2e4095e763874699646c2c90e41785c99b6f247 /tests/lib/AppFramework/Http/RequestTest.php
parentf0dd71ccd266ede38114d25be035abb3f2661fc8 (diff)
parentafbd9c4e6ed834e713039f2cff88ba3eec03dadb (diff)
downloadnextcloud-server-c56a273b39186c509c57ef6bec221d3c4e3d81d3.tar.gz
nextcloud-server-c56a273b39186c509c57ef6bec221d3c4e3d81d3.zip
Merge pull request #20383 from nextcloud/techdebt/function-spacing
Unify function spacing to PSR2 recommendation
Diffstat (limited to 'tests/lib/AppFramework/Http/RequestTest.php')
-rw-r--r--tests/lib/AppFramework/Http/RequestTest.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php
index 8f7c26cc952..e5a3e88d98e 100644
--- a/tests/lib/AppFramework/Http/RequestTest.php
+++ b/tests/lib/AppFramework/Http/RequestTest.php
@@ -716,7 +716,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerProtocolWithProtoValid() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'trusted_proxies') {
return ['1.2.3.4'];
}
@@ -757,7 +757,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerProtocolWithHttpsServerValueOn() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
return $default;
});
@@ -778,7 +778,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerProtocolWithHttpsServerValueOff() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
return $default;
});
@@ -799,7 +799,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerProtocolWithHttpsServerValueEmpty() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
return $default;
});
@@ -820,7 +820,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerProtocolDefault() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
return $default;
});
@@ -837,7 +837,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerProtocolBehindLoadBalancers() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'trusted_proxies') {
return ['1.2.3.4'];
}
@@ -1059,7 +1059,7 @@ class RequestTest extends \Test\TestCase {
public function testInsecureServerHostHttpFromForwardedHeaderSingle() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'trusted_proxies') {
return ['1.2.3.4'];
}
@@ -1088,7 +1088,7 @@ class RequestTest extends \Test\TestCase {
public function testInsecureServerHostHttpFromForwardedHeaderStacked() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'trusted_proxies') {
return ['1.2.3.4'];
}
@@ -1117,7 +1117,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerHostWithOverwriteHost() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'overwritecondaddr') {
return '';
} else if ($key === 'overwritehost') {
@@ -1141,7 +1141,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerHostWithTrustedDomain() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'trusted_proxies') {
return ['1.2.3.4'];
} else if ($key === 'trusted_domains') {
@@ -1170,7 +1170,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerHostWithUntrustedDomain() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'trusted_proxies') {
return ['1.2.3.4'];
} else if ($key === 'trusted_domains') {
@@ -1199,7 +1199,7 @@ class RequestTest extends \Test\TestCase {
public function testGetServerHostWithNoTrustedDomain() {
$this->config
->method('getSystemValue')
- ->willReturnCallback(function($key, $default) {
+ ->willReturnCallback(function ($key, $default) {
if ($key === 'trusted_proxies') {
return ['1.2.3.4'];
}