@@ -103,6 +103,8 @@ class Column extends Widget
103103 protected $ _isGrouped = false ;
104104
105105 /**
106+ * Set property is grouped.
107+ *
106108 * @return void
107109 */
108110 public function _construct ()
@@ -169,7 +171,8 @@ public function getHtmlProperty()
169171 }
170172
171173 /**
172- * Get Header html
174+ * This method get Header html.
175+ *
173176 * @return string
174177 */
175178 public function getHeaderHtml ()
@@ -222,7 +225,8 @@ public function setSortable($value)
222225 }
223226
224227 /**
225- * Get header css class name
228+ * Get header css class name.
229+ *
226230 * @return string
227231 */
228232 public function getHeaderCssClass ()
@@ -234,6 +238,8 @@ public function getHeaderCssClass()
234238 }
235239
236240 /**
241+ * This method check if is sortable.
242+ *
237243 * @return bool
238244 * @SuppressWarnings(PHPMD.BooleanGetMethodName)
239245 */
@@ -256,6 +262,7 @@ public function addHeaderCssClass($className)
256262
257263 /**
258264 * Get header class names
265+ *
259266 * @return string
260267 */
261268 public function getHeaderHtmlProperty ()
@@ -291,6 +298,7 @@ public function getRowField(\Magento\Framework\DataObject $row)
291298 $ frameCallback = $ this ->getFrameCallback ();
292299 if (is_array ($ frameCallback )) {
293300 $ this ->validateFrameCallback ($ frameCallback );
301+ //phpcs:ignore Magento2.Functions.DiscouragedFunction
294302 $ renderedValue = call_user_func ($ frameCallback , $ renderedValue , $ row , $ this , false );
295303 }
296304
@@ -334,6 +342,7 @@ public function getRowFieldExport(\Magento\Framework\DataObject $row)
334342 $ frameCallback = $ this ->getFrameCallback ();
335343 if (is_array ($ frameCallback )) {
336344 $ this ->validateFrameCallback ($ frameCallback );
345+ //phpcs:ignore Magento2.Functions.DiscouragedFunction
337346 $ renderedValue = call_user_func ($ frameCallback , $ renderedValue , $ row , $ this , true );
338347 }
339348
@@ -412,7 +421,7 @@ public function setRendererType($type, $className)
412421 */
413422 protected function _getRendererByType ()
414423 {
415- $ type = strtolower ($ this ->getType ());
424+ $ type = strtolower (( string ) $ this ->getType ());
416425 $ rendererClass = isset (
417426 $ this ->_rendererTypes [$ type ]
418427 ) ? $ this ->_rendererTypes [$ type ] : $ this ->_rendererTypes ['default ' ];
@@ -469,7 +478,7 @@ public function setFilterType($type, $className)
469478 */
470479 protected function _getFilterByType ()
471480 {
472- $ type = $ this ->getFilterType () ? strtolower ($ this ->getFilterType ()) : strtolower ($ this ->getType ());
481+ $ type = $ this ->getFilterType () ? strtolower ($ this ->getFilterType ()) : strtolower (( string ) $ this ->getType ());
473482 $ filterClass = isset ($ this ->_filterTypes [$ type ]) ? $ this ->_filterTypes [$ type ] : $ this ->_filterTypes ['default ' ];
474483
475484 return $ filterClass ;
0 commit comments