Skip to content

Commit 5103b8e

Browse files
committed
Fix static tests.
1 parent b7434d7 commit 5103b8e

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

app/code/Magento/Backend/Block/Template/Context.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*
1919
* @api
2020
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
21+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2122
* @since 100.0.2
2223
*/
2324
class Context extends \Magento\Framework\View\Element\Template\Context
@@ -173,6 +174,8 @@ public function getAuthorization()
173174
}
174175

175176
/**
177+
* Get backend session instance.
178+
*
176179
* @return \Magento\Backend\Model\Session
177180
*/
178181
public function getBackendSession()
@@ -181,6 +184,8 @@ public function getBackendSession()
181184
}
182185

183186
/**
187+
* Get math random instance.
188+
*
184189
* @return \Magento\Framework\Math\Random
185190
*/
186191
public function getMathRandom()
@@ -189,6 +194,8 @@ public function getMathRandom()
189194
}
190195

191196
/**
197+
* Get form key instance.
198+
*
192199
* @return \Magento\Framework\Data\Form\FormKey
193200
*/
194201
public function getFormKey()
@@ -197,6 +204,8 @@ public function getFormKey()
197204
}
198205

199206
/**
207+
* Get name builder instance.
208+
*
200209
* @return \Magento\Framework\Code\NameBuilder
201210
*/
202211
public function getNameBuilder()

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/AbstractRenderer.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ abstract class AbstractRenderer extends \Magento\Backend\Block\AbstractBlock imp
2828
protected $_column;
2929

3030
/**
31+
* Set column for renderer.
32+
*
3133
* @param Column $column
3234
* @return $this
3335
*/
@@ -38,6 +40,8 @@ public function setColumn($column)
3840
}
3941

4042
/**
43+
* Returns row associated with the renderer.
44+
*
4145
* @return Column
4246
*/
4347
public function getColumn()
@@ -75,6 +79,8 @@ public function renderExport(DataObject $row)
7579
}
7680

7781
/**
82+
* Returns value of the row.
83+
*
7884
* @param DataObject $row
7985
* @return mixed
8086
*/
@@ -92,6 +98,8 @@ protected function _getValue(DataObject $row)
9298
}
9399

94100
/**
101+
* Get pre-rendered input element.
102+
*
95103
* @param DataObject $row
96104
* @return string
97105
*/
@@ -108,6 +116,8 @@ public function _getInputValueElement(DataObject $row)
108116
}
109117

110118
/**
119+
* Get input value by row.
120+
*
111121
* @param DataObject $row
112122
* @return mixed
113123
*/
@@ -117,6 +127,8 @@ protected function _getInputValue(DataObject $row)
117127
}
118128

119129
/**
130+
* Renders header of the column,
131+
*
120132
* @return string
121133
*/
122134
public function renderHeader()
@@ -148,6 +160,8 @@ public function renderHeader()
148160
}
149161

150162
/**
163+
* Render HTML properties.
164+
*
151165
* @return string
152166
*/
153167
public function renderProperty()
@@ -172,6 +186,8 @@ public function renderProperty()
172186
}
173187

174188
/**
189+
* Returns HTML for CSS.
190+
*
175191
* @return string
176192
*/
177193
public function renderCss()

app/code/Magento/Backend/Controller/Adminhtml/Dashboard/ProductsViewed.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
*/
77
namespace Magento\Backend\Controller\Adminhtml\Dashboard;
88

9-
class ProductsViewed extends AjaxBlock
9+
use Magento\Framework\App\Action\HttpGetActionInterface;
10+
11+
/**
12+
* Get most viewed products controller.
13+
*/
14+
class ProductsViewed extends AjaxBlock implements HttpGetActionInterface
1015
{
1116
/**
1217
* Gets most viewed products list

0 commit comments

Comments
 (0)