File tree Expand file tree Collapse file tree 23 files changed +36
-41
lines changed Expand file tree Collapse file tree 23 files changed +36
-41
lines changed Original file line number Diff line number Diff line change @@ -44,5 +44,4 @@ protected function _prepareLayout()
4444
4545 return parent ::_prepareLayout ();
4646 }
47-
4847}
Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change @@ -44,5 +44,4 @@ protected function _prepareLayout()
4444
4545 return parent ::_prepareLayout ();
4646 }
47-
4847}
Original file line number Diff line number Diff line change 77 */
88
99namespace Magefan \Blog \Block \Category ;
10+
1011use Magento \Framework \Api \SortOrder ;
1112use 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1010
1111use Magento \Store \Model \ScopeInterface ;
1212use 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 ());
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff line change 99namespace Magefan \Blog \Block \Sidebar ;
1010
1111use \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
Original file line number Diff line number Diff line change 99namespace Magefan \Blog \Block \Sidebar ;
1010
1111use \Magento \Store \Model \ScopeInterface ;
12+
1213/**
1314 * Blog sidebar custom block
1415 */
You can’t perform that action at this time.
0 commit comments