summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-05 15:12:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-10-05 20:25:24 +0200
commitd9015a8c94bfd71fe484618a06d276701d3bf9ff (patch)
tree3f7a1cd6ec2fd982dd02de71b76076f7f01cef70 /apps/dav/lib/CardDAV
parentd357f4b10fe1b59e1e07bb90641d647522c7bfe2 (diff)
downloadnextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.tar.gz
nextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.zip
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/CardDAV')
-rw-r--r--apps/dav/lib/CardDAV/AddressBook.php4
-rw-r--r--apps/dav/lib/CardDAV/CardDavBackend.php2
-rw-r--r--apps/dav/lib/CardDAV/Converter.php4
-rw-r--r--apps/dav/lib/CardDAV/HasPhotoPlugin.php2
-rw-r--r--apps/dav/lib/CardDAV/MultiGetExportPlugin.php4
-rw-r--r--apps/dav/lib/CardDAV/PhotoCache.php2
6 files changed, 9 insertions, 9 deletions
diff --git a/apps/dav/lib/CardDAV/AddressBook.php b/apps/dav/lib/CardDAV/AddressBook.php
index 50aa9d219c8..0078dece854 100644
--- a/apps/dav/lib/CardDAV/AddressBook.php
+++ b/apps/dav/lib/CardDAV/AddressBook.php
@@ -105,7 +105,7 @@ class AddressBook extends \Sabre\CardDAV\AddressBook implements IShareable {
}
public function getACL() {
- $acl = [
+ $acl = [
[
'privilege' => '{DAV:}read',
'principal' => $this->getOwner(),
@@ -130,7 +130,7 @@ class AddressBook extends \Sabre\CardDAV\AddressBook implements IShareable {
}
if ($this->getOwner() !== parent::getOwner()) {
- $acl[] = [
+ $acl[] = [
'privilege' => '{DAV:}read',
'principal' => parent::getOwner(),
'protected' => true,
diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php
index 14ade3f16e2..b9aecbd1c36 100644
--- a/apps/dav/lib/CardDAV/CardDavBackend.php
+++ b/apps/dav/lib/CardDAV/CardDavBackend.php
@@ -1044,7 +1044,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
$query2 = $this->db->getQueryBuilder();
- $addressBookOr = $query2->expr()->orX();
+ $addressBookOr = $query2->expr()->orX();
foreach ($addressBookIds as $addressBookId) {
$addressBookOr->add($query2->expr()->eq('cp.addressbookid', $query2->createNamedParameter($addressBookId)));
}
diff --git a/apps/dav/lib/CardDAV/Converter.php b/apps/dav/lib/CardDAV/Converter.php
index 8dea77bd0a6..dd7ceb77c55 100644
--- a/apps/dav/lib/CardDAV/Converter.php
+++ b/apps/dav/lib/CardDAV/Converter.php
@@ -124,9 +124,9 @@ class Converter {
$elements = explode(' ', $fullName);
$result = ['', '', '', '', ''];
if (count($elements) > 2) {
- $result[0] = implode(' ', array_slice($elements, count($elements)-1));
+ $result[0] = implode(' ', array_slice($elements, count($elements) - 1));
$result[1] = $elements[0];
- $result[2] = implode(' ', array_slice($elements, 1, count($elements)-2));
+ $result[2] = implode(' ', array_slice($elements, 1, count($elements) - 2));
} elseif (count($elements) === 2) {
$result[0] = $elements[1];
$result[1] = $elements[0];
diff --git a/apps/dav/lib/CardDAV/HasPhotoPlugin.php b/apps/dav/lib/CardDAV/HasPhotoPlugin.php
index d54b8581ad9..a77a75c6cc6 100644
--- a/apps/dav/lib/CardDAV/HasPhotoPlugin.php
+++ b/apps/dav/lib/CardDAV/HasPhotoPlugin.php
@@ -99,7 +99,7 @@ class HasPhotoPlugin extends ServerPlugin {
*/
public function getPluginInfo() {
return [
- 'name' => $this->getPluginName(),
+ 'name' => $this->getPluginName(),
'description' => 'Return a boolean stating if the vcard have a photo property set or not.'
];
}
diff --git a/apps/dav/lib/CardDAV/MultiGetExportPlugin.php b/apps/dav/lib/CardDAV/MultiGetExportPlugin.php
index bb911ffc033..e2dbb049bf0 100644
--- a/apps/dav/lib/CardDAV/MultiGetExportPlugin.php
+++ b/apps/dav/lib/CardDAV/MultiGetExportPlugin.php
@@ -70,7 +70,7 @@ class MultiGetExportPlugin extends DAV\ServerPlugin {
// Get the xml response
$responseBody = $response->getBodyAsString();
- $responseXml = $this->server->xml->parse($responseBody);
+ $responseXml = $this->server->xml->parse($responseBody);
// Reduce the vcards into one string
$output = array_reduce($responseXml->getResponses(), function ($vcf, $card) {
@@ -114,7 +114,7 @@ class MultiGetExportPlugin extends DAV\ServerPlugin {
*/
public function getPluginInfo() {
return [
- 'name' => $this->getPluginName(),
+ 'name' => $this->getPluginName(),
'description' => 'Intercept a multi-get request and return a single vcf file instead.'
];
}
diff --git a/apps/dav/lib/CardDAV/PhotoCache.php b/apps/dav/lib/CardDAV/PhotoCache.php
index 620a88dcfb8..3d88eef5789 100644
--- a/apps/dav/lib/CardDAV/PhotoCache.php
+++ b/apps/dav/lib/CardDAV/PhotoCache.php
@@ -240,7 +240,7 @@ class PhotoCache {
return [
'Content-Type' => $type,
- 'body' => $val
+ 'body' => $val
];
} catch (\Exception $e) {
$this->logger->logException($e, [