Skip to content

Commit dda20f5

Browse files
committed
Fix static tests
1 parent c40c686 commit dda20f5

File tree

10 files changed

+8
-17
lines changed

10 files changed

+8
-17
lines changed

app/code/Magento/Review/Block/Adminhtml/Add/Form.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
class Form extends \Magento\Backend\Block\Widget\Form\Generic
1515
{
1616
/**
17-
* Review data
18-
*
1917
* @var \Magento\Review\Helper\Data
2018
*/
2119
protected $_reviewData = null;

app/code/Magento/Review/Block/Adminhtml/Rating.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
class Rating extends \Magento\Backend\Block\Widget\Grid\Container
1515
{
1616
/**
17+
* Initialise the block
18+
*
1719
* @return void
1820
*/
1921
protected function _construct()

app/code/Magento/Review/Block/Form.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
class Form extends \Magento\Framework\View\Element\Template
2121
{
2222
/**
23-
* Review data
24-
*
2523
* @var \Magento\Review\Helper\Data
2624
*/
2725
protected $_reviewData = null;

app/code/Magento/Review/Block/Product/Review.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
class Review extends Template implements IdentityInterface
1818
{
1919
/**
20-
* Core registry
21-
*
2220
* @var \Magento\Framework\Registry
2321
*/
2422
protected $_coreRegistry;

app/code/Magento/Review/Model/Rating.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ class Rating extends \Magento\Framework\Model\AbstractModel implements IdentityI
2424
/**
2525
* rating entity codes
2626
*/
27-
const ENTITY_PRODUCT_CODE = 'product';
27+
public const ENTITY_PRODUCT_CODE = 'product';
2828

29-
const ENTITY_PRODUCT_REVIEW_CODE = 'product_review';
29+
public const ENTITY_PRODUCT_REVIEW_CODE = 'product_review';
3030

31-
const ENTITY_REVIEW_CODE = 'review';
31+
public const ENTITY_REVIEW_CODE = 'review';
3232

3333
/**
3434
* @var \Magento\Review\Model\Rating\OptionFactory

app/code/Magento/Review/Model/Rating/Option/Vote.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class Vote extends \Magento\Framework\Model\AbstractModel
1616
{
1717
/**
18+
* Initialise the class
19+
*
1820
* @return void
1921
*/
2022
protected function _construct()

app/code/Magento/Review/Model/ResourceModel/Rating.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
*/
1818
class Rating extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
1919
{
20-
const RATING_STATUS_APPROVED = 'Approved';
20+
public const RATING_STATUS_APPROVED = 'Approved';
2121

2222
/**
23-
* Store manager
24-
*
2523
* @var \Magento\Store\Model\StoreManagerInterface
2624
*/
2725
protected $_storeManager;

app/code/Magento/Review/Model/ResourceModel/Rating/Collection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
2424
protected $_ratingCollectionF;
2525

2626
/**
27-
* Add store data flag
2827
* @var bool
2928
*/
3029
protected $_addStoreDataFlag = false;

app/code/Magento/Review/Model/ResourceModel/Rating/Grid/Collection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
class Collection extends \Magento\Review\Model\ResourceModel\Rating\Collection
1212
{
1313
/**
14-
* Core registry
15-
*
1614
* @var \Magento\Framework\Registry
1715
*/
1816
protected $_coreRegistry = null;

app/code/Magento/Review/Model/ResourceModel/Review/Status/Collection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
1313
{
1414
/**
15-
* Review status table
16-
*
1715
* @var string
1816
*/
1917
protected $_reviewStatusTable;

0 commit comments

Comments
 (0)