Merge pull request #249 from nextcloud/cleaning-201218

Cleaning: unused import and composer lib
pull/250/head
Maxence Lange 2018-12-20 10:51:37 -01:00 zatwierdzone przez GitHub
commit 4fe33de239
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
10 zmienionych plików z 2 dodań i 24 usunięć

2
composer.lock wygenerowano
Wyświetl plik

@ -1,7 +1,7 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "2c21b8c338f3d2f929f349df19edbc0e",

Wyświetl plik

@ -31,12 +31,9 @@ declare(strict_types=1);
namespace OCA\Social\Command;
use daita\MySmallPhpTools\Exceptions\MalformedArrayException;
use OC\Core\Command\Base;
use OCA\Social\Exceptions\RedundancyLimitException;
use OCA\Social\Exceptions\RequestException;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Exceptions\UnknownItemException;
use OCA\Social\Service\ActivityService;
use OCA\Social\Service\ConfigService;
use OCA\Social\Service\MiscService;
@ -95,10 +92,6 @@ class QueueProcess extends Base {
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @throws RedundancyLimitException
* @throws UnknownItemException
* @throws MalformedArrayException
*/
protected function execute(InputInterface $input, OutputInterface $output) {

Wyświetl plik

@ -35,7 +35,6 @@ use Exception;
use OC\AppFramework\Http;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\SignatureIsGoneException;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Exceptions\UnknownItemException;
use OCA\Social\Service\CacheActorService;
use OCA\Social\Service\FollowService;

Wyświetl plik

@ -31,13 +31,10 @@ declare(strict_types=1);
namespace OCA\Social\Cron;
use daita\MySmallPhpTools\Exceptions\MalformedArrayException;
use OC\BackgroundJob\TimedJob;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\RedundancyLimitException;
use OCA\Social\Exceptions\RequestException;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Exceptions\UnknownItemException;
use OCA\Social\Service\ActivityService;
use OCA\Social\Service\MiscService;
use OCA\Social\Service\QueueService;
@ -73,10 +70,7 @@ class Queue extends TimedJob {
/**
* @param mixed $argument
*
* @throws MalformedArrayException
* @throws QueryException
* @throws RedundancyLimitException
* @throws UnknownItemException
*/
protected function run($argument) {
$app = new Application();

Wyświetl plik

@ -33,9 +33,8 @@ namespace OCA\Social\Db;
use DateTime;
use OCA\Social\Exceptions\NoteNotFoundException;
use OCA\Social\Model\ActivityPub\ACore;
use OCA\Social\Model\ActivityPub\Object\Note;
use OCA\Social\Model\ActivityPub\Actor\Person;
use OCA\Social\Service\ActivityService;
use OCA\Social\Model\ActivityPub\Object\Note;
use OCA\Social\Service\ConfigService;
use OCA\Social\Service\MiscService;
use OCP\DB\QueryBuilder\IQueryBuilder;

Wyświetl plik

@ -38,7 +38,6 @@ use OCA\Social\Exceptions\InvalidOriginException;
use OCA\Social\Exceptions\InvalidResourceEntryException;
use OCA\Social\Exceptions\UrlCloudException;
use OCA\Social\Model\LinkedDataSignature;
use OCA\Social\Service\ActivityPub\ICoreService;
use OCA\Social\Model\ActivityPub\Object\Document;

Wyświetl plik

@ -33,7 +33,6 @@ namespace OCA\Social\Model\ActivityPub\Object;
use DateTime;
use JsonSerializable;
use OCA\Social\Exceptions\InvalidResourceEntryException;
use OCA\Social\Exceptions\UrlCloudException;
use OCA\Social\Model\ActivityPub\ACore;
@ -198,7 +197,6 @@ class Document extends ACore implements JsonSerializable {
* @param array $data
*
* @throws UrlCloudException
* @throws InvalidResourceEntryException
*/
public function import(array $data) {
parent::import($data);

Wyświetl plik

@ -64,7 +64,6 @@ class Image extends Document implements JsonSerializable {
* @param array $data
*
* @throws UrlCloudException
* @throws InvalidResourceEntryException
*/
public function import(array $data) {
parent::import($data);

Wyświetl plik

@ -39,7 +39,6 @@ use OCA\Social\Db\NotesRequest;
use OCA\Social\Exceptions\ActorDoesNotExistException;
use OCA\Social\Exceptions\EmptyQueueException;
use OCA\Social\Exceptions\InvalidResourceException;
use OCA\Social\Exceptions\LinkedDataSignatureMissingException;
use OCA\Social\Exceptions\NoHighPriorityRequestException;
use OCA\Social\Exceptions\QueueStatusException;
use OCA\Social\Exceptions\Request410Exception;
@ -52,7 +51,6 @@ use OCA\Social\Model\ActivityPub\Activity\Delete;
use OCA\Social\Model\ActivityPub\Actor\Person;
use OCA\Social\Model\ActivityPub\Object\Tombstone;
use OCA\Social\Model\InstancePath;
use OCA\Social\Model\LinkedDataSignature;
use OCA\Social\Model\RequestQueue;
class ActivityService {

Wyświetl plik

@ -44,7 +44,6 @@ use OCA\Social\Exceptions\SignatureException;
use OCA\Social\Exceptions\SignatureIsGoneException;
use OCA\Social\Exceptions\SocialAppConfigException;
use OCA\Social\Exceptions\UnknownItemException;
use OCA\Social\Exceptions\UrlCloudException;
use OCA\Social\Model\ActivityPub\ACore;
use OCA\Social\Model\ActivityPub\Actor\Person;
use OCA\Social\Model\LinkedDataSignature;