diff --git a/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option.php b/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option.php index 36845f5f53941..a5edecd260e0e 100644 --- a/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option.php +++ b/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option.php @@ -1,14 +1,12 @@ */ class Option extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option/Collection.php b/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option/Collection.php index c4d684b5f01d9..4c91fa38e9a79 100644 --- a/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option/Collection.php +++ b/app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Option/Collection.php @@ -1,7 +1,7 @@ */ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection { @@ -135,6 +133,7 @@ public function getOptionsByItem($item) * * @param int | \Magento\Catalog\Model\Product $product * @return array + * phpcs:disable */ public function getOptionsByProduct($product) { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Config/Form/Field/MtdStart.php b/app/code/Magento/Reports/Block/Adminhtml/Config/Form/Field/MtdStart.php index fdc79440384d0..a374a79d4079b 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Config/Form/Field/MtdStart.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Config/Form/Field/MtdStart.php @@ -1,7 +1,7 @@ */ class MtdStart extends \Magento\Config\Block\System\Config\Form\Field { /** + * Get element html + * * @param AbstractElement $element * @return string */ diff --git a/app/code/Magento/Reports/Block/Adminhtml/Customer/Accounts.php b/app/code/Magento/Reports/Block/Adminhtml/Customer/Accounts.php index be30c9e7bbc45..cfa43f7aa6d8a 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Customer/Accounts.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Customer/Accounts.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Accounts extends \Magento\Backend\Block\Widget\Grid\Container @@ -20,6 +19,8 @@ class Accounts extends \Magento\Backend\Block\Widget\Grid\Container protected $_blockGroup = 'Magento_Reports'; /** + * Initialize Accounts + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Customer/Orders.php b/app/code/Magento/Reports/Block/Adminhtml/Customer/Orders.php index 88efc61153d1c..32999161babd7 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Customer/Orders.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Customer/Orders.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Orders extends \Magento\Backend\Block\Widget\Grid\Container @@ -22,6 +21,8 @@ class Orders extends \Magento\Backend\Block\Widget\Grid\Container protected $_blockGroup = 'Magento_Reports'; /** + * Initialize Orders + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Customer/Totals.php b/app/code/Magento/Reports/Block/Adminhtml/Customer/Totals.php index 5c4da1a76f0e6..6c188f2795468 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Customer/Totals.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Customer/Totals.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Totals extends \Magento\Backend\Block\Widget\Grid\Container @@ -20,6 +19,8 @@ class Totals extends \Magento\Backend\Block\Widget\Grid\Container protected $_blockGroup = 'Magento_Reports'; /** + * Initialize Totals + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Filter/Form.php b/app/code/Magento/Reports/Block/Adminhtml/Filter/Form.php index b7b669163e93c..62ff833984dcb 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Filter/Form.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Filter/Form.php @@ -1,7 +1,7 @@ * @api * @since 100.0.2 */ diff --git a/app/code/Magento/Reports/Block/Adminhtml/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Grid.php index d19ead252cd7c..f48ff9eec5988 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Grid.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Grid extends \Magento\Backend\Block\Widget\Grid diff --git a/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Blanknumber.php b/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Blanknumber.php index 581c7b18f24a1..221e152031ec8 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Blanknumber.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Blanknumber.php @@ -1,18 +1,18 @@ */ class Blanknumber extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Number { /** + * Get Value + * * @param \Magento\Framework\DataObject $row * * @return string diff --git a/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Customer.php b/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Customer.php index 1bf6a4120b74c..90c442c9429a3 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Customer.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Customer.php @@ -1,14 +1,12 @@ */ class Customer extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Product.php b/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Product.php index 97fee9acf5d0e..5635ad222ae9d 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Product.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Product.php @@ -1,14 +1,12 @@ */ class Product extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Grid/Shopcart.php b/app/code/Magento/Reports/Block/Adminhtml/Grid/Shopcart.php index 1d65dd5874c6e..5cb4ad6957658 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Grid/Shopcart.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Grid/Shopcart.php @@ -1,14 +1,12 @@ */ class Shopcart extends \Magento\Backend\Block\Widget\Grid\Extended { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product.php b/app/code/Magento/Reports/Block/Adminhtml/Product.php index 5532d02ea5252..62fcf50362df3 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product.php @@ -1,19 +1,17 @@ */ class Product extends \Magento\Backend\Block\Widget\Grid\Container { /** - * {@inheritdoc} + * @inheritdoc */ protected function _construct() { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads.php index 127d131d44f50..7262e0838c520 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads.php @@ -1,18 +1,18 @@ */ class Downloads extends \Magento\Backend\Block\Widget\Grid\Container { /** + * Initialize Downloads + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Grid.php index 69053ee944086..5bef921be5f94 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Grid.php @@ -1,14 +1,12 @@ */ class Grid extends \Magento\Backend\Block\Widget\Grid\Extended { @@ -18,6 +16,8 @@ class Grid extends \Magento\Backend\Block\Widget\Grid\Extended protected $_downloadsFactory; /** + * Initialize Grid + * * @param \Magento\Backend\Block\Template\Context $context * @param \Magento\Backend\Helper\Data $backendHelper * @param \Magento\Reports\Model\ResourceModel\Product\Downloads\CollectionFactory $downloadsFactory @@ -34,6 +34,8 @@ public function __construct( } /** + * Initialize + * * @return void */ protected function _construct() @@ -44,6 +46,8 @@ protected function _construct() } /** + * Prepare collection + * * @return \Magento\Backend\Block\Widget\Grid */ protected function _prepareCollection() @@ -78,6 +82,8 @@ protected function _prepareCollection() } /** + * Prepare column + * * @return \Magento\Backend\Block\Widget\Grid\Extended */ protected function _prepareColumns() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Renderer/Purchases.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Renderer/Purchases.php index 27de409b07677..b2e0e7b1505bb 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Renderer/Purchases.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Downloads/Renderer/Purchases.php @@ -1,14 +1,12 @@ */ class Purchases extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock.php index 815038210dac5..d1cf1a57128a2 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Lowstock extends \Magento\Backend\Block\Widget\Grid\Container { /** + * Initialize Lowstock + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock/Grid.php index a7a79ff05640d..777d1cfca962b 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Lowstock/Grid.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Grid extends \Magento\Backend\Block\Widget\Grid diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Sold.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Sold.php index 01286e906ee78..142534dfc92e5 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Sold.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Sold.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Sold extends \Magento\Backend\Block\Widget\Grid\Container diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed.php index f901b32d8b12f..c8d75a69c3694 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Viewed extends \Magento\Backend\Block\Widget\Grid\Container @@ -20,6 +19,8 @@ class Viewed extends \Magento\Backend\Block\Widget\Grid\Container protected $_template = 'Magento_Reports::report/grid/container.phtml'; /** + * Initialize Viewed + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed/Grid.php index a621d530222ff..578c367e7fdd6 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Product/Viewed/Grid.php @@ -1,14 +1,13 @@ * @SuppressWarnings(PHPMD.DepthOfInheritance) */ class Grid extends \Magento\Reports\Block\Adminhtml\Grid\AbstractGrid diff --git a/app/code/Magento/Reports/Block/Adminhtml/Refresh/Statistics.php b/app/code/Magento/Reports/Block/Adminhtml/Refresh/Statistics.php index f47e5c6522438..39af7ba098549 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Refresh/Statistics.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Refresh/Statistics.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Statistics extends \Magento\Backend\Block\Widget\Grid\Container diff --git a/app/code/Magento/Reports/Block/Adminhtml/Review/Customer.php b/app/code/Magento/Reports/Block/Adminhtml/Review/Customer.php index 610149bdff26e..1234000e2c65c 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Review/Customer.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Review/Customer.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Customer extends \Magento\Backend\Block\Widget\Grid\Container { /** + * Initialize + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Review/Detail.php b/app/code/Magento/Reports/Block/Adminhtml/Review/Detail.php index 2179e89916d7c..aac9b704faecd 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Review/Detail.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Review/Detail.php @@ -1,14 +1,12 @@ */ class Detail extends \Magento\Backend\Block\Widget\Grid\Container { @@ -18,6 +16,8 @@ class Detail extends \Magento\Backend\Block\Widget\Grid\Container protected $_productFactory; /** + * Initialize + * * @param \Magento\Backend\Block\Widget\Context $context * @param \Magento\Catalog\Model\ProductFactory $productFactory * @param array $data @@ -32,6 +32,8 @@ public function __construct( } /** + * Initialize + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Review/Detail/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Review/Detail/Grid.php index c28abd0fa9161..55273aab00016 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Review/Detail/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Review/Detail/Grid.php @@ -1,14 +1,12 @@ */ class Grid extends \Magento\Backend\Block\Widget\Grid\Extended { @@ -18,6 +16,8 @@ class Grid extends \Magento\Backend\Block\Widget\Grid\Extended protected $_reviewsFactory; /** + * Initialize + * * @param \Magento\Backend\Block\Template\Context $context * @param \Magento\Backend\Helper\Data $backendHelper * @param \Magento\Reports\Model\ResourceModel\Review\CollectionFactory $reviewsFactory @@ -34,6 +34,8 @@ public function __construct( } /** + * Initialize + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Review/Product.php b/app/code/Magento/Reports/Block/Adminhtml/Review/Product.php index 1155d1fde88b4..983cdb325a82a 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Review/Product.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Review/Product.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Product extends \Magento\Backend\Block\Widget\Grid\Container { /** + * Initialize + * * @return void */ protected function _construct() diff --git a/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers.php b/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers.php index b773184408a7f..d40435689e3b1 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Bestsellers extends \Magento\Backend\Block\Widget\Grid\Container { /** - * Template - * * @var string */ protected $_template = 'Magento_Reports::report/grid/container.phtml'; /** - * {@inheritdoc} + * @inheritdoc */ protected function _construct() { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers/Grid.php index f898775f6b99a..e08513ee25852 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Sales/Bestsellers/Grid.php @@ -1,14 +1,13 @@ * @SuppressWarnings(PHPMD.DepthOfInheritance) */ class Grid extends \Magento\Reports\Block\Adminhtml\Grid\AbstractGrid @@ -21,7 +20,8 @@ class Grid extends \Magento\Reports\Block\Adminhtml\Grid\AbstractGrid protected $_columnGroupBy = 'period'; /** - * {@inheritdoc} + * @inheritdoc + * * @codeCoverageIgnore */ protected function _construct() @@ -31,7 +31,8 @@ protected function _construct() } /** - * {@inheritdoc} + * @inheritdoc + * * @codeCoverageIgnore */ public function getResourceCollectionName() @@ -40,7 +41,7 @@ public function getResourceCollectionName() } /** - * {@inheritdoc} + * @inheritdoc */ protected function _prepareColumns() { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons.php b/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons.php index fe85af58b34f6..153d414854dd7 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Coupons extends \Magento\Backend\Block\Widget\Grid\Container @@ -22,7 +21,7 @@ class Coupons extends \Magento\Backend\Block\Widget\Grid\Container protected $_template = 'Magento_Reports::report/grid/container.phtml'; /** - * {@inheritdoc} + * @inheritdoc */ protected function _construct() { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons/Grid.php index e6e8bdbec964a..99fada7c0535c 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons/Grid.php @@ -1,14 +1,13 @@ * @SuppressWarnings(PHPMD.DepthOfInheritance) */ class Grid extends \Magento\Reports\Block\Adminhtml\Grid\AbstractGrid diff --git a/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced.php b/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced.php index 57594a11bd997..e02812e720c8d 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Invoiced extends \Magento\Backend\Block\Widget\Grid\Container @@ -22,7 +21,7 @@ class Invoiced extends \Magento\Backend\Block\Widget\Grid\Container protected $_template = 'Magento_Reports::report/grid/container.phtml'; /** - * {@inheritdoc} + * @inheritdoc */ protected function _construct() { diff --git a/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced/Grid.php b/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced/Grid.php index c3e263475a532..bc96e13165a6a 100644 --- a/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced/Grid.php +++ b/app/code/Magento/Reports/Block/Adminhtml/Sales/Invoiced/Grid.php @@ -1,7 +1,7 @@ * @SuppressWarnings(PHPMD.DepthOfInheritance) */ class Grid extends \Magento\Reports\Block\Adminhtml\Grid\AbstractGrid