summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-05-25 19:45:28 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-05-25 19:45:28 -0100
commit09859970fbdb6b6b10547005980cce1328b7f9c0 (patch)
treeadc17da549fc7394fd3fba15e5037697bacfe5d9 /lib
parent0af5100f3f819c727234891488e8d71650afd6b4 (diff)
fix lint
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/AP.php16
-rw-r--r--lib/Command/CacheRefresh.php4
-rw-r--r--lib/Command/CheckInstall.php10
-rw-r--r--lib/Controller/ActivityPubController.php6
-rw-r--r--lib/Controller/ConfigController.php4
-rw-r--r--lib/Controller/LocalController.php4
-rw-r--r--lib/Controller/NavigationController.php8
-rw-r--r--lib/Controller/OStatusController.php6
-rw-r--r--lib/Controller/QueueController.php2
-rw-r--r--lib/Controller/SocialPubController.php2
-rw-r--r--lib/Cron/Cache.php6
-rw-r--r--lib/Cron/Queue.php4
-rw-r--r--lib/Dashboard/SocialWidget.php4
-rw-r--r--lib/Db/ActorsRequestBuilder.php2
-rw-r--r--lib/Db/CacheDocumentsRequestBuilder.php2
-rw-r--r--lib/Db/ClientRequest.php2
-rw-r--r--lib/Db/ClientRequestBuilder.php4
-rw-r--r--lib/Db/CoreRequestBuilder.php6
-rw-r--r--lib/Db/FollowsRequestBuilder.php4
-rw-r--r--lib/Db/HashtagsRequest.php2
-rw-r--r--lib/Db/InstancesRequest.php6
-rw-r--r--lib/Db/RequestQueueRequestBuilder.php2
-rw-r--r--lib/Db/SocialCoreQueryBuilder.php2
-rw-r--r--lib/Db/SocialFiltersQueryBuilder.php2
-rw-r--r--lib/Db/SocialLimitsQueryBuilder.php2
-rw-r--r--lib/Db/StreamActionsRequestBuilder.php2
-rw-r--r--lib/Db/StreamQueueRequestBuilder.php2
-rw-r--r--lib/Db/StreamRequestBuilder.php2
-rw-r--r--lib/Db/StreamTagsRequest.php4
-rw-r--r--lib/Interfaces/Object/AnnounceInterface.php2
-rw-r--r--lib/Interfaces/Object/FollowInterface.php2
-rw-r--r--lib/Interfaces/Object/LikeInterface.php8
-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
-rw-r--r--lib/Search/UnifiedSearchProvider.php2
-rw-r--r--lib/Service/ActivityService.php12
-rw-r--r--lib/Service/ActorService.php2
-rw-r--r--lib/Service/BoostService.php8
-rw-r--r--lib/Service/CheckService.php8
-rw-r--r--lib/Service/ClientService.php8
-rw-r--r--lib/Service/HashtagService.php4
-rw-r--r--lib/Service/ImportService.php6
-rw-r--r--lib/Service/InstanceService.php2
-rw-r--r--lib/Service/LikeService.php18
-rw-r--r--lib/Service/PostService.php14
-rw-r--r--lib/Service/PushService.php106
-rw-r--r--lib/Service/RequestQueueService.php2
-rw-r--r--lib/Service/StreamQueueService.php20
-rw-r--r--lib/Service/TestService.php8
-rw-r--r--lib/Tools/Db/ExtendedQueryBuilder.php8
-rw-r--r--lib/Tools/Model/Cache.php2
-rw-r--r--lib/Tools/Model/CacheItem.php2
-rw-r--r--lib/Tools/Model/Request.php2
-rw-r--r--lib/Tools/Model/SimpleDataStore.php2
-rw-r--r--lib/Tools/Traits/TArrayTools.php4
67 files changed, 213 insertions, 213 deletions
diff --git a/lib/AP.php b/lib/AP.php
index 226a63f7..bba34b9b 100644
--- a/lib/AP.php
+++ b/lib/AP.php
@@ -31,8 +31,6 @@ declare(strict_types=1);
namespace OCA\Social;
-use OCA\Social\Model\ActivityPub\OrderedCollection;
-use OCA\Social\Tools\Traits\TArrayTools;
use OCA\Social\Exceptions\ItemUnknownException;
use OCA\Social\Exceptions\RedundancyLimitException;
use OCA\Social\Exceptions\SocialAppConfigException;
@@ -45,11 +43,11 @@ use OCA\Social\Interfaces\Activity\RejectInterface;
use OCA\Social\Interfaces\Activity\RemoveInterface;
use OCA\Social\Interfaces\Activity\UndoInterface;
use OCA\Social\Interfaces\Activity\UpdateInterface;
-use OCA\Social\Interfaces\Actor\PersonInterface;
-use OCA\Social\Interfaces\Actor\ServiceInterface;
+use OCA\Social\Interfaces\Actor\ApplicationInterface;
use OCA\Social\Interfaces\Actor\GroupInterface;
use OCA\Social\Interfaces\Actor\OrganizationInterface;
-use OCA\Social\Interfaces\Actor\ApplicationInterface;
+use OCA\Social\Interfaces\Actor\PersonInterface;
+use OCA\Social\Interfaces\Actor\ServiceInterface;
use OCA\Social\Interfaces\IActivityPubInterface;
use OCA\Social\Interfaces\Internal\SocialAppNotificationInterface;
use OCA\Social\Interfaces\Object\AnnounceInterface;
@@ -68,11 +66,11 @@ use OCA\Social\Model\ActivityPub\Activity\Reject;
use OCA\Social\Model\ActivityPub\Activity\Remove;
use OCA\Social\Model\ActivityPub\Activity\Undo;
use OCA\Social\Model\ActivityPub\Activity\Update;
-use OCA\Social\Model\ActivityPub\Actor\Person;
-use OCA\Social\Model\ActivityPub\Actor\Service;
+use OCA\Social\Model\ActivityPub\Actor\Application;
use OCA\Social\Model\ActivityPub\Actor\Group;
use OCA\Social\Model\ActivityPub\Actor\Organization;
-use OCA\Social\Model\ActivityPub\Actor\Application;
+use OCA\Social\Model\ActivityPub\Actor\Person;
+use OCA\Social\Model\ActivityPub\Actor\Service;
use OCA\Social\Model\ActivityPub\Internal\SocialAppNotification;
use OCA\Social\Model\ActivityPub\Object\Announce;
use OCA\Social\Model\ActivityPub\Object\Document;
@@ -81,8 +79,10 @@ use OCA\Social\Model\ActivityPub\Object\Image;
use OCA\Social\Model\ActivityPub\Object\Like;
use OCA\Social\Model\ActivityPub\Object\Note;
use OCA\Social\Model\ActivityPub\Object\Tombstone;
+use OCA\Social\Model\ActivityPub\OrderedCollection;
use OCA\Social\Model\ActivityPub\Stream;
use OCA\Social\Service\ConfigService;
+use OCA\Social\Tools\Traits\TArrayTools;
use OCP\AppFramework\QueryException;
use OCP\Server;
use Psr\Log\LoggerInterface;
diff --git a/lib/Command/CacheRefresh.php b/lib/Command/CacheRefresh.php
index 2629a566..d446c549 100644
--- a/lib/Command/CacheRefresh.php
+++ b/lib/Command/CacheRefresh.php
@@ -70,8 +70,8 @@ class CacheRefresh extends Base {
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
-// $result = $this->accountService->blindKeyRotation();
-// $output->writeLn($result . ' key pairs refreshed');
+ // $result = $this->accountService->blindKeyRotation();
+ // $output->writeLn($result . ' key pairs refreshed');
$result = $this->accountService->manageDeletedActors();
$output->writeLn($result . ' local accounts deleted');
diff --git a/lib/Command/CheckInstall.php b/lib/Command/CheckInstall.php
index d3396455..943a53b5 100644
--- a/lib/Command/CheckInstall.php
+++ b/lib/Command/CheckInstall.php
@@ -102,9 +102,9 @@ class CheckInstall extends Base {
return 0;
}
-// if ($this->checkPushApp($input, $output)) {
-// return;
-// }
+ // if ($this->checkPushApp($input, $output)) {
+ // return;
+ // }
$result = $this->checkService->checkInstallationStatus();
@@ -137,9 +137,9 @@ class CheckInstall extends Base {
}
// push was not implemented on 18
-// $wrapper = $this->pushService->testOnAccount($userId);
+ // $wrapper = $this->pushService->testOnAccount($userId);
-// $output->writeln(json_encode($wrapper, JSON_PRETTY_PRINT));
+ // $output->writeln(json_encode($wrapper, JSON_PRETTY_PRINT));
return true;
}
diff --git a/lib/Controller/ActivityPubController.php b/lib/Controller/ActivityPubController.php
index 498a6261..64ba4112 100644
--- a/lib/Controller/ActivityPubController.php
+++ b/lib/Controller/ActivityPubController.php
@@ -278,9 +278,9 @@ class ActivityPubController extends Controller {
* @return Response
*/
public function outbox(string $username): Response {
-// if (!$this->checkSourceActivityStreams()) {
-// return $this->socialPubController->outbox($username);
-// }
+ // if (!$this->checkSourceActivityStreams()) {
+ // return $this->socialPubController->outbox($username);
+ // }
try {
$actor = $this->cacheActorService->getFromLocalAccount($username);
diff --git a/lib/Controller/ConfigController.php b/lib/Controller/ConfigController.php
index 82110048..141992bd 100644
--- a/lib/Controller/ConfigController.php
+++ b/lib/Controller/ConfigController.php
@@ -26,13 +26,13 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
-use OCA\Social\Tools\Model\SimpleDataStore;
-use OCA\Social\Tools\Traits\TNCDataResponse;
use Exception;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Service\ConfigService;
use OCA\Social\Service\MiscService;
use OCA\Social\Service\TestService;
+use OCA\Social\Tools\Model\SimpleDataStore;
+use OCA\Social\Tools\Traits\TNCDataResponse;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
diff --git a/lib/Controller/LocalController.php b/lib/Controller/LocalController.php
index d0581885..863c4684 100644
--- a/lib/Controller/LocalController.php
+++ b/lib/Controller/LocalController.php
@@ -31,8 +31,6 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
-use OCA\Social\Tools\Traits\TNCDataResponse;
-use OCA\Social\Tools\Traits\TArrayTools;
use Exception;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\AccountDoesNotExistException;
@@ -53,6 +51,8 @@ use OCA\Social\Service\MiscService;
use OCA\Social\Service\PostService;
use OCA\Social\Service\SearchService;
use OCA\Social\Service\StreamService;
+use OCA\Social\Tools\Traits\TArrayTools;
+use OCA\Social\Tools\Traits\TNCDataResponse;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php
index 9323da47..0684a61a 100644
--- a/lib/Controller/NavigationController.php
+++ b/lib/Controller/NavigationController.php
@@ -31,10 +31,7 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
-use OCA\Social\Tools\Traits\TNCDataResponse;
-use OCA\Social\Tools\Traits\TArrayTools;
use Exception;
-use OCP\AppFramework\Http;
use OC\User\NoUserException;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\AccountAlreadyExistsException;
@@ -45,16 +42,19 @@ use OCA\Social\Service\CheckService;
use OCA\Social\Service\ConfigService;
use OCA\Social\Service\DocumentService;
use OCA\Social\Service\MiscService;
+use OCA\Social\Tools\Traits\TArrayTools;
+use OCA\Social\Tools\Traits\TNCDataResponse;
use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http;
use OCP\AppFramework\Http\FileDisplayResponse;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
+use OCP\IGroupManager;
use OCP\IInitialStateService;
use OCP\IL10N;
use OCP\IRequest;
use OCP\IURLGenerator;
-use OCP\IGroupManager;
use OCP\Server;
/**
diff --git a/lib/Controller/OStatusController.php b/lib/Controller/OStatusController.php
index c57cc8b3..195c6f72 100644
--- a/lib/Controller/OStatusController.php
+++ b/lib/Controller/OStatusController.php
@@ -31,9 +31,6 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
-use OCA\Social\Tools\Exceptions\ArrayNotFoundException;
-use OCA\Social\Tools\Traits\TNCDataResponse;
-use OCA\Social\Tools\Traits\TArrayTools;
use Exception;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\InvalidResourceException;
@@ -42,6 +39,9 @@ use OCA\Social\Service\AccountService;
use OCA\Social\Service\CacheActorService;
use OCA\Social\Service\CurlService;
use OCA\Social\Service\MiscService;
+use OCA\Social\Tools\Exceptions\ArrayNotFoundException;
+use OCA\Social\Tools\Traits\TArrayTools;
+use OCA\Social\Tools\Traits\TNCDataResponse;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Http\TemplateResponse;
diff --git a/lib/Controller/QueueController.php b/lib/Controller/QueueController.php
index 3cf05d1b..82731f58 100644
--- a/lib/Controller/QueueController.php
+++ b/lib/Controller/QueueController.php
@@ -30,13 +30,13 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
-use OCA\Social\Tools\Traits\TAsync;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Model\RequestQueue;
use OCA\Social\Service\ActivityService;
use OCA\Social\Service\MiscService;
use OCA\Social\Service\RequestQueueService;
+use OCA\Social\Tools\Traits\TAsync;
use OCP\AppFramework\Controller;
use OCP\IRequest;
diff --git a/lib/Controller/SocialPubController.php b/lib/Controller/SocialPubController.php
index 24634f8a..07278909 100644
--- a/lib/Controller/SocialPubController.php
+++ b/lib/Controller/SocialPubController.php
@@ -31,7 +31,6 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
-use OCA\Social\Tools\Traits\TNCDataResponse;
use Exception;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\AccountDoesNotExistException;
@@ -43,6 +42,7 @@ use OCA\Social\Service\AccountService;
use OCA\Social\Service\CacheActorService;
use OCA\Social\Service\ConfigService;
use OCA\Social\Service\StreamService;
+use OCA\Social\Tools\Traits\TNCDataResponse;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Response;
diff --git a/lib/Cron/Cache.php b/lib/Cron/Cache.php
index 9a93565c..3f64043f 100644
--- a/lib/Cron/Cache.php
+++ b/lib/Cron/Cache.php
@@ -32,13 +32,13 @@ declare(strict_types=1);
namespace OCA\Social\Cron;
use Exception;
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\BackgroundJob\TimedJob;
use OCA\Social\Service\AccountService;
use OCA\Social\Service\CacheActorService;
use OCA\Social\Service\DocumentService;
use OCA\Social\Service\HashtagService;
use OCP\AppFramework\QueryException;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
/**
* Class Cache
@@ -67,7 +67,7 @@ class Cache extends TimedJob {
*/
protected function run($argument) {
try {
-// $this->accountService->blindKeyRotation();
+ // $this->accountService->blindKeyRotation();
} catch (Exception $e) {
}
diff --git a/lib/Cron/Queue.php b/lib/Cron/Queue.php
index dabba1c3..dd933d16 100644
--- a/lib/Cron/Queue.php
+++ b/lib/Cron/Queue.php
@@ -31,13 +31,13 @@ declare(strict_types=1);
namespace OCA\Social\Cron;
-use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\BackgroundJob\TimedJob;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Service\ActivityService;
use OCA\Social\Service\RequestQueueService;
use OCA\Social\Service\StreamQueueService;
use OCP\AppFramework\QueryException;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
/**
* Class Queue
diff --git a/lib/Dashboard/SocialWidget.php b/lib/Dashboard/SocialWidget.php
index fa5193d3..ad5395b9 100644
--- a/lib/Dashboard/SocialWidget.php
+++ b/lib/Dashboard/SocialWidget.php
@@ -23,10 +23,10 @@
namespace OCA\Social\Dashboard;
-use OCP\IURLGenerator;
+use OCA\Social\AppInfo\Application;
use OCP\Dashboard\IWidget;
use OCP\IL10N;
-use OCA\Social\AppInfo\Application;
+use OCP\IURLGenerator;
class SocialWidget implements IWidget {
private IL10N $l10n;
diff --git a/lib/Db/ActorsRequestBuilder.php b/lib/Db/ActorsRequestBuilder.php
index 851dfaf2..8682de60 100644
--- a/lib/Db/ActorsRequestBuilder.php
+++ b/lib/Db/ActorsRequestBuilder.php
@@ -30,9 +30,9 @@ declare(strict_types=1);
namespace OCA\Social\Db;
-use OCA\Social\Tools\Traits\TArrayTools;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Model\ActivityPub\Actor\Person;
+use OCA\Social\Tools\Traits\TArrayTools;
class ActorsRequestBuilder extends CoreRequestBuilder {
use TArrayTools;
diff --git a/lib/Db/CacheDocumentsRequestBuilder.php b/lib/Db/CacheDocumentsRequestBuilder.php
index 546f5a94..27bd3c2e 100644
--- a/lib/Db/CacheDocumentsRequestBuilder.php
+++ b/lib/Db/CacheDocumentsRequestBuilder.php
@@ -30,8 +30,8 @@ declare(strict_types=1);
namespace OCA\Social\Db;
-use OCA\Social\Tools\Traits\TArrayTools;
use OCA\Social\Model\ActivityPub\Object\Document;
+use OCA\Social\Tools\Traits\TArrayTools;
class CacheDocumentsRequestBuilder extends CoreRequestBuilder {
use TArrayTools;
diff --git a/lib/Db/ClientRequest.php b/lib/Db/ClientRequest.php
index 162caada..12855ac3 100644
--- a/lib/Db/ClientRequest.php
+++ b/lib/Db/ClientRequest.php
@@ -31,12 +31,12 @@ declare(strict_types=1);
namespace OCA\Social\Db;
-use OCA\Social\Tools\Traits\TArrayTools;
use DateTime;
use Exception;
use OCA\Social\Exceptions\ClientNotFoundException;
use OCA\Social\Model\Client\SocialClient;
use OCA\Social\Service\ClientService;
+use OCA\Social\Tools\Traits\TArrayTools;
use OCP\DB\QueryBuilder\IQueryBuilder;
/**
diff --git a/lib/Db/ClientRequestBuilder.php b/lib/Db/ClientRequestBuilder.php
inde