@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | $options['nextcloud']['allow_local_address'] = $this->isLocalAddressAllowed($options); |
| 62 | 62 | if ($options['nextcloud']['allow_local_address'] === false) { |
| 63 | - $onRedirectFunction = function ( |
|
| 63 | + $onRedirectFunction = function( |
|
| 64 | 64 | \Psr\Http\Message\RequestInterface $request, |
| 65 | 65 | \Psr\Http\Message\ResponseInterface $response, |
| 66 | 66 | \Psr\Http\Message\UriInterface $uri, |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $options = array_merge($defaults, $options); |
| 84 | 84 | |
| 85 | 85 | if (!isset($options[RequestOptions::HEADERS]['User-Agent'])) { |
| 86 | - $userAgent = 'Nextcloud-Server-Crawler/' . $this->serverVersion->getVersionString(); |
|
| 86 | + $userAgent = 'Nextcloud-Server-Crawler/'.$this->serverVersion->getVersionString(); |
|
| 87 | 87 | $options[RequestOptions::HEADERS]['User-Agent'] = $userAgent; |
| 88 | 88 | } |
| 89 | 89 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | // $this->certificateManager->getAbsoluteBundlePath() tries to instantiate |
| 106 | 106 | // a view |
| 107 | 107 | if (!$this->config->getSystemValueBool('installed', false)) { |
| 108 | - return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt'; |
|
| 108 | + return \OC::$SERVERROOT.'/resources/config/ca-bundle.crt'; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | return $this->certificateManager->getAbsoluteBundlePath(); |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | $proxyUserPwd = $this->config->getSystemValueString('proxyuserpwd', ''); |
| 137 | 137 | if ($proxyUserPwd !== '') { |
| 138 | - $proxyHost = $proxyUserPwd . '@' . $proxyHost; |
|
| 138 | + $proxyHost = $proxyUserPwd.'@'.$proxyHost; |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | $proxy = [ |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | if (!$this->remoteHostValidator->isValid($host)) { |
| 174 | - throw new LocalServerException('Host "' . $host . '" violates local access rules'); |
|
| 174 | + throw new LocalServerException('Host "'.$host.'" violates local access rules'); |
|
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | 177 | |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | ->willReturn('123.45.6'); |
| 479 | 479 | |
| 480 | 480 | $this->assertEquals([ |
| 481 | - 'verify' => \OC::$SERVERROOT . '/resources/config/ca-bundle.crt', |
|
| 481 | + 'verify' => \OC::$SERVERROOT.'/resources/config/ca-bundle.crt', |
|
| 482 | 482 | 'headers' => [ |
| 483 | 483 | 'User-Agent' => 'Nextcloud-Server-Crawler/123.45.6', |
| 484 | 484 | 'Accept-Encoding' => 'gzip', |
@@ -488,7 +488,7 @@ discard block |
||
| 488 | 488 | 'allow_local_address' => false, |
| 489 | 489 | ], |
| 490 | 490 | 'allow_redirects' => [ |
| 491 | - 'on_redirect' => function ( |
|
| 491 | + 'on_redirect' => function( |
|
| 492 | 492 | \Psr\Http\Message\RequestInterface $request, |
| 493 | 493 | \Psr\Http\Message\ResponseInterface $response, |
| 494 | 494 | \Psr\Http\Message\UriInterface $uri, |
@@ -542,7 +542,7 @@ discard block |
||
| 542 | 542 | 'allow_local_address' => false, |
| 543 | 543 | ], |
| 544 | 544 | 'allow_redirects' => [ |
| 545 | - 'on_redirect' => function ( |
|
| 545 | + 'on_redirect' => function( |
|
| 546 | 546 | \Psr\Http\Message\RequestInterface $request, |
| 547 | 547 | \Psr\Http\Message\ResponseInterface $response, |
| 548 | 548 | \Psr\Http\Message\UriInterface $uri, |
@@ -597,7 +597,7 @@ discard block |
||
| 597 | 597 | 'allow_local_address' => false, |
| 598 | 598 | ], |
| 599 | 599 | 'allow_redirects' => [ |
| 600 | - 'on_redirect' => function ( |
|
| 600 | + 'on_redirect' => function( |
|
| 601 | 601 | \Psr\Http\Message\RequestInterface $request, |
| 602 | 602 | \Psr\Http\Message\ResponseInterface $response, |
| 603 | 603 | \Psr\Http\Message\UriInterface $uri, |