summaryrefslogtreecommitdiffstats
path: root/lib/Model
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-03-05 16:25:08 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-03-05 16:25:08 -0100
commit1bd6e3f44f93669ea87501601224de0c9613fb8e (patch)
tree1a3b57bc2a08f8fa16368f394aca51a1ae82c265 /lib/Model
parentf74702f440ab25dc1ff6b854e69a56cbc467f3c1 (diff)
fixing & cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/ActivityPub/Object/Image.php2
-rw-r--r--lib/Model/ActivityPub/Object/Note.php3
-rw-r--r--lib/Model/LinkedDataSignature.php2
3 files changed, 3 insertions, 4 deletions
diff --git a/lib/Model/ActivityPub/Object/Image.php b/lib/Model/ActivityPub/Object/Image.php
index 466b906a..17bdbf94 100644
--- a/lib/Model/ActivityPub/Object/Image.php
+++ b/lib/Model/ActivityPub/Object/Image.php
@@ -32,6 +32,7 @@ namespace OCA\Social\Model\ActivityPub\Object;
use JsonSerializable;
+use OCA\Social\Exceptions\InvalidOriginException;
use OCA\Social\Exceptions\UrlCloudException;
use OCA\Social\Model\ActivityPub\ACore;
@@ -63,6 +64,7 @@ class Image extends Document implements JsonSerializable {
* @param array $data
*
* @throws UrlCloudException
+ * @throws InvalidOriginException
*/
public function import(array $data) {
parent::import($data);
diff --git a/lib/Model/ActivityPub/Object/Note.php b/lib/Model/ActivityPub/Object/Note.php
index 00abd89e..a2acb0e7 100644
--- a/lib/Model/ActivityPub/Object/Note.php
+++ b/lib/Model/ActivityPub/Object/Note.php
@@ -30,7 +30,6 @@ declare(strict_types=1);
namespace OCA\Social\Model\ActivityPub\Object;
-use DateTime;
use Exception;
use JsonSerializable;
use OCA\Social\AP;
@@ -48,7 +47,7 @@ class Note extends Stream implements JsonSerializable {
/** @var array */
private $attachments = [];
-
+
/** @var array */
private $hashtags = [];
diff --git a/lib/Model/LinkedDataSignature.php b/lib/Model/LinkedDataSignature.php
index 2ee8f8a3..d2e46d20 100644
--- a/lib/Model/LinkedDataSignature.php
+++ b/lib/Model/LinkedDataSignature.php
@@ -32,12 +32,10 @@ namespace OCA\Social\Model;
use daita\MySmallPhpTools\Traits\TArrayTools;
-use JsonLdException;
use JsonSerializable;
use OCA\Social\Exceptions\LinkedDataSignatureMissingException;
use OCA\Social\Model\ActivityPub\ACore;
use OCA\Social\Service\SignatureService;
-use stdClass;
/**