Skip to content

Commit 45528b8

Browse files
committed
- Removed @codingstandardsignorefile from files
- Changed is_null to === null - Corrected line length
1 parent 100af87 commit 45528b8

File tree

26 files changed

+40
-69
lines changed

26 files changed

+40
-69
lines changed

app/code/Magento/Backend/App/Config.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* See COPYING.txt for license details.
77
*/
88

9-
// @codingStandardsIgnoreFile
10-
119
namespace Magento\Backend\App;
1210

1311
use Magento\Config\App\Config\Type\System;

app/code/Magento/Backend/Block/Dashboard.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block;
108

119
/**

app/code/Magento/Backend/Block/Dashboard/AbstractDashboard.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block\Dashboard;
108

119
/**

app/code/Magento/Backend/Block/Menu.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block;
108

119
/**
@@ -411,7 +409,7 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
411409
*/
412410
public function getActiveItemModel()
413411
{
414-
if (is_null($this->_activeItemModel)) {
412+
if ($this->_activeItemModel === null) {
415413
$this->_activeItemModel = $this->getMenuModel()->get($this->getActive());
416414
if (false == $this->_activeItemModel instanceof \Magento\Backend\Model\Menu\Item) {
417415
$this->_activeItemModel = false;

app/code/Magento/Backend/Block/Page/Header.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block\Page;
108

119
/**
@@ -81,6 +79,9 @@ public function getLogoutLink()
8179
*/
8280
public function displayNoscriptNotice()
8381
{
84-
return $this->_scopeConfig->getValue('web/browser_capabilities/javascript', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
82+
return $this->_scopeConfig->getValue(
83+
'web/browser_capabilities/javascript',
84+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
85+
);
8586
}
8687
}

app/code/Magento/Backend/Block/Page/Notices.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
/**
108
* Adminhtml header notices block
119
*
@@ -25,7 +23,10 @@ class Notices extends \Magento\Backend\Block\Template
2523
*/
2624
public function displayNoscriptNotice()
2725
{
28-
return $this->_scopeConfig->getValue('web/browser_capabilities/javascript', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
26+
return $this->_scopeConfig->getValue(
27+
'web/browser_capabilities/javascript',
28+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
29+
);
2930
}
3031

3132
/**
@@ -35,6 +36,9 @@ public function displayNoscriptNotice()
3536
*/
3637
public function displayDemoNotice()
3738
{
38-
return $this->_scopeConfig->getValue('design/head/demonotice', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
39+
return $this->_scopeConfig->getValue(
40+
'design/head/demonotice',
41+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
42+
);
3943
}
4044
}

app/code/Magento/Backend/Block/Page/System/Config/Robots/Reset.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block\Page\System\Config\Robots;
108

119
use Magento\Framework\App\Config\ScopeConfigInterface;

app/code/Magento/Backend/Block/Store/Switcher/Form/Renderer/Fieldset.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block\Store\Switcher\Form\Renderer;
108

9+
use \Magento\Framework\Data\Form\Element\Renderer\RendererInterface;
10+
1111
/**
1212
* Form fieldset renderer
1313
*/
14-
class Fieldset extends \Magento\Backend\Block\Template implements \Magento\Framework\Data\Form\Element\Renderer\RendererInterface
14+
class Fieldset extends \Magento\Backend\Block\Template implements RendererInterface
1515
{
1616
/**
1717
* Form element which re-rendering

app/code/Magento/Backend/Block/System/Design/Edit/Tab/General.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block\System\Design\Edit\Tab;
108

119
class General extends \Magento\Backend\Block\Widget\Form\Generic

app/code/Magento/Backend/Block/Widget/Form/Renderer/Element.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block\Widget\Form\Renderer;
108

119
use Magento\Framework\Data\Form\Element\AbstractElement;
10+
use Magento\Framework\Data\Form\Element\Renderer\RendererInterface;
1211

1312
/**
1413
* Form element default renderer
1514
*
1615
* @author Magento Core Team <core@magentocommerce.com>
1716
*/
18-
class Element extends \Magento\Backend\Block\Template implements \Magento\Framework\Data\Form\Element\Renderer\RendererInterface
17+
class Element extends \Magento\Backend\Block\Template implements RendererInterface
1918
{
2019
/**
2120
* @var AbstractElement

0 commit comments

Comments
 (0)