Skip to content

Commit

Permalink
v1.0.23: Code sniffer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromm committed Apr 7, 2022
1 parent a64e034 commit 1c2fc3d
Show file tree
Hide file tree
Showing 41 changed files with 107 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
use Magento\Framework\View\Element\Template;
Use Magento\Framework\View\Element\Template\Context;

/**
* Class CountryInsuredAmount
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Block\Adminhtml\System\Config\Fieldset
*/
class CountryInsuredAmount extends Template
{
/**
Expand Down Expand Up @@ -32,5 +38,4 @@ public function __construct(
public function getCountryInsuredAmount(){
return json_encode($this->helper::PEDIDOSYA_DEFAULT_VALUES_COUNTRY,JSON_NUMERIC_CHECK);
}

}
4 changes: 3 additions & 1 deletion Block/Adminhtml/Waypoint/Edit/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class Container
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Block\Adminhtml\Waypoint\Edit
*/
class Container extends \Magento\Backend\Block\Widget\Form\Container
Expand Down Expand Up @@ -94,4 +96,4 @@ public function getDeleteUrl()
{
return $this->getUrl('pedidosya/waypoint/delete', [$this->_objectId => $this->getRequest()->getParam($this->_objectId)]);
}
}
}
2 changes: 2 additions & 0 deletions Block/Adminhtml/Waypoint/Edit/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

/**
* Class Form
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Block\Adminhtml\Waypoint\Edit
*/
class Form extends Generic
Expand Down
2 changes: 2 additions & 0 deletions Block/Order/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Class Info
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Block\Order
*/
class Info extends \Magento\Sales\Block\Order\Info
Expand Down
4 changes: 3 additions & 1 deletion Controller/Adminhtml/Shipment/Cancel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

/**
* Class Cancel
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Controller\Adminhtml\Shipment
*/
class Cancel extends Action
Expand Down Expand Up @@ -165,4 +167,4 @@ protected function _isAllowed()
return $this->_authorization->isAllowed('Improntus_PedidosYa::shipment_cancel');
}

}
}
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Shipment/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

/**
* Class Create
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Controller\Adminhtml\Shipment
*/
class Create extends Action
Expand Down
4 changes: 3 additions & 1 deletion Controller/Adminhtml/Waypoint/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class Create
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint
*/
class Create extends Action
Expand Down Expand Up @@ -46,4 +48,4 @@ protected function _isAllowed()
return $this->_authorization->isAllowed('Improntus_PedidosYa::waypoint_create');
}

}
}
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Waypoint/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Class Delete
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint
*/
class Delete extends Action
Expand Down
4 changes: 3 additions & 1 deletion Controller/Adminhtml/Waypoint/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/**
* Class Edit
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint
*/
class Edit extends Action
Expand Down Expand Up @@ -86,4 +88,4 @@ protected function _isAllowed()
{
return $this->_authorization->isAllowed('Improntus_PedidosYa::waypoint_edit');
}
}
}
4 changes: 3 additions & 1 deletion Controller/Adminhtml/Waypoint/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class Save
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Controller\Adminhtml\Waypoint
*/
class Save extends \Magento\Backend\App\Action
Expand Down Expand Up @@ -75,4 +77,4 @@ protected function _isAllowed()
{
return $this->_authorization->isAllowed('Improntus_PedidosYa::waypoint_save');
}
}
}
2 changes: 2 additions & 0 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

/**
* Class Data
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Helper
*/
class Data extends AbstractHelper
Expand Down
4 changes: 4 additions & 0 deletions Model/Carrier/PedidosYa.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

/**
* Class PedidosYa
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\Carrier
*/
class PedidosYa extends AbstractCarrierOnline implements CarrierInterface
Expand Down
2 changes: 2 additions & 0 deletions Model/Config/Source/CatalogProductOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class CatalogProductOption
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\Config\Source
*/
class CatalogProductOption implements ArrayInterface
Expand Down
2 changes: 2 additions & 0 deletions Model/Config/Source/CategoryOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Class CategoryOption
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\Config\Source
*/
class CategoryOption implements ArrayInterface
Expand Down
2 changes: 2 additions & 0 deletions Model/Config/Source/CountryOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Class ModeOption
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\Config\Source
*/
class CountryOption implements ArrayInterface
Expand Down
2 changes: 2 additions & 0 deletions Model/Config/Source/ModeOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Class ModeOption
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\Config\Source
*/
class ModeOption implements ArrayInterface
Expand Down
2 changes: 2 additions & 0 deletions Model/Config/Source/StatusOrderOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Class StatusOrderOption
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\Config\Source
*/
class StatusOrderOption implements ArrayInterface
Expand Down
2 changes: 2 additions & 0 deletions Model/Config/Source/TimeOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Class TimeOption
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\Config\Source
*/
class TimeOption implements ArrayInterface
Expand Down
2 changes: 2 additions & 0 deletions Model/CreateShipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

