Skip to content

Commit 3c0b60a

Browse files
committed
Fixes phpcs errors and warnings for Magento\Framework\View\Element
I was working with those classes and spotted a few warnings and errors that prevent from smooth pull requests. Here are most fixes.
1 parent e8c2526 commit 3c0b60a

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

lib/internal/Magento/Framework/View/Element/ExceptionHandlerBlockFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/**
99
* Class ExceptionHandlerBlockFactory
10+
*
1011
* @package Magento\Framework\View\Element
1112
*/
1213
class ExceptionHandlerBlockFactory

lib/internal/Magento/Framework/View/Element/FormKey.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
namespace Magento\Framework\View\Element;
1111

1212
/**
13+
* Element with FormKey
14+
*
1315
* @api
1416
*/
1517
class FormKey extends \Magento\Framework\View\Element\AbstractBlock

lib/internal/Magento/Framework/View/Element/Js/Components.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use Magento\Framework\View\Element\Template;
1010

1111
/**
12+
* Block for Components
13+
*
1214
* @api
1315
*/
1416
class Components extends Template

lib/internal/Magento/Framework/View/Element/Js/Cookie.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use Magento\Framework\View\Element\Template\Context;
1111

1212
/**
13+
* Block passes configuration for cookies set by JS
14+
*
1315
* @api
1416
*/
1517
class Cookie extends Template
@@ -75,6 +77,8 @@ public function getPath()
7577
}
7678

7779
/**
80+
* Get configured cookie lifetime
81+
*
7882
* @return int
7983
*/
8084
public function getLifetime()

lib/internal/Magento/Framework/View/Element/RendererList.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Magento\Framework\View\Element;
77

88
/**
9+
* Renderer List
10+
*
911
* @api
1012
*/
1113
class RendererList extends AbstractBlock

lib/internal/Magento/Framework/View/Element/Template.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/**
1212
* Standard Magento block.
13+
*
1314
* Should be used when you declare a block in frontend area layout handle.
1415
*
1516
* Avoid extending this class.
@@ -166,6 +167,7 @@ public function setTemplateContext($templateContext)
166167

167168
/**
168169
* Internal constructor, that is called from real constructor
170+
*
169171
* @return void
170172
*/
171173
protected function _construct()

lib/internal/Magento/Framework/View/Element/Template/File/Resolver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/**
1212
* Class Resolver
13+
*
1314
* @package Magento\Framework\View\Element\Template\File
1415
*/
1516
class Resolver

lib/internal/Magento/Framework/View/Element/UiComponentInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public function render();
5252
public function addComponent($name, UiComponentInterface $component);
5353

5454
/**
55+
* Get component
56+
*
5557
* @param string $name
5658
* @return UiComponentInterface
5759
*/

0 commit comments

Comments
 (0)