@@ -108,7 +108,7 @@ |
||
108 | 108 | if (strpos($encoding, 'gzip') !== false) { |
109 | 109 | try { |
110 | 110 | $gzip = true; |
111 | - return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz |
|
111 | + return $folder->getFile($fileName.'.gzip'); # Safari doesn't like .gz |
|
112 | 112 | } catch (NotFoundException $e) { |
113 | 113 | // continue |
114 | 114 | } |
@@ -295,6 +295,6 @@ |
||
295 | 295 | } |
296 | 296 | |
297 | 297 | $protocol = $this->request->getServerProtocol(); |
298 | - return $protocol . '://' . $this->request->getServerHost() . $serverPostfix; |
|
298 | + return $protocol.'://'.$this->request->getServerHost().$serverPostfix; |
|
299 | 299 | } |
300 | 300 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | require_once '../../lib/base.php'; |
8 | 8 | |
9 | 9 | $urlGenerator = \OC::$server->getURLGenerator(); |
10 | - header('Location: ' . $urlGenerator->getAbsoluteURL('/')); |
|
10 | + header('Location: '.$urlGenerator->getAbsoluteURL('/')); |
|
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | // @codeCoverageIgnoreEnd |
@@ -108,7 +108,7 @@ |
||
108 | 108 | if (strpos($encoding, 'gzip') !== false) { |
109 | 109 | try { |
110 | 110 | $gzip = true; |
111 | - return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz |
|
111 | + return $folder->getFile($fileName.'.gzip'); # Safari doesn't like .gz |
|
112 | 112 | } catch (NotFoundException $e) { |
113 | 113 | // continue |
114 | 114 | } |
@@ -101,11 +101,11 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public function initialize(Server $server) { |
103 | 103 | $this->server = $server; |
104 | - $this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}share'] = ShareRequest::class; |
|
105 | - $this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}invite'] = Invite::class; |
|
104 | + $this->server->xml->elementMap['{'.Plugin::NS_OWNCLOUD.'}share'] = ShareRequest::class; |
|
105 | + $this->server->xml->elementMap['{'.Plugin::NS_OWNCLOUD.'}invite'] = Invite::class; |
|
106 | 106 | |
107 | 107 | $this->server->on('method:POST', [$this, 'httpPost']); |
108 | - $this->server->on('propFind', [$this, 'propFind']); |
|
108 | + $this->server->on('propFind', [$this, 'propFind']); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | // Dealing with the 'share' document, which modified invitees on a |
150 | 150 | // calendar. |
151 | - case '{' . self::NS_OWNCLOUD . '}share': |
|
151 | + case '{'.self::NS_OWNCLOUD.'}share': |
|
152 | 152 | |
153 | 153 | // We can only deal with IShareableCalendar objects |
154 | 154 | if (!$node instanceof IShareable) { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function propFind(PropFind $propFind, INode $node) { |
192 | 192 | if ($node instanceof IShareable) { |
193 | - $propFind->handle('{' . Plugin::NS_OWNCLOUD . '}invite', function () use ($node) { |
|
193 | + $propFind->handle('{'.Plugin::NS_OWNCLOUD.'}invite', function() use ($node) { |
|
194 | 194 | return new Invite( |
195 | 195 | $node->getShares() |
196 | 196 | ); |
@@ -52,10 +52,10 @@ |
||
52 | 52 | */ |
53 | 53 | public function xmlSerialize(Writer $writer) { |
54 | 54 | foreach ($this->shares as $share) { |
55 | - $writer->startElement('{' . self::NS_NEXTCLOUD . '}sharee'); |
|
56 | - $writer->writeElement('{' . self::NS_NEXTCLOUD . '}id', $share->getSharedWith()); |
|
57 | - $writer->writeElement('{' . self::NS_NEXTCLOUD . '}display-name', $share->getSharedWithDisplayName()); |
|
58 | - $writer->writeElement('{' . self::NS_NEXTCLOUD . '}type', $share->getShareType()); |
|
55 | + $writer->startElement('{'.self::NS_NEXTCLOUD.'}sharee'); |
|
56 | + $writer->writeElement('{'.self::NS_NEXTCLOUD.'}id', $share->getSharedWith()); |
|
57 | + $writer->writeElement('{'.self::NS_NEXTCLOUD.'}display-name', $share->getSharedWithDisplayName()); |
|
58 | + $writer->writeElement('{'.self::NS_NEXTCLOUD.'}type', $share->getShareType()); |
|
59 | 59 | $writer->endElement(); |
60 | 60 | } |
61 | 61 | } |
@@ -61,9 +61,9 @@ |
||
61 | 61 | * @return false |
62 | 62 | */ |
63 | 63 | public function httpGet(RequestInterface $request, ResponseInterface $response) { |
64 | - $string = 'This is the WebDAV interface. It can only be accessed by ' . |
|
64 | + $string = 'This is the WebDAV interface. It can only be accessed by '. |
|
65 | 65 | 'WebDAV clients such as the Nextcloud desktop sync client.'; |
66 | - $stream = fopen('php://memory','r+'); |
|
66 | + $stream = fopen('php://memory', 'r+'); |
|
67 | 67 | fwrite($stream, $string); |
68 | 68 | rewind($stream); |
69 | 69 |
@@ -40,9 +40,9 @@ |
||
40 | 40 | public static function xmlDeserialize(Reader $reader) { |
41 | 41 | $value = $reader->parseInnerTree(); |
42 | 42 | if (!is_int($value) && !is_string($value)) { |
43 | - throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}offset has illegal value'); |
|
43 | + throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}offset has illegal value'); |
|
44 | 44 | } |
45 | 45 | |
46 | - return (int)$value; |
|
46 | + return (int) $value; |
|
47 | 47 | } |
48 | 48 | } |
@@ -40,9 +40,9 @@ |
||
40 | 40 | public static function xmlDeserialize(Reader $reader) { |
41 | 41 | $value = $reader->parseInnerTree(); |
42 | 42 | if (!is_int($value) && !is_string($value)) { |
43 | - throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}limit has illegal value'); |
|
43 | + throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}limit has illegal value'); |
|
44 | 44 | } |
45 | 45 | |
46 | - return (int)$value; |
|
46 | + return (int) $value; |
|
47 | 47 | } |
48 | 48 | } |