Skip to content

Commit c76e37a

Browse files
committed
Code style changes v2
1 parent 58494e3 commit c76e37a

File tree

14 files changed

+51
-51
lines changed

14 files changed

+51
-51
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ protected function _getElementHtml(AbstractElement $element)
4646

4747
return $html;
4848
}
49-
}
49+
}

Block/Post/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function isPublicationDateEnabled()
9494

9595
/**
9696
* @return bool
97-
*/
97+
*/
9898
public function getViewsCount()
9999
{
100100
return true;

Model/Author.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ public function getDynamicData()
177177

178178
foreach ($keys as $key) {
179179
$method = 'get' . str_replace(
180-
'_',
181-
'',
182-
ucwords($key, '_')
183-
);
180+
'_',
181+
'',
182+
ucwords($key, '_')
183+
);
184184
$data[$key] = $this->$method();
185185
}
186186

Model/Category.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,10 @@ public function getDynamicData()
473473

474474
foreach ($keys as $key) {
475475
$method = 'get' . str_replace(
476-
'_',
477-
'',
478-
ucwords($key, '_')
479-
);
476+
'_',
477+
'',
478+
ucwords($key, '_')
479+
);
480480
$data[$key] = $this->$method();
481481
}
482482

Model/Post.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -900,10 +900,10 @@ public function initDinamicData()
900900

901901
foreach ($keys as $key) {
902902
$method = 'get' . str_replace(
903-
'_',
904-
'',
905-
ucwords($key, '_')
906-
);
903+
'_',
904+
'',
905+
ucwords($key, '_')
906+
);
907907
$this->$method();
908908
}
909909

@@ -934,10 +934,10 @@ public function getDynamicData()
934934

935935
foreach ($keys as $key) {
936936
$method = 'get' . str_replace(
937-
'_',
938-
'',
939-
ucwords($key, '_')
940-
);
937+
'_',
938+
'',
939+
ucwords($key, '_')
940+
);
941941
$data[$key] = $this->$method();
942942
}
943943

Model/ResourceModel/Post/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function addSearchFilter($term)
272272
['t' => $this->getTable('magefan_blog_tag')],
273273
't.tag_id = pt.tag_id',
274274
['tag_title' => 'title']
275-
)->where('t.title LIKE ?', '%' . $term . '%' );
275+
)->where('t.title LIKE ?', '%' . $term . '%');
276276

277277
foreach ($connection->fetchAll($select) as $item) {
278278
$tagPostIds[] = (int)$item['post_id'];

Model/Tag.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ public function getDynamicData()
208208

209209
foreach ($keys as $key) {
210210
$method = 'get' . str_replace(
211-
'_',
212-
'',
213-
ucwords($key, '_')
214-
);
211+
'_',
212+
'',
213+
ucwords($key, '_')
214+
);
215215
$data[$key] = $this->$method();
216216
}
217217

view/adminhtml/templates/checkenableinfo.phtml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<div class="message message-error">
1919
<div data-ui-id="messages-message-error">
2020
<?= /*@noEscape*/ __(
21-
'Magefan Blog is disabled, to enable the extension please navigate to
21+
'Magefan Blog is disabled, to enable the extension please navigate to
2222
<a href="%1" target="_blank">Stores > Configuration > Magefan Extensions > Blog</a>.',
23-
$block->getUrl(
24-
'adminhtml/system_config/edit',
25-
['section' => 'mfblog']
26-
)
27-
);
23+
$block->getUrl(
24+
'adminhtml/system_config/edit',
25+
['section' => 'mfblog']
26+
)
27+
);
2828
?>
2929
</div>
3030
</div>
@@ -34,14 +34,14 @@
3434
<div class="message message-error">
3535
<div data-ui-id="messages-message-error">
3636
<?= /*@noEscape*/ __(
37-
'Magefan Blog <strong>Product Key</strong> is missing.
37+
'Magefan Blog <strong>Product Key</strong> is missing.
3838
Blog Extension will be automatically disabled soon. Please specify the product key in
3939
<a href="%1" target="_blank">Stores > Configuration > Magefan Extensions > Blog</a>.',
40-
$block->getUrl(
41-
'adminhtml/system_config/edit',
42-
['section' => 'mfblog']
43-
)
44-
);
40+
$block->getUrl(
41+
'adminhtml/system_config/edit',
42+
['section' => 'mfblog']
43+
)
44+
);
4545
?>
4646
</div>
4747
</div>

