Skip to content

Commit

Permalink
PHPCS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 27, 2021
1 parent b64905c commit 57ade0a
Show file tree
Hide file tree
Showing 25 changed files with 21 additions and 138 deletions.
6 changes: 0 additions & 6 deletions Block/Field/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* Yireo CheckoutTester2 for Magento
*
* @package Yireo_CheckoutTester2
* @author Yireo (https://www.yireo.com/)
* @copyright Copyright 2017 Yireo (https://www.yireo.com/)
* @license Open Source License (OSL v3)
Expand All @@ -16,11 +15,6 @@
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Url;

/**
* Class Link
*
* @package Yireo\CheckoutTester2\Block\Field
*/
class Link extends Field
{
/**
Expand Down
7 changes: 1 addition & 6 deletions Block/Success.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@

namespace Yireo\CheckoutTester2\Block;

use \Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template;

/**
* Class Success
*
* @package Yireo\CheckoutTester2\Block
*/
class Success extends Template
{
}
8 changes: 0 additions & 8 deletions Controller/Index/Success.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php declare(strict_types=1);

/**
* CheckoutTester2 plugin for Magento
*
Expand All @@ -23,12 +22,6 @@
use Yireo\CheckoutTester2\Helper\Data;
use Yireo\CheckoutTester2\Helper\Order;

/**
* CheckoutTester frontend controller
*
* @category CheckoutTester2
* @package Yireo\CheckoutTester2\Controller\Index
*/
class Success extends Action
{
/**
Expand All @@ -51,7 +44,6 @@ class Success extends Action
*/
protected $moduleHelper;


/**
* @var Order
*/
Expand Down
6 changes: 0 additions & 6 deletions Exception/ForbiddenAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* CheckoutTester2 plugin for Magento
*
* @package Yireo_EmailTester2
* @author Yireo (https://www.yireo.com/)
* @copyright Copyright 2017 Yireo (https://www.yireo.com/)
* @license Open Source License (OSL v3)
Expand All @@ -12,11 +11,6 @@

use Exception;

/**
* Class ForbiddenAccess
*
* @package Yireo\CheckoutTester2\Exception
*/
class ForbiddenAccess extends Exception
{
}
6 changes: 0 additions & 6 deletions Exception/InvalidOrderId.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* CheckoutTester2 plugin for Magento
*
* @package Yireo_EmailTester2
* @author Yireo (https://www.yireo.com/)
* @copyright Copyright 2017 Yireo (https://www.yireo.com/)
* @license Open Source License (OSL v3)
Expand All @@ -12,11 +11,6 @@

use Exception;

/**
* Class InvalidOrderId
*
* @package Yireo\CheckoutTester2\Exception
*/
class InvalidOrderId extends Exception
{
}
3 changes: 0 additions & 3 deletions Factory/OrderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
use Magento\Framework\ObjectManagerInterface;
use Magento\Sales\Api\Data\OrderInterface;

/**
* Class \Yireo\CheckoutTester2\Factory\OrderFactory
*/
class OrderFactory
{
/**
Expand Down
3 changes: 0 additions & 3 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
use Magento\Framework\App\Helper\Context;
use Magento\Store\Model\ScopeInterface;

/**
* Class \Yireo\CheckoutTester2\Helper\Data
*/
class Data extends AbstractHelper
{
/**
Expand Down
3 changes: 0 additions & 3 deletions Helper/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
use Magento\Sales\Api\OrderRepositoryInterface;
use Yireo\CheckoutTester2\Factory\OrderFactory;

/**
* Class \Yireo\CheckoutTester2\Helper\Order
*/
class Order
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Integration/BrowseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
use Yireo\CheckoutTester2\Exception\InvalidOrderId;
use Laminas\Stdlib\Parameters;

/**
* Class BrowseTest
*
* @package Yireo\CheckoutTester2\Test\Integration
*/
class BrowseTest extends ControllerTestCase
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Integration/ModuleConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
use Magento\TestFramework\ObjectManager;
use PHPUnit\Framework\TestCase;

/**
* Class ModuleConfigTest
*
* @package Yireo\CheckoutTester2\Test\Integration
*/
class ModuleConfigTest extends TestCase
{
/**
Expand Down
6 changes: 0 additions & 6 deletions Test/Unit/Block/Field/LinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* Yireo CheckoutTester2 for Magento
*
* @package Yireo_CheckoutTester2
* @author Yireo (https://www.yireo.com/)
* @copyright Copyright 2017 Yireo (https://www.yireo.com/)
* @license Open Source License (OSL v3)
Expand All @@ -14,11 +13,6 @@
use Yireo\CheckoutTester2\Block\Field\Link as Target;
use Yireo\CheckoutTester2\Test\Unit\Mock\BlockContextMock;

/**
* Class LinkTest
*
* @package Yireo\CheckoutTester2\Test\Unit\Block\Field
*/
class LinkTest extends TestCase
{
/**
Expand Down
6 changes: 0 additions & 6 deletions Test/Unit/Block/SuccessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* Yireo CheckoutTester2 for Magento
*
* @package Yireo_CheckoutTester2
* @author Yireo (https://www.yireo.com/)
* @copyright Copyright 2017 Yireo (https://www.yireo.com/)
* @license Open Source License (OSL v3)
Expand All @@ -14,11 +13,6 @@
use Yireo\CheckoutTester2\Block\Success as Target;
use Yireo\CheckoutTester2\Test\Unit\Mock\BlockContextMock;

/**
* Class SuccessTest
*
* @package Yireo\CheckoutTester2\Test\Unit\Block
*/
class SuccessTest extends TestCase
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Helper/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
use \Yireo\CheckoutTester2\Helper\Data as Target;
use Yireo\CheckoutTester2\Test\Unit\Mock\HelperContextMock;

/**
* Class DataTest
*
* @package Yireo\CheckoutTester2\Test\Unit\Helper
*/
class DataTest extends TestCase
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/BlockContext/AppStateMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\App\State;

/**
* Class AppStateMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext
*/
trait AppStateMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/BlockContext/CacheMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\App\CacheInterface;

/**
* Class CacheMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext
*/
trait CacheMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/BlockContext/CacheStateMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\App\Cache\StateInterface;

/**
* Class CacheStateMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext
*/
trait CacheStateMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/BlockContext/FileResolverMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\View\Element\Template\File\Resolver;

/**
* Class FileResolverMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext
*/
trait FileResolverMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/BlockContext/SidResolverMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\Session\SidResolverInterface;

/**
* Class SidResolverMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext
*/
trait SidResolverMock
{
/**
Expand Down
35 changes: 20 additions & 15 deletions Test/Unit/Mock/BlockContextMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,32 @@

use Magento\Backend\Block\Template\Context;
use Magento\Framework\View\Element\Template\Context as TemplateContext;
use Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\AppStateMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\CacheMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\CacheStateMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\FileResolverMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\SidResolverMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\Generic\EventManagerMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\Generic\ScopeConfigMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\Generic\SessionMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\Generic\StoreManagerMock;
use Yireo\CheckoutTester2\Test\Unit\Mock\Generic\UrlBuilderMock;

/**
* Class DataTest
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\BlockContextMock
*/
trait BlockContextMock
{
/**
* Import mocking behaviour
*/
use \Yireo\CheckoutTester2\Test\Unit\Mock\Generic\ScopeConfigMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\Generic\EventManagerMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\Generic\StoreManagerMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\Generic\UrlBuilderMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\Generic\SessionMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\SidResolverMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\AppStateMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\CacheStateMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\CacheMock;
use \Yireo\CheckoutTester2\Test\Unit\Mock\BlockContext\FileResolverMock;
use ScopeConfigMock;
use EventManagerMock;
use StoreManagerMock;
use UrlBuilderMock;
use SessionMock;
use SidResolverMock;
use AppStateMock;
use CacheStateMock;
use CacheMock;
use FileResolverMock;

/**
* Test whether the class can be converted to HTML
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/Generic/EventManagerMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\Event\ManagerInterface;

/**
* Class EventManagerMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\Generic
*/
trait EventManagerMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/Generic/ScopeConfigMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\App\Config\ScopeConfigInterface;

/**
* Class DataTest
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\Generic
*/
trait ScopeConfigMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/Generic/SessionMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

use Magento\Framework\Session\SessionManagerInterface;

/**
* Class SessionMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\Generic
*/
trait SessionMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/Generic/StoreManagerMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
use Magento\Store\Api\Data\StoreInterface;
use Magento\Store\Model\StoreManagerInterface;

/**
* Class StoreManagerMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\Generic
*/
trait StoreManagerMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/Generic/UrlBuilderMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
use Magento\Framework\Url;
use Magento\Framework\UrlInterface;

/**
* Class UrlBuilderMock
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\Generic
*/
trait UrlBuilderMock
{
/**
Expand Down
5 changes: 0 additions & 5 deletions Test/Unit/Mock/HelperContextMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
use Magento\Framework\App\Helper\Context;
use Yireo\CheckoutTester2\Test\Unit\Mock\Generic\ScopeConfigMock;

/**
* Class DataTest
*
* @package Yireo\CheckoutTester2\Test\Unit\Mock\HelperContextMock
*/
trait HelperContextMock
{
/**
Expand Down

0 comments on commit 57ade0a

Please sign in to comment.