summaryrefslogtreecommitdiffstats
path: root/lib/Model
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/ActivityPub/ACore.php6
-rw-r--r--lib/Model/ActivityPub/Internal/SocialAppNotification.php2
-rw-r--r--lib/Model/ActivityPub/Object/Announce.php2
-rw-r--r--lib/Model/ActivityPub/Object/Follow.php2
-rw-r--r--lib/Model/ActivityPub/Stream.php4
-rw-r--r--lib/Model/Client/SocialClient.php8
-rw-r--r--lib/Model/Instance.php8
-rw-r--r--lib/Model/InstancePath.php2
-rw-r--r--lib/Model/LinkedDataSignature.php6
-rw-r--r--lib/Model/RequestQueue.php4
-rw-r--r--lib/Model/StreamAction.php2
-rw-r--r--lib/Model/StreamDetails.php2
-rw-r--r--lib/Model/StreamQueue.php2
-rw-r--r--lib/Model/Test.php2
14 files changed, 26 insertions, 26 deletions
diff --git a/lib/Model/ActivityPub/ACore.php b/lib/Model/ActivityPub/ACore.php
index 7b950a69..da06209a 100644
--- a/lib/Model/ActivityPub/ACore.php
+++ b/lib/Model/ActivityPub/ACore.php
@@ -386,7 +386,7 @@ class ACore extends Item implements JsonSerializable, IQueryRow {
*/
public function addEntry(string $k, string $v): ACore {
if ($v === '') {
-// unset($this->entries[$k]);
+ // unset($this->entries[$k]);
return $this;
}
@@ -436,7 +436,7 @@ class ACore extends Item implements JsonSerializable, IQueryRow {
*/
public function addEntryArray(string $k, array $v): ACore {
if ($v === []) {
-// unset($this->entries[$k]);
+ // unset($this->entries[$k]);
return $this;
}
@@ -455,7 +455,7 @@ class ACore extends Item implements JsonSerializable, IQueryRow {
*/
public function addEntryItem(string $k, ACore $v): ACore {
if ($v === null) {
-// unset($this->entries[$k]);
+ // unset($this->entries[$k]);
return $this;
}
diff --git a/lib/Model/ActivityPub/Internal/SocialAppNotification.php b/lib/Model/ActivityPub/Internal/SocialAppNotification.php
index ca1ccc15..530a1c60 100644
--- a/lib/Model/ActivityPub/Internal/SocialAppNotification.php
+++ b/lib/Model/ActivityPub/Internal/SocialAppNotification.php
@@ -74,7 +74,7 @@ class SocialAppNotification extends Stream implements JsonSerializable {
* @return array
*/
public function jsonSerialize(): array {
-// $this->addEntryInt('publishedTime', $this->getPublishedTime());
+ // $this->addEntryInt('publishedTime', $this->getPublishedTime());
return array_merge(
parent::jsonSerialize(),
diff --git a/lib/Model/ActivityPub/Object/Announce.php b/lib/Model/ActivityPub/Object/Announce.php
index eb568949..c139d41c 100644
--- a/lib/Model/ActivityPub/Object/Announce.php
+++ b/lib/Model/ActivityPub/Object/Announce.php
@@ -66,7 +66,7 @@ class Announce extends Stream implements JsonSerializable {
parent::import($data);
// Might be better to create 'actor_id' field in the 'server_streams' table.
-// $this->setAttributedTo($this->getActorId());
+ // $this->setAttributedTo($this->getActorId());
}
/**
diff --git a/lib/Model/ActivityPub/Object/Follow.php b/lib/Model/ActivityPub/Object/Follow.php
index 00328785..8e77ac4b 100644
--- a/lib/Model/ActivityPub/Object/Follow.php
+++ b/lib/Model/ActivityPub/Object/Follow.php
@@ -31,9 +31,9 @@ declare(strict_types=1);
namespace OCA\Social\Model\ActivityPub\Object;
-use OCA\Social\Tools\IQueryRow;
use JsonSerializable;
use OCA\Social\Model\ActivityPub\ACore;
+use OCA\Social\Tools\IQueryRow;
/**
* Class Follow
diff --git a/lib/Model/ActivityPub/Stream.php b/lib/Model/ActivityPub/Stream.php
index 6ffc5a73..d4df8866 100644
--- a/lib/Model/ActivityPub/Stream.php
+++ b/lib/Model/ActivityPub/Stream.php
@@ -568,7 +568,7 @@ class Stream extends ACore implements IQueryRow, JsonSerializable {
$actor->importFromLocal($this->getArray('account', $data));
$actor->setExportFormat(ACore::FORMAT_LOCAL);
$this->setActor($actor);
-// $this->setCompleteDetails(true);
+ // $this->setCompleteDetails(true);
}
@@ -711,7 +711,7 @@ class Stream extends ACore implements IQueryRow, JsonSerializable {
public function jsonSerialize(): array {
$result = parent::jsonSerialize();
-// $result['media_attachments'] = $this->getAttachments();
+ // $result['media_attachments'] = $this->getAttachments();
$result['attachment'] = $this->getAttachments();
return $result;
diff --git a/lib/Model/Client/SocialClient.php b/lib/Model/Client/SocialClient.php
index c492dbcb..302c8173 100644
--- a/lib/Model/Client/SocialClient.php
+++ b/lib/Model/Client/SocialClient.php
@@ -31,11 +31,11 @@ declare(strict_types=1);
namespace OCA\Social\Model\Client;
-use OCA\Social\Tools\IQueryRow;
-use OCA\Social\Tools\Traits\TArrayTools;
use DateTime;
use Exception;
use JsonSerializable;
+use OCA\Social\Tools\IQueryRow;
+use OCA\Social\Tools\Traits\TArrayTools;
/**
* Class ClientApp
@@ -60,8 +60,8 @@ class SocialClient implements IQueryRow, JsonSerializable {
private string $token = '';
private int $creation = -1;
-// /** @var array */
-// private $tokenScopes = [];
+ // /** @var array */
+ // private $tokenScopes = [];
/**
diff --git a/lib/Model/Instance.php b/lib/Model/Instance.php
index 02ffbda0..4dd29c7f 100644
--- a/lib/Model/Instance.php
+++ b/lib/Model/Instance.php
@@ -30,10 +30,10 @@ declare(strict_types=1);
namespace OCA\Social\Model;
-use OCA\Social\Tools\IQueryRow;
-use OCA\Social\Tools\Traits\TArrayTools;
use JsonSerializable;
use OCA\Social\Model\ActivityPub\Actor\Person;
+use OCA\Social\Tools\IQueryRow;
+use OCA\Social\Tools\Traits\TArrayTools;
/**
* Class Instance
@@ -274,8 +274,8 @@ class Instance implements IQueryRow, JsonSerializable {
$this->setLanguages($this->getArray('languages', $data));
$this->setAccountPrim($this->get('account_prim', $data));
-// $contact = new Person();
-// $this->setContactAccount($contact);
+ // $contact = new Person();
+ // $this->setContactAccount($contact);
return $this;
}
diff --git a/lib/Model/InstancePath.php b/lib/Model/InstancePath.php
index 00fe6e65..ebcb1214 100644
--- a/lib/Model/InstancePath.php
+++ b/lib/Model/InstancePath.php
@@ -30,8 +30,8 @@ declare(strict_types=1);
namespace OCA\Social\Model;
-use OCA\Social\Tools\Traits\TArrayTools;
use JsonSerializable;
+use OCA\Social\Tools\Traits\TArrayTools;
/**
* Class InstancePath
diff --git a/lib/Model/LinkedDataSignature.php b/lib/Model/LinkedDataSignature.php
index 15db77af..4387e29b 100644
--- a/lib/Model/LinkedDataSignature.php
+++ b/lib/Model/LinkedDataSignature.php
@@ -201,9 +201,9 @@ class LinkedDataSignature implements JsonSerializable {
* @throws LinkedDataSignatureMissingException
*/
public function import(array $data): void {
-// if (!in_array(ACore::CONTEXT_SECURITY, $this->getArray('@context', $data, []))) {
-// throw new LinkedDataSignatureMissingException('no @context security entry');
-// }
+ // if (!in_array(ACore::CONTEXT_SECURITY, $this->getArray('@context', $data, []))) {
+ // throw new LinkedDataSignatureMissingException('no @context security entry');
+ // }
$signature = $this->getArray('signature', $data, []);
if ($signature === []) {
diff --git a/lib/Model/RequestQueue.php b/lib/Model/RequestQueue.php
index 05fd4a15..b23d6985 100644
--- a/lib/Model/RequestQueue.php
+++ b/lib/Model/RequestQueue.php
@@ -31,11 +31,11 @@ declare(strict_types=1);
namespace OCA\Social\Model;
-use OCA\Social\Tools\Traits\TArrayTools;
-use OCA\Social\Tools\Traits\TStringTools;
use DateTime;
use Exception;
use JsonSerializable;
+use OCA\Social\Tools\Traits\TArrayTools;
+use OCA\Social\Tools\Traits\TStringTools;
/**
* Class RequestQueue
diff --git a/lib/Model/StreamAction.php b/lib/Model/StreamAction.php
index 1b276dba..0018c74d 100644
--- a/lib/Model/StreamAction.php
+++ b/lib/Model/StreamAction.php
@@ -31,9 +31,9 @@ declare(strict_types=1);
namespace OCA\Social\Model;
+use JsonSerializable;
use OCA\Social\Tools\Traits\TArrayTools;
use OCA\Social\Tools\Traits\TStringTools;
-use JsonSerializable;
/**
* Class StreamAction
diff --git a/lib/Model/StreamDetails.php b/lib/Model/StreamDetails.php
index 78777b20..6d2cff1a 100644
--- a/lib/Model/StreamDetails.php
+++ b/lib/Model/StreamDetails.php
@@ -31,10 +31,10 @@ declare(strict_types=1);
namespace OCA\Social\Model;
-use OCA\Social\Tools\Traits\TArrayTools;
use JsonSerializable;
use OCA\Social\Model\ActivityPub\Actor\Person;
use OCA\Social\Model\ActivityPub\Stream;
+use OCA\Social\Tools\Traits\TArrayTools;
/**
* Class StreamDetails
diff --git a/lib/Model/StreamQueue.php b/lib/Model/StreamQueue.php
index 91072ea1..77f1d61b 100644
--- a/lib/Model/StreamQueue.php
+++ b/lib/Model/StreamQueue.php
@@ -31,10 +31,10 @@ declare(strict_types=1);
namespace OCA\Social\Model;
-use OCA\Social\Tools\Traits\TArrayTools;
use DateTime;
use Exception;
use JsonSerializable;
+use OCA\Social\Tools\Traits\TArrayTools;
/**
* Class StreamQueue
diff --git a/lib/Model/Test.php b/lib/Model/Test.php
index 1f331a02..ec933f4c 100644
--- a/lib/Model/Test.php
+++ b/lib/Model/Test.php
@@ -30,9 +30,9 @@ declare(strict_types=1);
namespace OCA\Social\Model;
+use JsonSerializable;
use OCA\Social\Tools\Model\SimpleDataStore;
use OCA\Social\Tools\Traits\TArrayTools;
-use JsonSerializable;
/**
* Class Test