view/frontend/templates/post/list/item.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
$_postName = $block->escapeHtml($_post->getTitle(), null, true);
2020
$featuredImgAlt =
2121
$_post->getData('featured_list_img_alt') ?: $_post->getData('featured_img_alt');
22-
if (!$featuredImgAlt) {
23-
$featuredImgAlt = $_postName;
24-
}
22+
if (!$featuredImgAlt) {
23+
$featuredImgAlt = $_postName;
24+
}
2525
?>
2626
<li class="post-holder post-holder-<?= (int)$_post->getId() ?>">
2727
<div class="post-header">

view/frontend/templates/post/view.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
$_postUrl = $_post->getPostUrl();
1919
$_postName = $block->escapeHtml($_post->getTitle(), null);
2020
$featuredImgAlt = $_post->getData('featured_img_alt');
21-
if (!$featuredImgAlt) {
22-
$featuredImgAlt = $_postName;
23-
}
21+
if (!$featuredImgAlt) {
22+
$featuredImgAlt = $_postName;
23+
}
2424
?>
2525
<div class="post-view">
2626
<div class="post-holder post-holder-<?= (int)$_post->getId() ?>">

view/frontend/templates/sidebar/tag_claud_animated.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<?php $tags = $block->getTags(); ?>
1717

1818
<?php if (count($tags)) { ?>
19-
<?php $maxCount = $block->getMaxCount() ?>
19+
<?php $maxCount = $block->getMaxCount() ?>
2020

2121
<div class="widget block block-tagclaud" data-bind="scope: 'tagclaud'">
2222
<div class="block-title">

view/frontend/templates/themes/smartwave_porto/recent_home_custom.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
$_postUrl = $_post->getPostUrl();
3737
$_postName = $block->escapeHtml($_post->getTitle(), null, true);
3838
$featuredImgAlt = $_post->getData('featured_list_img_alt') ?: $_post->getData('featured_img_alt');
39-
if (!$featuredImgAlt) {
40-
$featuredImgAlt = $_postName;
41-
}
39+
if (!$featuredImgAlt) {
40+
$featuredImgAlt = $_postName;
41+
}
4242
?>
4343
<div class="item">
4444
<div class="recent-inner">

view/frontend/templates/widget/recent.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
$_postUrl = $_post->getPostUrl();
2727
$_postName = $block->escapeHtml($_post->getTitle(), null, true);
2828
$featuredImgAlt = $_post->getData('featured_list_img_alt') ?: $_post->getData('featured_img_alt');
29-
if (!$featuredImgAlt) {
30-
$featuredImgAlt = $_postName;
31-
}
29+
if (!$featuredImgAlt) {
30+
$featuredImgAlt = $_postName;
31+
}
3232
?>
3333
<li class="post-holder post-holder-<?= (int)$_post->getId() ?>">
3434
<div class="post-header">

view/frontend/templates/widget/recent_masonry.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
$_postUrl = $_post->getPostUrl();
2727
$_postName = $block->escapeHtml($_post->getTitle(), null, true);
2828
$featuredImgAlt = $_post->getData('featured_list_img_alt') ?: $_post->getData('featured_img_alt');
29-
if (!$featuredImgAlt) {
30-
$featuredImgAlt = $_postName;
31-
}
29+
if (!$featuredImgAlt) {
30+
$featuredImgAlt = $_postName;
31+
}
3232
?>
3333
<li class="post-holder post-holder-<?= (int)$_post->getId() ?>">
3434
<div class="post-header">

0 commit comments

Comments
 (0)