diff --git a/app/code/Magento/SalesRule/Model/ResourceModel/Report/Rule/Updatedat.php b/app/code/Magento/SalesRule/Model/ResourceModel/Report/Rule/Updatedat.php index 2f599dd0d78ae..28d5554d04154 100644 --- a/app/code/Magento/SalesRule/Model/ResourceModel/Report/Rule/Updatedat.php +++ b/app/code/Magento/SalesRule/Model/ResourceModel/Report/Rule/Updatedat.php @@ -1,14 +1,12 @@ */ class Updatedat extends \Magento\SalesRule\Model\ResourceModel\Report\Rule\Createdat { diff --git a/app/code/Magento/SalesRule/Model/ResourceModel/Report/Updatedat/Collection.php b/app/code/Magento/SalesRule/Model/ResourceModel/Report/Updatedat/Collection.php index 0e408787beb7f..b1dd8b6639eb7 100644 --- a/app/code/Magento/SalesRule/Model/ResourceModel/Report/Updatedat/Collection.php +++ b/app/code/Magento/SalesRule/Model/ResourceModel/Report/Updatedat/Collection.php @@ -1,14 +1,12 @@ */ class Collection extends \Magento\SalesRule\Model\ResourceModel\Report\Collection { diff --git a/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer.php b/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer.php index 374c3fe505cdc..fa30a38d78cf4 100644 --- a/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer.php +++ b/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer.php @@ -1,14 +1,12 @@ */ class Customer extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer/Collection.php b/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer/Collection.php index d4b92110b955b..30cd340a27ba9 100644 --- a/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer/Collection.php +++ b/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Customer/Collection.php @@ -1,14 +1,12 @@ */ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection { diff --git a/app/code/Magento/SalesRule/Model/Rule/Customer.php b/app/code/Magento/SalesRule/Model/Rule/Customer.php index 34f643aca5983..110209a16944a 100644 --- a/app/code/Magento/SalesRule/Model/Rule/Customer.php +++ b/app/code/Magento/SalesRule/Model/Rule/Customer.php @@ -1,7 +1,7 @@ */ class Customer extends \Magento\Framework\Model\AbstractModel { diff --git a/app/code/Magento/SalesRule/Model/System/Config/Source/Coupon/Format.php b/app/code/Magento/SalesRule/Model/System/Config/Source/Coupon/Format.php index 04e9b525f5274..ae8b6d27395b8 100644 --- a/app/code/Magento/SalesRule/Model/System/Config/Source/Coupon/Format.php +++ b/app/code/Magento/SalesRule/Model/System/Config/Source/Coupon/Format.php @@ -1,20 +1,16 @@ */ class Format implements \Magento\Framework\Option\ArrayInterface { /** - * Sales rule coupon - * * @var \Magento\SalesRule\Helper\Coupon */ protected $_salesRuleCoupon = null; @@ -28,7 +24,7 @@ public function __construct(\Magento\SalesRule\Helper\Coupon $salesRuleCoupon) } /** - * {@inheritdoc} + * @inheritdoc */ public function toOptionArray() { diff --git a/app/code/Magento/SendFriend/Block/Send.php b/app/code/Magento/SendFriend/Block/Send.php index 6f2154ba29f47..43d2eeb19e033 100644 --- a/app/code/Magento/SendFriend/Block/Send.php +++ b/app/code/Magento/SendFriend/Block/Send.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class Send extends \Magento\Framework\View\Element\Template { /** - * SendFriend data - * * @var \Magento\SendFriend\Helper\Data */ protected $_sendfriendData = null; /** - * Core registry - * * @var \Magento\Framework\Registry */ protected $_coreRegistry = null; @@ -245,5 +240,6 @@ protected function _prepareLayout() ] ); } + return $this; } } diff --git a/app/code/Magento/SendFriend/Helper/Data.php b/app/code/Magento/SendFriend/Helper/Data.php index 7725ad605aea2..0dc0b4c9b1719 100644 --- a/app/code/Magento/SendFriend/Helper/Data.php +++ b/app/code/Magento/SendFriend/Helper/Data.php @@ -1,7 +1,7 @@ - * * @api * @since 100.0.2 */ class Data extends \Magento\Framework\App\Helper\AbstractHelper { - const XML_PATH_ENABLED = 'sendfriend/email/enabled'; + public const XML_PATH_ENABLED = 'sendfriend/email/enabled'; - const XML_PATH_ALLOW_FOR_GUEST = 'sendfriend/email/allow_guest'; + public const XML_PATH_ALLOW_FOR_GUEST = 'sendfriend/email/allow_guest'; - const XML_PATH_MAX_RECIPIENTS = 'sendfriend/email/max_recipients'; + public const XML_PATH_MAX_RECIPIENTS = 'sendfriend/email/max_recipients'; - const XML_PATH_MAX_PER_HOUR = 'sendfriend/email/max_per_hour'; + public const XML_PATH_MAX_PER_HOUR = 'sendfriend/email/max_per_hour'; - const XML_PATH_LIMIT_BY = 'sendfriend/email/check_by'; + public const XML_PATH_LIMIT_BY = 'sendfriend/email/check_by'; - const XML_PATH_EMAIL_TEMPLATE = 'sendfriend/email/template'; + public const XML_PATH_EMAIL_TEMPLATE = 'sendfriend/email/template'; - const COOKIE_NAME = 'stf'; + public const COOKIE_NAME = 'stf'; - const CHECK_IP = 1; + public const CHECK_IP = 1; - const CHECK_COOKIE = 0; + public const CHECK_COOKIE = 0; /** * Check is enabled Module diff --git a/app/code/Magento/SendFriend/Model/ResourceModel/SendFriend/Collection.php b/app/code/Magento/SendFriend/Model/ResourceModel/SendFriend/Collection.php index c06151deff9fd..5958537ceab6c 100644 --- a/app/code/Magento/SendFriend/Model/ResourceModel/SendFriend/Collection.php +++ b/app/code/Magento/SendFriend/Model/ResourceModel/SendFriend/Collection.php @@ -1,15 +1,13 @@ - * * @api * @since 100.0.2 */ diff --git a/app/code/Magento/SendFriend/Model/SendFriend.php b/app/code/Magento/SendFriend/Model/SendFriend.php index ff42fa664e533..be744ea2f4aa0 100644 --- a/app/code/Magento/SendFriend/Model/SendFriend.php +++ b/app/code/Magento/SendFriend/Model/SendFriend.php @@ -1,7 +1,7 @@ * @SuppressWarnings(PHPMD.CookieAndSessionMisuse) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) * diff --git a/app/code/Magento/SendFriend/Model/Source/Checktype.php b/app/code/Magento/SendFriend/Model/Source/Checktype.php index 231e5944beb9a..28e92bae121ce 100644 --- a/app/code/Magento/SendFriend/Model/Source/Checktype.php +++ b/app/code/Magento/SendFriend/Model/Source/Checktype.php @@ -1,13 +1,11 @@ */ namespace Magento\SendFriend\Model\Source; diff --git a/app/code/Magento/Shipping/Block/Adminhtml/View.php b/app/code/Magento/Shipping/Block/Adminhtml/View.php index 04df7f6e35e24..de1bb10baab88 100644 --- a/app/code/Magento/Shipping/Block/Adminhtml/View.php +++ b/app/code/Magento/Shipping/Block/Adminhtml/View.php @@ -1,7 +1,7 @@ * @since 100.0.2 */ class View extends \Magento\Backend\Block\Widget\Form\Container { /** - * Core registry - * * @var \Magento\Framework\Registry */ protected $_coreRegistry = null; @@ -36,6 +33,8 @@ public function __construct( } /** + * Initialize View + * * @return void */ protected function _construct() @@ -85,6 +84,8 @@ public function getShipment() } /** + * Header Text get + * * @return \Magento\Framework\Phrase */ public function getHeaderText() @@ -107,6 +108,8 @@ public function getHeaderText() } /** + * Get URL + * * @return string */ public function getBackUrl() @@ -121,6 +124,8 @@ public function getBackUrl() } /** + * Get Email Url + * * @return string */ public function getEmailUrl() @@ -129,6 +134,8 @@ public function getEmailUrl() } /** + * Get Print Url + * * @return string */ public function getPrintUrl() @@ -137,6 +144,8 @@ public function getPrintUrl() } /** + * Update back button url + * * @param bool $flag * @return $this */ diff --git a/app/code/Magento/Shipping/Block/Adminhtml/View/Comments.php b/app/code/Magento/Shipping/Block/Adminhtml/View/Comments.php index 7c852d7ebbf71..07aec48f21e46 100644 --- a/app/code/Magento/Shipping/Block/Adminhtml/View/Comments.php +++ b/app/code/Magento/Shipping/Block/Adminhtml/View/Comments.php @@ -1,13 +1,11 @@ */ namespace Magento\Shipping\Block\Adminhtml\View; @@ -18,8 +16,6 @@ class Comments extends \Magento\Backend\Block\Text\ListText { /** - * Core registry - * * @var \Magento\Framework\Registry */ protected $_coreRegistry = null; diff --git a/app/code/Magento/Shipping/Block/Adminhtml/View/Form.php b/app/code/Magento/Shipping/Block/Adminhtml/View/Form.php index 8467a34ed0368..87f6c5eb955fd 100644 --- a/app/code/Magento/Shipping/Block/Adminhtml/View/Form.php +++ b/app/code/Magento/Shipping/Block/Adminhtml/View/Form.php @@ -1,13 +1,11 @@ */ namespace Magento\Shipping\Block\Adminhtml\View; diff --git a/app/code/Magento/Shipping/Block/Items.php b/app/code/Magento/Shipping/Block/Items.php index 59f92e8ea303d..c0bee8ddc1f03 100644 --- a/app/code/Magento/Shipping/Block/Items.php +++ b/app/code/Magento/Shipping/Block/Items.php @@ -1,13 +1,11 @@ */ namespace Magento\Shipping\Block; @@ -20,8 +18,6 @@ class Items extends \Magento\Sales\Block\Items\AbstractItems { /** - * Core registry - * * @var \Magento\Framework\Registry */ protected $_coreRegistry = null; diff --git a/app/code/Magento/Shipping/Model/Shipment/Request.php b/app/code/Magento/Shipping/Model/Shipment/Request.php index 23f7924dc0c3a..4448ddec267ab 100644 --- a/app/code/Magento/Shipping/Model/Shipment/Request.php +++ b/app/code/Magento/Shipping/Model/Shipment/Request.php @@ -1,7 +1,7 @@ */ class Request extends \Magento\Framework\DataObject { diff --git a/app/code/Magento/Shipping/Model/Shipment/ReturnShipment.php b/app/code/Magento/Shipping/Model/Shipment/ReturnShipment.php index 6a67c5b9c8f97..387e00995ded6 100644 --- a/app/code/Magento/Shipping/Model/Shipment/ReturnShipment.php +++ b/app/code/Magento/Shipping/Model/Shipment/ReturnShipment.php @@ -1,7 +1,7 @@ */ class ReturnShipment extends \Magento\Framework\DataObject { diff --git a/app/code/Magento/Sitemap/Block/Adminhtml/Edit.php b/app/code/Magento/Sitemap/Block/Adminhtml/Edit.php index d1b5fd1df45c4..cbcd4324345c2 100644 --- a/app/code/Magento/Sitemap/Block/Adminhtml/Edit.php +++ b/app/code/Magento/Sitemap/Block/Adminhtml/Edit.php @@ -1,20 +1,16 @@ */ class Edit extends \Magento\Backend\Block\Widget\Form\Container { /** - * Core registry - * * @var \Magento\Framework\Registry */ protected $_coreRegistry = null; diff --git a/app/code/Magento/Sitemap/Block/Adminhtml/Edit/Form.php b/app/code/Magento/Sitemap/Block/Adminhtml/Edit/Form.php index 267fa034337ab..19f4f00a15f0b 100644 --- a/app/code/Magento/Sitemap/Block/Adminhtml/Edit/Form.php +++ b/app/code/Magento/Sitemap/Block/Adminhtml/Edit/Form.php @@ -1,14 +1,12 @@ */ class Form extends \Magento\Backend\Block\Widget\Form\Generic { diff --git a/app/code/Magento/Sitemap/Model/Observer.php b/app/code/Magento/Sitemap/Model/Observer.php index 4333c71c7497f..41e3c1271a08d 100644 --- a/app/code/Magento/Sitemap/Model/Observer.php +++ b/app/code/Magento/Sitemap/Model/Observer.php @@ -1,7 +1,7 @@ */ class Observer { /** * Enable/disable configuration */ - const XML_PATH_GENERATION_ENABLED = 'sitemap/generate/enabled'; + public const XML_PATH_GENERATION_ENABLED = 'sitemap/generate/enabled'; /** * Cronjob expression configuration * * @deprecated Use \Magento\Cron\Model\Config\Backend\Sitemap::CRON_STRING_PATH instead. */ - const XML_PATH_CRON_EXPR = 'crontab/default/jobs/generate_sitemaps/schedule/cron_expr'; + public const XML_PATH_CRON_EXPR = 'crontab/default/jobs/generate_sitemaps/schedule/cron_expr'; /** * Error email template configuration */ - const XML_PATH_ERROR_TEMPLATE = 'sitemap/generate/error_email_template'; + public const XML_PATH_ERROR_TEMPLATE = 'sitemap/generate/error_email_template'; /** * Error email identity configuration */ - const XML_PATH_ERROR_IDENTITY = 'sitemap/generate/error_email_identity'; + public const XML_PATH_ERROR_IDENTITY = 'sitemap/generate/error_email_identity'; /** * 'Send error emails to' configuration */ - const XML_PATH_ERROR_RECIPIENT = 'sitemap/generate/error_email'; + public const XML_PATH_ERROR_RECIPIENT = 'sitemap/generate/error_email'; /** - * Core store config - * * @var \Magento\Framework\App\Config\ScopeConfigInterface */ private $scopeConfig; diff --git a/app/code/Magento/Sitemap/Model/ResourceModel/Sitemap/Collection.php b/app/code/Magento/Sitemap/Model/ResourceModel/Sitemap/Collection.php index 9b2128ffe3328..da4ac075447c6 100644 --- a/app/code/Magento/Sitemap/Model/ResourceModel/Sitemap/Collection.php +++ b/app/code/Magento/Sitemap/Model/ResourceModel/Sitemap/Collection.php @@ -1,14 +1,13 @@ * @api * @since 100.0.2 */