/**
* Class CreateShipment
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model
*/
class CreateShipment
Expand Down
4 changes: 3 additions & 1 deletion Model/PedidosYa.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Class PedidosYa
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model
*/
class PedidosYa extends AbstractModel
Expand Down Expand Up @@ -50,4 +52,4 @@ protected function _construct()
{
$this->_init('Improntus\PedidosYa\Model\ResourceModel\PedidosYa');
}
}
}
4 changes: 3 additions & 1 deletion Model/ResourceModel/PedidosYa.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Class PedidosYa
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\ResourceModel
*/
class PedidosYa extends AbstractDb
Expand All @@ -26,4 +28,4 @@ public function _construct()
{
$this->_init('improntus_pedidosya','entity_id');
}
}
}
2 changes: 2 additions & 0 deletions Model/ResourceModel/PedidosYa/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Class Collection
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\ResourceModel\PedidosYa
*/
class Collection extends AbstractCollection
Expand Down
4 changes: 3 additions & 1 deletion Model/ResourceModel/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Class Token
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\ResourceModel
*/
class Token extends AbstractDb
Expand All @@ -26,4 +28,4 @@ public function _construct()
{
$this->_init('improntus_pedidosya_token','entity_id');
}
}
}
2 changes: 2 additions & 0 deletions Model/ResourceModel/Token/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Class Collection
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\ResourceModel\Token
*/
class Collection extends AbstractCollection
Expand Down
4 changes: 3 additions & 1 deletion Model/ResourceModel/Waypoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Class Waypoint
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\ResourceModel
*/
class Waypoint extends AbstractDb
Expand All @@ -26,4 +28,4 @@ public function _construct()
{
$this->_init('improntus_pedidosya_waypoint','entity_id');
}
}
}
2 changes: 2 additions & 0 deletions Model/ResourceModel/Waypoint/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Class Collection
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model\ResourceModel\Waypoint
*/
class Collection extends AbstractCollection
Expand Down
4 changes: 3 additions & 1 deletion Model/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Class Token
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model
*/
class Token extends AbstractModel
Expand Down Expand Up @@ -50,4 +52,4 @@ protected function _construct()
{
$this->_init('Improntus\PedidosYa\Model\ResourceModel\Token');
}
}
}
4 changes: 3 additions & 1 deletion Model/Waypoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Class Waypoint
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model
*/
class Waypoint extends AbstractModel
Expand Down Expand Up @@ -48,4 +50,4 @@ protected function _construct()
{
$this->_init('Improntus\PedidosYa\Model\ResourceModel\Waypoint');
}
}
}
2 changes: 2 additions & 0 deletions Model/Webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Class Webservice
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Model
*/
class Webservice
Expand Down
2 changes: 2 additions & 0 deletions Observer/SalesOrderPlaceBefore.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class SalesOrderPlaceBefore
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Observer
*/
class SalesOrderPlaceBefore implements ObserverInterface
Expand Down
2 changes: 2 additions & 0 deletions Observer/SalesOrderSaveAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Class SalesOrderSaveAfter
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Observer
*/
class SalesOrderSaveAfter implements ObserverInterface
Expand Down
4 changes: 3 additions & 1 deletion Plugin/Widget/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* Class Context
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Plugin\Widget
*/
class Context
Expand Down Expand Up @@ -118,4 +120,4 @@ public function afterGetButtonList(
}
return $buttonList;
}
}
}
4 changes: 3 additions & 1 deletion Setup/InstallData.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Class InstallData
* @author Improntus <http://www.improntus.com> - Ecommerce done right
* @copyright Copyright (c) 2022 Improntus
* @package Improntus\PedidosYa\Setup
*/
class InstallData implements InstallDataInterface
Expand Down Expand Up @@ -58,4 +60,4 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface

$setup->endSetup();
}
}
}
Loading

0 comments on commit 1c2fc3d

Please sign in to comment.