Unneeded constructors removed

This commit is contained in:
Michael 2023-10-06 21:08:33 +00:00
parent 3f6480c127
commit b5df3cb104
8 changed files with 1 additions and 55 deletions

View File

@ -31,9 +31,4 @@ class Channel extends Timeline
const VIDEO = 'video'; const VIDEO = 'video';
const AUDIO = 'audio'; const AUDIO = 'audio';
const LANGUAGE = 'language'; const LANGUAGE = 'language';
public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
{
parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
}
} }

View File

@ -25,9 +25,4 @@ final class Community extends Timeline
{ {
const LOCAL = 'local'; const LOCAL = 'local';
const GLOBAL = 'global'; const GLOBAL = 'global';
public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
{
parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
}
} }

View File

@ -28,9 +28,4 @@ final class Network extends Timeline
const RECEIVED = 'received'; const RECEIVED = 'received';
const COMMENTED = 'commented'; const COMMENTED = 'commented';
const CREATED = 'created'; const CREATED = 'created';
public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
{
parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
}
} }

View File

@ -23,8 +23,4 @@ namespace Friendica\Content\Conversation\Entity;
class UserDefinedChannel extends Channel class UserDefinedChannel extends Channel
{ {
public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
{
parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
}
} }

View File

@ -24,18 +24,9 @@ namespace Friendica\Content\Conversation\Factory;
use Friendica\Content\Conversation\Collection\Timelines; use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Entity\Channel as ChannelEntity; use Friendica\Content\Conversation\Entity\Channel as ChannelEntity;
use Friendica\Model\User; use Friendica\Model\User;
use Friendica\Content\Conversation\Repository\Channel as ChannelRepository;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
use Psr\Log\LoggerInterface;
final class Channel extends Timeline final class Channel extends Timeline
{ {
public function __construct(ChannelRepository $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
{
parent::__construct($channel, $l10n, $logger, $config);
}
/** /**
* List of available channels * List of available channels
* *

View File

@ -23,19 +23,10 @@ namespace Friendica\Content\Conversation\Factory;
use Friendica\Content\Conversation\Collection\Timelines; use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Entity\Community as CommunityEntity; use Friendica\Content\Conversation\Entity\Community as CommunityEntity;
use Friendica\Content\Conversation\Repository\Channel;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
use Friendica\Module\Conversation\Community as CommunityModule; use Friendica\Module\Conversation\Community as CommunityModule;
use Psr\Log\LoggerInterface;
final class Community extends Timeline final class Community extends Timeline
{ {
public function __construct(Channel $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
{
parent::__construct($channel, $l10n, $logger, $config);
}
/** /**
* List of available communities * List of available communities
* *

View File

@ -23,18 +23,9 @@ namespace Friendica\Content\Conversation\Factory;
use Friendica\Content\Conversation\Collection\Timelines; use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Entity\Network as NetworkEntity; use Friendica\Content\Conversation\Entity\Network as NetworkEntity;
use Friendica\Content\Conversation\Repository\Channel;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
use Psr\Log\LoggerInterface;
final class Network extends Timeline final class Network extends Timeline
{ {
public function __construct(Channel $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
{
parent::__construct($channel, $l10n, $logger, $config);
}
/** /**
* List of available network timelines * List of available network timelines
* *

View File

@ -22,18 +22,9 @@
namespace Friendica\Content\Conversation\Factory; namespace Friendica\Content\Conversation\Factory;
use Friendica\Content\Conversation\Collection\Timelines; use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Repository\Channel as ChannelRepository;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
use Psr\Log\LoggerInterface;
final class UserDefinedChannel extends Timeline final class UserDefinedChannel extends Timeline
{ {
public function __construct(ChannelRepository $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
{
parent::__construct($channel, $l10n, $logger, $config);
}
/** /**
* List of available user defined channels * List of available user defined channels
* *
@ -42,6 +33,7 @@ final class UserDefinedChannel extends Timeline
*/ */
public function getForUser(int $uid): Timelines public function getForUser(int $uid): Timelines
{ {
$tabs = [];
foreach ($this->channelRepository->selectByUid($uid) as $channel) { foreach ($this->channelRepository->selectByUid($uid) as $channel) {
$tabs[] = $channel; $tabs[] = $channel;
} }