Update codestyle
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Родитель
8c47137a9e
Коммит
93b7c72b25
|
@ -53,7 +53,6 @@ use OCP\Security\ICrypto;
|
|||
use ReturnTypeWillChange;
|
||||
|
||||
class Account implements JsonSerializable {
|
||||
|
||||
/** @var MailAccount */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ use ReturnTypeWillChange;
|
|||
* @psalm-immutable
|
||||
*/
|
||||
class AddressList implements Countable, JsonSerializable {
|
||||
|
||||
/** @var Address[] */
|
||||
private $addresses;
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ use Horde_Imap_Client_Data_Fetch;
|
|||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
|
||||
class Attachment {
|
||||
|
||||
/**
|
||||
* @param \Horde_Imap_Client_Socket $conn
|
||||
* @param \Horde_Imap_Client_Mailbox $mailBox
|
||||
|
|
|
@ -32,7 +32,6 @@ use function defined;
|
|||
use function method_exists;
|
||||
|
||||
class CleanupJob extends TimedJob {
|
||||
|
||||
/** @var CleanupService */
|
||||
private $cleanupService;
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@ use OCP\BackgroundJob\QueuedJob;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class MigrateImportantJob extends QueuedJob {
|
||||
|
||||
/** @var MailboxMapper */
|
||||
private $mailboxMapper;
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ use function defined;
|
|||
use function method_exists;
|
||||
|
||||
class OutboxWorkerJob extends TimedJob {
|
||||
|
||||
/** @var OutboxService */
|
||||
private $outboxService;
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ use function method_exists;
|
|||
use function sprintf;
|
||||
|
||||
class SyncJob extends TimedJob {
|
||||
|
||||
/** @var IUserManager */
|
||||
private $userManager;
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ use function defined;
|
|||
use function method_exists;
|
||||
|
||||
class TrainImportanceClassifierJob extends TimedJob {
|
||||
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use InvalidArgumentException;
|
|||
* This class is inspired by Horde_Imap_Client_Cache_Backend_Cache of the Horde Project
|
||||
*/
|
||||
class Cache extends Horde_Imap_Client_Cache_Backend {
|
||||
|
||||
/** Cache structure version. */
|
||||
public const VERSION = 3;
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ use Symfony\Component\Console\Input\InputInterface;
|
|||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class CleanUp extends Command {
|
||||
|
||||
/** @var CleanupService */
|
||||
private $cleanupService;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use Symfony\Component\Console\Input\InputInterface;
|
|||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class CreateTagMigrationJobEntry extends Command {
|
||||
|
||||
/** @var JobList */
|
||||
private $jobList;
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ use OCA\Mail\Exception\AttachmentNotFoundException;
|
|||
use OCA\Mail\Service\Attachment\UploadedFile;
|
||||
|
||||
interface IAttachmentService {
|
||||
|
||||
/**
|
||||
* Save an uploaded file
|
||||
*/
|
||||
|
|
|
@ -29,7 +29,6 @@ namespace OCA\Mail\Contracts;
|
|||
use OCA\Mail\Service\Avatar\Avatar;
|
||||
|
||||
interface IAvatarService {
|
||||
|
||||
/**
|
||||
* Try to find an avatar for the given email address
|
||||
*
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCA\Mail\Exception\ClientException;
|
|||
use OCA\Mail\Exception\ServiceException;
|
||||
|
||||
interface ILocalMailboxService {
|
||||
|
||||
/**
|
||||
* @param string $userId
|
||||
* @return mixed
|
||||
|
|
|
@ -35,7 +35,6 @@ use OCA\Mail\Service\Quota;
|
|||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
|
||||
interface IMailManager {
|
||||
|
||||
/**
|
||||
* @param string $uid
|
||||
* @param int $id
|
||||
|
|
|
@ -34,7 +34,6 @@ use OCP\AppFramework\Db\DoesNotExistException;
|
|||
use OCP\IUser;
|
||||
|
||||
interface IMailSearch {
|
||||
|
||||
/**
|
||||
* @param Account $account
|
||||
* @param string $mailboxName
|
||||
|
|
|
@ -34,7 +34,6 @@ use OCA\Mail\Exception\ServiceException;
|
|||
use OCA\Mail\Model\NewMessageData;
|
||||
|
||||
interface IMailTransmission {
|
||||
|
||||
/**
|
||||
* Send a new message or reply to an existing one
|
||||
*
|
||||
|
|
|
@ -27,7 +27,6 @@ declare(strict_types=1);
|
|||
namespace OCA\Mail\Contracts;
|
||||
|
||||
interface IUserPreferences {
|
||||
|
||||
/**
|
||||
* @param string $userId
|
||||
* @param string $key
|
||||
|
|
|
@ -50,7 +50,6 @@ use OCP\IRequest;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class AccountsController extends Controller {
|
||||
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\IRequest;
|
||||
|
||||
class AliasesController extends Controller {
|
||||
|
||||
/** @var AliasesService */
|
||||
private $aliasService;
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\IRequest;
|
||||
|
||||
class AutoCompleteController extends Controller {
|
||||
|
||||
/** @var AutoCompleteService */
|
||||
private $service;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\AppFramework\Http\Response;
|
|||
use OCP\IRequest;
|
||||
|
||||
class AvatarsController extends Controller {
|
||||
|
||||
/** @var IAvatarService */
|
||||
private $avatarService;
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\IRequest;
|
||||
|
||||
class ContactIntegrationController extends Controller {
|
||||
|
||||
/** @var ContactIntegrationService */
|
||||
private $service;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\IRequest;
|
||||
|
||||
class LocalAttachmentsController extends Controller {
|
||||
|
||||
/** @var IAttachmentService */
|
||||
private $attachmentService;
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\IRequest;
|
||||
|
||||
class MailboxesController extends Controller {
|
||||
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@ use Psr\Log\LoggerInterface;
|
|||
use function array_map;
|
||||
|
||||
class MessagesController extends Controller {
|
||||
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ use OCP\AppFramework\Http;
|
|||
use OCP\IRequest;
|
||||
|
||||
class OutboxController extends Controller {
|
||||
|
||||
/** @var OutboxService */
|
||||
private $service;
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@ use function class_exists;
|
|||
use function json_decode;
|
||||
|
||||
class PageController extends Controller {
|
||||
|
||||
/** @var IURLGenerator */
|
||||
private $urlGenerator;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\IRequest;
|
||||
|
||||
class PreferencesController extends Controller {
|
||||
|
||||
/** @var IUserPreferences */
|
||||
private $userPreference;
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ use Psr\Http\Client\ClientExceptionInterface;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class ProxyController extends Controller {
|
||||
|
||||
/** @var IURLGenerator */
|
||||
private $urlGenerator;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ use OCP\IRequest;
|
|||
use function array_merge;
|
||||
|
||||
class SettingsController extends Controller {
|
||||
|
||||
/** @var ProvisioningManager */
|
||||
private $provisioningManager;
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ use OCP\IRequest;
|
|||
use OCP\Security\ICrypto;
|
||||
|
||||
class SieveController extends Controller {
|
||||
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\IRequest;
|
||||
|
||||
class TagsController extends Controller {
|
||||
|
||||
/** @var string */
|
||||
private $currentUserId;
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ use OCP\IRequest;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class ThreadController extends Controller {
|
||||
|
||||
/** @var string */
|
||||
private $currentUserId;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\AppFramework\Http;
|
|||
use OCP\IRequest;
|
||||
|
||||
class TrustedSendersController extends Controller {
|
||||
|
||||
/** @var string|null */
|
||||
private $uid;
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ declare(strict_types=1);
|
|||
namespace OCA\Mail\Dashboard;
|
||||
|
||||
class ImportantMailWidget extends MailWidget {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
|
|
@ -36,7 +36,6 @@ use OCP\IURLGenerator;
|
|||
use OCP\Util;
|
||||
|
||||
abstract class MailWidget implements IWidget {
|
||||
|
||||
/** @var IL10N */
|
||||
protected $l10n;
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ declare(strict_types=1);
|
|||
namespace OCA\Mail\Dashboard;
|
||||
|
||||
class UnreadMailWidget extends MailWidget {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
|
|
@ -24,7 +24,6 @@ use function array_map;
|
|||
* @template-extends QBMapper<Alias>
|
||||
*/
|
||||
class AliasMapper extends QBMapper {
|
||||
|
||||
/**
|
||||
* @param IDBConnection $db
|
||||
*/
|
||||
|
|
|
@ -31,7 +31,6 @@ use function array_map;
|
|||
* @template-extends QBMapper<CollectedAddress>
|
||||
*/
|
||||
class CollectedAddressMapper extends QBMapper {
|
||||
|
||||
/**
|
||||
* @param IDBConnection $db
|
||||
*/
|
||||
|
|
|
@ -41,7 +41,6 @@ use ReturnTypeWillChange;
|
|||
* @method void setLocalMessageId(int $localMessageId)
|
||||
*/
|
||||
class LocalAttachment extends Entity implements JsonSerializable {
|
||||
|
||||
/** @var string */
|
||||
protected $userId;
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ use Throwable;
|
|||
* @template-extends QBMapper<LocalAttachment>
|
||||
*/
|
||||
class LocalAttachmentMapper extends QBMapper {
|
||||
|
||||
/**
|
||||
* @param IDBConnection $db
|
||||
*/
|
||||
|
|
|
@ -37,7 +37,6 @@ use OCP\IUser;
|
|||
* @template-extends QBMapper<MailAccount>
|
||||
*/
|
||||
class MailAccountMapper extends QBMapper {
|
||||
|
||||
/**
|
||||
* @param IDBConnection $db
|
||||
*/
|
||||
|
|
|
@ -41,7 +41,6 @@ use OCP\IDBConnection;
|
|||
use function array_map;
|
||||
|
||||
class MailboxMapper extends QBMapper {
|
||||
|
||||
/** @var ITimeFactory */
|
||||
private $timeFactory;
|
||||
|
||||
|
|
|
@ -56,7 +56,6 @@ use function OCA\Mail\array_flat_map;
|
|||
* @template-extends QBMapper<Message>
|
||||
*/
|
||||
class MessageMapper extends QBMapper {
|
||||
|
||||
/** @var ITimeFactory */
|
||||
private $timeFactory;
|
||||
|
||||
|
|
|
@ -36,8 +36,6 @@ use Psr\Log\LoggerInterface;
|
|||
* @template-extends QBMapper<Provisioning>
|
||||
*/
|
||||
class ProvisioningMapper extends QBMapper {
|
||||
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use function array_combine;
|
|||
use function array_map;
|
||||
|
||||
class StatisticsDao {
|
||||
|
||||
/** @var IDBConnection */
|
||||
private $db;
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ use OCP\IL10N;
|
|||
* @template-extends QBMapper<Tag>
|
||||
*/
|
||||
class TagMapper extends QBMapper {
|
||||
|
||||
/** @var IL10N */
|
||||
private $l10n;
|
||||
|
||||
|
@ -69,9 +68,9 @@ class TagMapper extends QBMapper {
|
|||
$qb->select('*')
|
||||
->from($this->getTableName())
|
||||
->where(
|
||||
$qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)),
|
||||
$qb->expr()->eq('user_id', $qb->createNamedParameter($userId))
|
||||
);
|
||||
$qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)),
|
||||
$qb->expr()->eq('user_id', $qb->createNamedParameter($userId))
|
||||
);
|
||||
return $this->findEntity($qb);
|
||||
}
|
||||
|
||||
|
@ -83,8 +82,8 @@ class TagMapper extends QBMapper {
|
|||
$qb->select('*')
|
||||
->from($this->getTableName())
|
||||
->where(
|
||||
$qb->expr()->eq('user_id', $qb->createNamedParameter($userId))
|
||||
);
|
||||
$qb->expr()->eq('user_id', $qb->createNamedParameter($userId))
|
||||
);
|
||||
return $this->findEntities($qb);
|
||||
}
|
||||
|
||||
|
@ -216,31 +215,31 @@ class TagMapper extends QBMapper {
|
|||
$tag->setImapLabel('$label' . $i);
|
||||
$tag->setUserId($account->getUserId());
|
||||
switch ($i) {
|
||||
case 1:
|
||||
$tag->setDisplayName($this->l10n->t('Important'));
|
||||
$tag->setColor('#FF7A66');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 2:
|
||||
$tag->setDisplayName($this->l10n->t('Work'));
|
||||
$tag->setColor('#31CC7C');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 3:
|
||||
$tag->setDisplayName($this->l10n->t('Personal'));
|
||||
$tag->setColor('#A85BF7');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 4:
|
||||
$tag->setDisplayName($this->l10n->t('To Do'));
|
||||
$tag->setColor('#317CCC');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 5:
|
||||
$tag->setDisplayName($this->l10n->t('Later'));
|
||||
$tag->setColor('#B4A443');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 1:
|
||||
$tag->setDisplayName($this->l10n->t('Important'));
|
||||
$tag->setColor('#FF7A66');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 2:
|
||||
$tag->setDisplayName($this->l10n->t('Work'));
|
||||
$tag->setColor('#31CC7C');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 3:
|
||||
$tag->setDisplayName($this->l10n->t('Personal'));
|
||||
$tag->setColor('#A85BF7');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 4:
|
||||
$tag->setDisplayName($this->l10n->t('To Do'));
|
||||
$tag->setColor('#317CCC');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
case 5:
|
||||
$tag->setDisplayName($this->l10n->t('Later'));
|
||||
$tag->setColor('#B4A443');
|
||||
$tag->setIsDefaultTag(true);
|
||||
break;
|
||||
}
|
||||
$tags[] = $tag;
|
||||
}
|
||||
|
@ -261,7 +260,7 @@ class TagMapper extends QBMapper {
|
|||
$qb->expr()->gt('mt1.id', 'mt2.id'),
|
||||
$qb->expr()->eq('mt1.imap_message_id', 'mt2.imap_message_id'),
|
||||
$qb->expr()->eq('mt1.tag_id', 'mt2.tag_id')
|
||||
)
|
||||
)
|
||||
);
|
||||
$result = $qb->execute();
|
||||
$rows = $result->fetchAll();
|
||||
|
|
|
@ -38,7 +38,6 @@ use ReturnTypeWillChange;
|
|||
* @method getType(): string
|
||||
*/
|
||||
class TrustedSender extends Entity implements JsonSerializable {
|
||||
|
||||
/** @var string */
|
||||
protected $email;
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ use OCA\Mail\Account;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class BeforeMessageDeletedEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ use OCP\EventDispatcher\Event;
|
|||
* @psalm-immutable
|
||||
*/
|
||||
class BeforeMessageSentEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ use OCA\Mail\Model\NewMessageData;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class DraftSavedEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ use OCP\EventDispatcher\Event;
|
|||
* @psalm-immutable
|
||||
*/
|
||||
class MailboxesSynchronizedEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ use OCA\Mail\Db\Mailbox;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class MessageDeletedEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ use OCA\Mail\Db\Mailbox;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class MessageFlaggedEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ use OCP\EventDispatcher\Event;
|
|||
* @psalm-immutable
|
||||
*/
|
||||
class MessageSentEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ use OCA\Mail\Db\Message;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class NewMessagesSynchronized extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\EventDispatcher\Event;
|
|||
* @psalm-immutable
|
||||
*/
|
||||
class OutboxMessageCreatedEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ use OCA\Mail\Model\NewMessageData;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class SaveDraftEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ use OCP\EventDispatcher\Event;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class SynchronizationEvent extends Event {
|
||||
|
||||
/** @var Account */
|
||||
private $account;
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ use Horde_Imap_Client_Exception;
|
|||
use Throwable;
|
||||
|
||||
class CouldNotConnectException extends ServiceException {
|
||||
|
||||
/** @var string */
|
||||
private $service;
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ namespace OCA\Mail;
|
|||
use Horde_Imap_Client_Mailbox;
|
||||
|
||||
class Folder {
|
||||
|
||||
/** @var int */
|
||||
private $accountId;
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ namespace OCA\Mail\Http;
|
|||
use OCP\AppFramework\Http\DownloadResponse;
|
||||
|
||||
class AttachmentDownloadResponse extends DownloadResponse {
|
||||
|
||||
/** @var string */
|
||||
private $content;
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ namespace OCA\Mail\Http;
|
|||
use OCP\AppFramework\Http\DownloadResponse;
|
||||
|
||||
class AvatarDownloadResponse extends DownloadResponse {
|
||||
|
||||
/** @var string */
|
||||
private $content;
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ namespace OCA\Mail\Http;
|
|||
use OCP\AppFramework\Http\Response;
|
||||
|
||||
class HtmlResponse extends Response {
|
||||
|
||||
/** @var string */
|
||||
private $content;
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ use Psr\Log\LoggerInterface;
|
|||
use Throwable;
|
||||
|
||||
class ErrorMiddleware extends Middleware {
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ use OCP\IUserSession;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class ProvisioningMiddleware extends Middleware {
|
||||
|
||||
/** @var IUserSession */
|
||||
private $userSession;
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ use DateTime;
|
|||
use OCP\AppFramework\Http\DownloadResponse;
|
||||
|
||||
class ProxyDownloadResponse extends DownloadResponse {
|
||||
|
||||
/** @var string */
|
||||
private $content;
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ use function in_array;
|
|||
use function reset;
|
||||
|
||||
class FolderMapper {
|
||||
|
||||
/**
|
||||
* This is a temporary workaround for when the sieve folder is a subfolder of
|
||||
* INBOX. Once "#386 Subfolders and Dovecot" has been resolved, we can go back
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\IConfig;
|
|||
use OCP\Security\ICrypto;
|
||||
|
||||
class IMAPClientFactory {
|
||||
|
||||
/** @var ICrypto */
|
||||
private $crypto;
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ use JsonSerializable;
|
|||
use ReturnTypeWillChange;
|
||||
|
||||
class MailboxStats implements JsonSerializable {
|
||||
|
||||
/** @var int */
|
||||
private $total;
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@ use OCP\AppFramework\Utility\ITimeFactory;
|
|||
use function sprintf;
|
||||
|
||||
class MailboxSync {
|
||||
|
||||
/** @var MailboxMapper */
|
||||
private $mailboxMapper;
|
||||
|
||||
|
|
|
@ -52,7 +52,6 @@ use function reset;
|
|||
use function sprintf;
|
||||
|
||||
class MessageMapper {
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ declare(strict_types=1);
|
|||
namespace OCA\Mail\IMAP;
|
||||
|
||||
class MessageStructureData {
|
||||
|
||||
/** @var bool */
|
||||
private $hasAttachments;
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ use function array_merge;
|
|||
use function array_reduce;
|
||||
|
||||
class PreviewEnhancer {
|
||||
|
||||
/** @var IMAPClientFactory */
|
||||
private $clientFactory;
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ use OCA\Mail\Service\Search\SearchQuery;
|
|||
use function array_reduce;
|
||||
|
||||
class Provider {
|
||||
|
||||
/** @var IMAPClientFactory */
|
||||
private $clientFactory;
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ declare(strict_types=1);
|
|||
namespace OCA\Mail\IMAP\Sync;
|
||||
|
||||
class Request {
|
||||
|
||||
/** @var string */
|
||||
private $mailbox;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ use ReturnTypeWillChange;
|
|||
* @psalm-template T
|
||||
*/
|
||||
class Response implements JsonSerializable {
|
||||
|
||||
/** @var T[] */
|
||||
private $newMessages;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ use function array_chunk;
|
|||
use function array_merge;
|
||||
|
||||
class Synchronizer {
|
||||
|
||||
/**
|
||||
* This determines how many UIDs we send to IMAP for a check of changed or
|
||||
* vanished messages. The number needs a balance between good performance
|
||||
|
|
|
@ -30,7 +30,6 @@ use function array_key_exists;
|
|||
use function spl_object_id;
|
||||
|
||||
class Container {
|
||||
|
||||
/** @var Message|null */
|
||||
private $message;
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ use function array_merge;
|
|||
use function json_decode;
|
||||
|
||||
class DatabaseMessage extends Message implements JsonSerializable {
|
||||
|
||||
/** @var int */
|
||||
private $databaseId;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ use function str_replace;
|
|||
use function strpos;
|
||||
|
||||
class Message implements JsonSerializable {
|
||||
|
||||
/** @var string */
|
||||
private $subject;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ use function array_key_exists;
|
|||
use function count;
|
||||
|
||||
class ThreadBuilder {
|
||||
|
||||
/** @var PerformanceLogger */
|
||||
private $performanceLogger;
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ use ChristophWurst\KItinerary\Sys\SysAdapter;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class ItineraryExtractor {
|
||||
|
||||
/** @var BinaryAdapter */
|
||||
private $binAdapter;
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ use Psr\Log\LoggerInterface;
|
|||
use Throwable;
|
||||
|
||||
class AddressCollectionListener implements IEventListener {
|
||||
|
||||
/** @var IUserPreferences */
|
||||
private $preferences;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\IUserManager;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class AntiAbuseListener implements IEventListener {
|
||||
|
||||
/** @var IUserManager */
|
||||
private $userManager;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
class DashboardPanelListener implements IEventListener {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
|
|
@ -43,7 +43,6 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class DeleteDraftListener implements IEventListener {
|
||||
|
||||
/** @var IMAPClientFactory */
|
||||
private $imapClientFactory;
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class FlagRepliedMessageListener implements IEventListener {
|
||||
|
||||
/** @var IMAPClientFactory */
|
||||
private $imapClientFactory;
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class HamReportListener implements IEventListener {
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ use Psr\Log\LoggerInterface;
|
|||
use function class_exists;
|
||||
|
||||
class InteractionListener implements IEventListener {
|
||||
|
||||
/** @var IEventDispatcher */
|
||||
private $dispatcher;
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ use function json_decode;
|
|||
use function strtolower;
|
||||
|
||||
class MailboxesSynchronizedSpecialMailboxesUpdater implements IEventListener {
|
||||
|
||||
/** @var MailAccountMapper */
|
||||
private $mailAccountMapper;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class MessageCacheUpdaterListener implements IEventListener {
|
||||
|
||||
/** @var MessageMapper */
|
||||
private $mapper;
|
||||
|
||||
|
|
|
@ -95,9 +95,9 @@ class NewMessageClassificationListener implements IEventListener {
|
|||
|
||||
// if this is a message that's been flagged / tagged as important before, we don't want to reclassify it again.
|
||||
$doNotReclassify = $this->tagMapper->getTaggedMessageIdsForMessages(
|
||||
$event->getMessages(),
|
||||
$event->getAccount()->getUserId(),
|
||||
Tag::LABEL_IMPORTANT
|
||||
$event->getMessages(),
|
||||
$event->getAccount()->getUserId(),
|
||||
Tag::LABEL_IMPORTANT
|
||||
);
|
||||
$messages = array_filter($messages, static function ($message) use ($doNotReclassify) {
|
||||
return ($message->getFlagImportant() === false || in_array($message->getMessageId(), $doNotReclassify, true));
|
||||
|
|
|
@ -37,7 +37,6 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class SaveSentMessageListener implements IEventListener {
|
||||
|
||||
/** @var MailboxMapper */
|
||||
private $mailboxMapper;
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class SpamReportListener implements IEventListener {
|
||||
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ use OCP\User\Events\UserDeletedEvent;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class UserDeletedListener implements IEventListener {
|
||||
|
||||
/** @var AccountService */
|
||||
private $accountService;
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ use Horde_Imap_Client_Socket;
|
|||
use OCA\Mail\Model\IMAPMessage;
|
||||
|
||||
class Mailbox {
|
||||
|
||||
/**
|
||||
* @var Horde_Imap_Client_Socket
|
||||
*/
|
||||
|
|
|
@ -35,7 +35,6 @@ use OCP\Migration\IRepairStep;
|
|||
use function sprintf;
|
||||
|
||||
class AddMissingDefaultTags implements IRepairStep {
|
||||
|
||||
/** @var TagMapper */
|
||||
private $tagMapper;
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ use function method_exists;
|
|||
use function sprintf;
|
||||
|
||||
class AddMissingMessageIds implements IRepairStep {
|
||||
|
||||
/** @var MessageMapper */
|
||||
private $mapper;
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче