@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | if (count($configNames) > 1) { |
69 | 69 | if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) { |
70 | - $output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>'); |
|
70 | + $output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>'); |
|
71 | 71 | return 1; |
72 | 72 | } |
73 | 73 | |
@@ -76,21 +76,21 @@ discard block |
||
76 | 76 | try { |
77 | 77 | $value = $this->removeSubValue(array_slice($configNames, 1), $value, $input->hasParameterOption('--error-if-not-exists')); |
78 | 78 | } catch (\UnexpectedValueException $e) { |
79 | - $output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>'); |
|
79 | + $output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>'); |
|
80 | 80 | return 1; |
81 | 81 | } |
82 | 82 | |
83 | 83 | $this->systemConfig->setValue($configName, $value); |
84 | - $output->writeln('<info>System config value ' . implode(' => ', $configNames) . ' deleted</info>'); |
|
84 | + $output->writeln('<info>System config value '.implode(' => ', $configNames).' deleted</info>'); |
|
85 | 85 | return 0; |
86 | 86 | } else { |
87 | 87 | if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) { |
88 | - $output->writeln('<error>System config ' . $configName . ' could not be deleted because it did not exist</error>'); |
|
88 | + $output->writeln('<error>System config '.$configName.' could not be deleted because it did not exist</error>'); |
|
89 | 89 | return 1; |
90 | 90 | } |
91 | 91 | |
92 | 92 | $this->systemConfig->deleteValue($configName); |
93 | - $output->writeln('<info>System config value ' . $configName . ' deleted</info>'); |
|
93 | + $output->writeln('<info>System config value '.$configName.' deleted</info>'); |
|
94 | 94 | return 0; |
95 | 95 | } |
96 | 96 | } |
@@ -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 | } |
@@ -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 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $ns = '{http://nextcloud.com/ns}'; |
61 | 61 | |
62 | 62 | if ($node instanceof Card) { |
63 | - $propFind->handle($ns . 'has-photo', function () use ($node) { |
|
63 | + $propFind->handle($ns.'has-photo', function() use ($node) { |
|
64 | 64 | $vcard = Reader::read($node->get()); |
65 | 65 | return $vcard instanceof VCard |
66 | 66 | && $vcard->PHOTO |
@@ -35,6 +35,6 @@ |
||
35 | 35 | */ |
36 | 36 | protected function getTableName(bool $includePrefix = true) { |
37 | 37 | $p = $includePrefix ? '*PREFIX*' : ''; |
38 | - return $p . 'ldap_user_mapping'; |
|
38 | + return $p.'ldap_user_mapping'; |
|
39 | 39 | } |
40 | 40 | } |
@@ -35,6 +35,6 @@ |
||
35 | 35 | */ |
36 | 36 | protected function getTableName(bool $includePrefix = true) { |
37 | 37 | $p = $includePrefix ? '*PREFIX*' : ''; |
38 | - return $p . 'ldap_group_mapping'; |
|
38 | + return $p.'ldap_group_mapping'; |
|
39 | 39 | } |
40 | 40 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * @return string |
108 | 108 | */ |
109 | 109 | protected function getUserCacheKey($uid) { |
110 | - return 'user-' . $uid . '-lastSeenOn'; |
|
110 | + return 'user-'.$uid.'-lastSeenOn'; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * @return string |
116 | 116 | */ |
117 | 117 | protected function getGroupCacheKey($gid) { |
118 | - return 'group-' . $gid . '-lastSeenOn'; |
|
118 | + return 'group-'.$gid.'-lastSeenOn'; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | if ($key === null) { |
179 | 179 | return $prefix; |
180 | 180 | } |
181 | - return $prefix . hash('sha256', $key); |
|
181 | + return $prefix.hash('sha256', $key); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | public function afterController($controller, $methodName, Response $response) { |
42 | 42 | $etagHeader = $this->request->getHeader('IF_NONE_MATCH'); |
43 | - if ($etagHeader !== '' && $response->getETag() !== null && trim($etagHeader) === '"' . $response->getETag() . '"') { |
|
43 | + if ($etagHeader !== '' && $response->getETag() !== null && trim($etagHeader) === '"'.$response->getETag().'"') { |
|
44 | 44 | $response->setStatus(Http::STATUS_NOT_MODIFIED); |
45 | 45 | return $response; |
46 | 46 | } |