Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4df31ee
security-package/issues/110: SendFriendObserverTest added.
engcom-Kilo Feb 18, 2020
ae8878a
security-package/issues/53: Check static test.
engcom-Kilo Feb 18, 2020
573109b
security-package/issues/53: Check static test.
engcom-Kilo Feb 18, 2020
71a5e86
security-package/issues/53: Check static test.
engcom-Kilo Feb 18, 2020
41b9854
security-package/issues/54: Check static test.
engcom-Kilo Feb 18, 2020
cf31707
security-package/issues/54: Revert changes.
engcom-Kilo Feb 18, 2020
b6ddbb5
security-package/issues/54: Check static test.
engcom-Kilo Feb 18, 2020
166701d
security-package/issues/53: Check static test.
engcom-Kilo Feb 18, 2020
7f78d36
security-package/issues/54: Check static test.
engcom-Kilo Feb 18, 2020
d7d1477
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
1d2ea43
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
e5f49df
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
4375ae3
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
d7194fa
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
9034923
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
c3ed891
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
e56b8c8
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
f45b164
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
f824ebb
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
afbcc90
security-package/issues/54: Removed - unused private field.
engcom-Kilo Feb 19, 2020
31d6e77
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
2e07efe
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
b0c6d9d
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
15cd943
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
5c5bdf0
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
f101c12
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
1bc1da5
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
407d2ab
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
a9e14b5
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
d9280c4
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
6f6de43
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
187bdea
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
751e175
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
1c1f3fb
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
18459d9
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
11b19ea
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
ddef088
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
920a599
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
9d31115
security-package/issues/54: Check static test.
engcom-Kilo Feb 19, 2020
b3bd85d
security-package/issues/121: Fix missed variable.
engcom-Kilo Feb 19, 2020
dd42480
security-package/issues/54: Fix static test.
engcom-Kilo Feb 19, 2020
1ae7aaa
security-package/issues/54: Fix missed variable.
engcom-Kilo Feb 19, 2020
e99356f
security-package/issues/54: Fix static test.
engcom-Kilo Feb 19, 2020
f55142d
security-package/issues/54: Fix missed variable.
engcom-Kilo Feb 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Notifier/Command/SendMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* @inheritdoc
*/
class SendMessage extends Command
{
/**
Expand All @@ -24,6 +27,7 @@ class SendMessage extends Command

/**
* SendMessage constructor.
*
* @param ObjectManagerInterface $sendMessage
*/
public function __construct(
Expand All @@ -49,7 +53,6 @@ protected function configure()

/**
* @inheritdoc
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
Expand Down
2 changes: 1 addition & 1 deletion Notifier/Model/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Magento\NotifierApi\Api\Data\ChannelInterface;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* @inheritdoc
*/
class Channel extends AbstractExtensibleModel implements ChannelInterface
{
Expand Down
1 change: 0 additions & 1 deletion Notifier/Model/Channel/Command/GetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class GetList implements GetListInterface
* @param ChannelSearchResultsInterfaceFactory $searchResultsFactory
* @param SearchCriteriaBuilder $searchCriteriaBuilder
* @param CollectionProcessorInterface $collectionProcessor
* @SuppressWarnings(PHPMD.LongVariable)
*/
public function __construct(
CollectionFactory $collectionFactory,
Expand Down
1 change: 1 addition & 0 deletions Notifier/Model/Channel/Command/GetListInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface GetListInterface
{
/**
* Find Channel by given SearchCriteria
*
* SearchCriteria is not required because load all sources is useful case
*
* @param SearchCriteriaInterface|null $searchCriteria
Expand Down
5 changes: 4 additions & 1 deletion Notifier/Model/Channel/Validator/ValidateAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
use Magento\NotifierApi\Model\Channel\Validator\ValidateChannelInterface;
use Magento\NotifierApi\Model\SerializerInterface;

/**
* @inheritdoc
*/
class ValidateAdapter implements ValidateChannelInterface
{
/**
Expand All @@ -41,7 +44,7 @@ public function __construct(
}

/**
* @inheritDoc
* @inheritdoc
*/
public function execute(ChannelInterface $channel): void
{
Expand Down
5 changes: 4 additions & 1 deletion Notifier/Model/Channel/Validator/ValidateCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
use Magento\NotifierApi\Api\Data\ChannelInterface;
use Magento\NotifierApi\Model\Channel\Validator\ValidateChannelInterface;

/**
* @inheritdoc
*/
class ValidateCode implements ValidateChannelInterface
{
/**
* @inheritDoc
* @inheritdoc
*/
public function execute(ChannelInterface $channel): void
{
Expand Down
5 changes: 4 additions & 1 deletion Notifier/Model/Channel/Validator/ValidateName.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
use Magento\NotifierApi\Api\Data\ChannelInterface;
use Magento\NotifierApi\Model\Channel\Validator\ValidateChannelInterface;

/**
* @inheritdoc
*/
class ValidateName implements ValidateChannelInterface
{
/**
* @inheritDoc
* @inheritdoc
*/
public function execute(ChannelInterface $channel): void
{
Expand Down
3 changes: 1 addition & 2 deletions Notifier/Model/ChannelRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
use Magento\NotifierApi\Api\Data\ChannelInterface;

/**
* @SuppressWarnings(PHPMD.LongVariable)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @inheritdoc
*/
class ChannelRepository implements ChannelRepositoryInterface
{
Expand Down
3 changes: 3 additions & 0 deletions Notifier/Model/ChannelSearchResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

use Magento\Framework\Api\SearchResults;

/**
* @inheritdoc
*/
class ChannelSearchResults extends SearchResults implements
\Magento\NotifierApi\Api\ChannelSearchResultsInterface
{
Expand Down
5 changes: 5 additions & 0 deletions Notifier/Model/IsEnabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\NotifierApi\Api\IsEnabledInterface;

/**
* @inheritdoc
*/
class IsEnabled implements IsEnabledInterface
{
/**
Expand All @@ -25,6 +28,7 @@ class IsEnabled implements IsEnabledInterface

/**
* IsEnabled constructor.
*
* @param ScopeConfigInterface $scopeConfig
*/
public function __construct(
Expand All @@ -35,6 +39,7 @@ public function __construct(

/**
* Return true if module is enabled
*
* @return bool
*/
public function execute(): bool
Expand Down
2 changes: 1 addition & 1 deletion Notifier/Model/ResourceModel/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Magento\NotifierApi\Api\Data\ChannelInterface;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* @inheritdoc
*/
class Channel extends AbstractDb
{
Expand Down
2 changes: 1 addition & 1 deletion Notifier/Model/ResourceModel/Channel/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Magento\Notifier\Model\ResourceModel\Channel;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* @inheritdoc
*/
class Collection extends AbstractCollection
{
Expand Down
3 changes: 3 additions & 0 deletions Notifier/Model/SendMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Magento\NotifierApi\Model\SendMessageInterface;
use Magento\NotifierApi\Model\SerializerInterface;

/**
* @inheritdoc
*/
class SendMessage implements SendMessageInterface
{
/**
Expand Down
5 changes: 5 additions & 0 deletions Notifier/Model/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Magento\Framework\Serialize\SerializerInterface as FrameworkSerializerInterface;
use Magento\NotifierApi\Model\SerializerInterface;

/**
* @inheritdoc
*/
class Serializer implements SerializerInterface
{
/**
Expand All @@ -29,6 +32,7 @@ public function __construct(

/**
* Serialize value
*
* @param array $value
* @return string
* @throws \InvalidArgumentException
Expand All @@ -40,6 +44,7 @@ public function serialize(array $value): string

/**
* Unserialize value
*
* @param string $value
* @return array
* @throws \InvalidArgumentException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ValidateAdapterTest extends TestCase
private $objectManager;

/**
* @inheritDoc
* @inheritdoc
*/
protected function setUp()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ValidateCodeTest extends TestCase
private $objectManager;

/**
* @inheritDoc
* @inheritdoc
*/
protected function setUp()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ValidateNameTest extends TestCase
private $objectManager;

/**
* @inheritDoc
* @inheritdoc
*/
protected function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion Notifier/Test/Integration/ChannelRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ChannelRepositoryTest extends TestCase
private $objectManager;

/**
* @inheritDoc
* @inheritdoc
*/
protected function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion Notifier/Test/Integration/IsEnabledTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IsEnabledTest extends TestCase
private $objectManager;

/**
* @inheritDoc
* @inheritdoc
*/
protected function setUp()
{
Expand Down
3 changes: 1 addition & 2 deletions Notifier/Test/Integration/Mock/FakeAdapterEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
class FakeAdapterEngine implements AdapterEngineInterface
{
/**
* @inheritDoc
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @inheritdoc
*/
public function execute(string $message, array $configParams = [], array $params = []): bool
{
Expand Down
2 changes: 1 addition & 1 deletion Notifier/Test/Integration/SendMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SendMessageTest extends TestCase
private $objectManager;

/**
* @inheritDoc
* @inheritdoc
*/
protected function setUp()
{
Expand Down
4 changes: 4 additions & 0 deletions NotifierAdminUi/Controller/Adminhtml/Channel/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Magento\NotifierApi\Api\ChannelRepositoryInterface;
use Magento\NotifierApi\Api\Data\ChannelInterface;

/**
* @inheritdoc
*/
class Delete extends Action implements HttpGetActionInterface
{
/**
Expand All @@ -28,6 +31,7 @@ class Delete extends Action implements HttpGetActionInterface

/**
* Delete constructor.
*
* @param Action\Context $context
* @param ChannelRepositoryInterface $channelRepository
*/
Expand Down
4 changes: 4 additions & 0 deletions NotifierAdminUi/Controller/Adminhtml/Channel/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Magento\NotifierApi\Api\ChannelRepositoryInterface;
use Magento\NotifierApi\Api\Data\ChannelInterface;

/**
* @inheritdoc
*/
class Edit extends Action implements HttpGetActionInterface
{
/**
Expand All @@ -30,6 +33,7 @@ class Edit extends Action implements HttpGetActionInterface

/**
* Edit constructor.
*
* @param Action\Context $context
* @param ChannelRepositoryInterface $channelRepository
*/
Expand Down
8 changes: 7 additions & 1 deletion NotifierAdminUi/Controller/Adminhtml/Channel/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use Magento\NotifierApi\Api\ChannelRepositoryInterface;
use Magento\NotifierApi\Api\Data\ChannelInterface;

/**
* @inheritdoc
*/
class Save extends Action implements HttpPostActionInterface
{
/**
Expand Down Expand Up @@ -46,12 +49,12 @@ class Save extends Action implements HttpPostActionInterface

/**
* Save constructor.
*
* @param Action\Context $context
* @param ChannelRepositoryInterface $channelRepository
* @param SerializerInterface $channelParamsSerializer
* @param ChannelFactory $channelFactory
* @param DataObjectHelper $dataObjectHelper
* @SuppressWarnings(PHPMD.LongVariable)
*/
public function __construct(
Action\Context $context,
Expand Down Expand Up @@ -100,6 +103,7 @@ public function execute(): ResultInterface

/**
* Save channel
*
* @param int $channelId
* @param array $data
* @return ChannelInterface
Expand Down Expand Up @@ -131,6 +135,7 @@ private function save(int $channelId, array $data): ChannelInterface

/**
* Return a redirect result
*
* @param int $channelId
* @return ResultInterface
*/
Expand All @@ -149,6 +154,7 @@ private function redirectAfterFailure(int $channelId): ResultInterface

/**
* Return a redirect result after a successful save
*
* @return ResultInterface
*/
private function redirectAfterSave(): ResultInterface
Expand Down
1 change: 1 addition & 0 deletions NotifierAdminUi/Model/Channel/ModifierInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface ModifierInterface extends \Magento\Ui\DataProvider\Modifier\ModifierIn
{
/**
* Return adapter code for this modifier
*
* @return string
*/
public function getAdapterCode(): string;
Expand Down
3 changes: 3 additions & 0 deletions NotifierAdminUi/Model/Source/Channel/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Magento\Framework\Data\OptionSourceInterface;
use Magento\NotifierApi\Api\AdaptersPoolInterface;

/**
* @inheritdoc
*/
class Adapter implements OptionSourceInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions NotifierAdminUi/Model/Source/Channel/Enabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

use Magento\Framework\Data\OptionSourceInterface;

/**
* @inheritdoc
*/
class Enabled implements OptionSourceInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions NotifierAdminUi/Ui/Component/Form/Channel/BackButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Magento\Cms\Block\Adminhtml\Page\Edit\GenericButton;
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

/**
* @inheritdoc
*/
class BackButton extends GenericButton implements ButtonProviderInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions NotifierAdminUi/Ui/Component/Form/Channel/SaveButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Magento\Cms\Block\Adminhtml\Page\Edit\GenericButton;
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

/**
* @inheritdoc
*/
class SaveButton extends GenericButton implements ButtonProviderInterface
{
/**
Expand Down
Loading