Skip to content

Commit c36a8b4

Browse files
committed
Code style changes
1 parent 9f907b7 commit c36a8b4

File tree

23 files changed

+36
-41
lines changed

23 files changed

+36
-41
lines changed

Block/Adminhtml/Post.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ protected function _prepareLayout()
4444

4545
return parent::_prepareLayout();
4646
}
47-
4847
}

Block/Adminhtml/System/Config/Form/UpdateInfo.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public function getLatestVersion()
112112
throw new \Exception('Empty response');
113113
}
114114
$this->latestVersion = $encodedData[self::MODULE_NAME];
115-
116115
} catch (\Exception $e) {
117116
$this->latestVersion = false;
118117
}
@@ -128,5 +127,4 @@ public function needToUpdate()
128127
{
129128
return (version_compare($this->getCurrentVersion(), $this->getLatestVersion()) < 0);
130129
}
131-
132-
}
130+
}

Block/Adminhtml/Tag.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ protected function _prepareLayout()
4444

4545
return parent::_prepareLayout();
4646
}
47-
4847
}

Block/Category/PostList.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
namespace Magefan\Blog\Block\Category;
10+
1011
use Magento\Framework\Api\SortOrder;
1112
use Magefan\Blog\Model\Config\Source\CategoryDisplayMode;
1213

@@ -34,7 +35,8 @@ protected function _preparePostCollection()
3435
*
3536
* @return string
3637
*/
37-
public function getCollectionOrderField(){
38+
public function getCollectionOrderField()
39+
{
3840
if ($this->getCategory()->getData('posts_sort_by')) {
3941
return self::POSTS_SORT_FIELD_BY_POSITION;
4042
}

Block/Index.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ protected function _preparePostCollection()
6161
}
6262

6363
/**
64-
* Retrieve collection order field
65-
*
66-
* @return string
67-
*/
68-
public function getCollectionOrderField(){
64+
* Retrieve collection order field
65+
*
66+
* @return string
67+
*/
68+
public function getCollectionOrderField()
69+
{
6970
$postsSortBy = $this->_scopeConfig->getValue(
7071
\Magefan\Blog\Helper\Config::XML_PATH_HOMEPAGE_POSTS_SORT_BY,
7172
ScopeInterface::SCOPE_STORE

Block/Post/PostList/AbstractList.php

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

1111
use Magento\Store\Model\ScopeInterface;
1212
use Magento\Framework\Api\SortOrder;
13+
1314
/**
1415
* Abstract blog post list block
1516
*/
@@ -95,7 +96,8 @@ protected function _preparePostCollection()
9596
*
9697
* @return string
9798
*/
98-
public function getCollectionOrderField() {
99+
public function getCollectionOrderField()
100+
{
99101
return self::POSTS_SORT_FIELD_BY_PUBLISH_TIME;
100102
}
101103

@@ -104,7 +106,8 @@ public function getCollectionOrderField() {
104106
*
105107
* @return string
106108
*/
107-
public function getCollectionOrderDirection() {
109+
public function getCollectionOrderDirection()
110+
{
108111
return SortOrder::SORT_DESC;
109112
}
110113

@@ -144,7 +147,8 @@ protected function _toHtml()
144147
*
145148
* @return array
146149
*/
147-
public function getIdentities() {
150+
public function getIdentities()
151+
{
148152
$identities = [];
149153
foreach ($this->getPostCollection() as $item) {
150154
$identities = array_merge($identities, $item->getIdentities());

Block/Post/View/RelatedProducts.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ public function getPost()
127127
}
128128

129129
/**
130-
* Return identifiers for produced content
131-
*
132-
* @return array
133-
*/
130+
* Return identifiers for produced content
131+
*
132+
* @return array
133+
*/
134134
public function getIdentities()
135135
{
136136
$identities = [];
@@ -140,5 +140,4 @@ public function getIdentities()
140140

141141
return $identities;
142142
}
143-
144143
}

Block/Sidebar/Categories.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public function maxDepth()
103103
*
104104
* @return array
105105
*/
106-
public function getIdentities() {
106+
public function getIdentities()
107+
{
107108
$identities = [];
108109
foreach ($this->getGroupedChilds() as $item) {
109110
$identities = array_merge($identities, $item->getIdentities());

Block/Sidebar/Custom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace Magefan\Blog\Block\Sidebar;
1010

1111
use \Magento\Store\Model\ScopeInterface;
12+
1213
/**
1314
* Blog sidebar custom block
1415
*/
@@ -51,7 +52,6 @@ public function getContent()
5152
{
5253
$key = 'content';
5354
if (!$this->hasData($key)) {
54-
5555
$content = $this->_scopeConfig->getValue('mfblog/sidebar/'.$this->_widgetKey.'/html', ScopeInterface::SCOPE_STORE);
5656
$content = $this->filterProvider->getPageFilter()->filter(
5757
$content

Block/Sidebar/CustomTwo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace Magefan\Blog\Block\Sidebar;
1010

1111
use \Magento\Store\Model\ScopeInterface;
12+
1213
/**
1314
* Blog sidebar custom block
1415
*/

0 commit comments

Comments
 (0)