Skip to content

Commit 5a8f33d

Browse files
committed
Code style improvements
1 parent 8682cc8 commit 5a8f33d

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

Diff for: Block/Archive/Archive.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ private function filterContent(string $content):string
5858
}
5959
return $content;
6060
}
61-
}
61+
}

Diff for: Block/Archive/Description.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ public function __construct(
3333
Template\Context $context,
3434
\Magento\Framework\Registry $coreRegistry,
3535
array $data = []
36-
)
37-
{
36+
) {
3837
parent::__construct($context, $data);
3938
$this->_coreRegistry = $coreRegistry;
4039
}

Diff for: Block/Archive/PostList.php

-1
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,4 @@ protected function _getConfigValue($param)
9191
ScopeInterface::SCOPE_STORE
9292
);
9393
}
94-
9594
}

Diff for: Block/Post/View/CustomCss.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ protected function _toHtml()
2828

2929
return '';
3030
}
31-
}
31+
}

Diff for: Model/Config/Source/CategoryTree.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function _getOptions($itemId = 0)
6363
foreach ($childs[$itemId] as $item) {
6464
$data = [
6565
'label' => $item->getTitle() .
66-
(' (ID: ' . $item->getId() . ')') .
66+
(' (ID: ' . $item->getId() . ')') .
6767
($item->getIsActive() ? '' : ' ('.__('Disabled').')'),
6868
'value' => $item->getId(),
6969
];

Diff for: Plugin/Magento/Framework/App/Config/ScopeConfigInterfacePlugin.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ class ScopeConfigInterfacePlugin
3939
public function __construct(
4040
RequestInterface $request,
4141
Config $config
42-
)
43-
{
42+
) {
4443
$this->request = $request;
4544
$this->config = $config;
4645
}
@@ -53,8 +52,9 @@ public function __construct(
5352
* @param $scopeCode
5453
* @return mixed|string
5554
*/
56-
public function afterGetValue($subject, $result, $path, $scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode = null) {
57-
if ($path == 'mageworx_seo/base/canonical/canonical_ignore_pages' && $this->request->getModuleName() == 'blog') {
55+
public function afterGetValue($subject, $result, $path, $scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode = null)
56+
{
57+
if ($path == 'mageworx_seo/base/canonical/canonical_ignore_pages' && $this->request->getModuleName() == 'blog') {
5858
$blogPages = explode(",", $this->config->getConfig(Config::XML_PATH_DISPLAY_CANONICAL_TAG_FOR));
5959

6060
if (in_array('all', $blogPages)) {

Diff for: Plugin/Magento/Framework/View/Element/TemplatePlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function aroundGetTemplate(\Magento\Framework\View\Element\Template $subj
3737
{
3838
if ('aminfotab.conflicts' === $subject->getNameInLayout() && $this->moduleManager->isEnabled('Amasty_Base')) {
3939
foreach ($conflictsMessages = $subject->getConflictsMessages() as $key => $conflictsMessage) {
40-
if (strpos($conflictsMessage,'Magefan')) {
40+
if (strpos($conflictsMessage, 'Magefan')) {
4141
return '';
4242
}
4343
}

0 commit comments

Comments
 (0)