Skip to content

Commit bd8a930

Browse files
committed
Code styles improvements
1 parent 9095e18 commit bd8a930

File tree

14 files changed

+12
-41
lines changed

14 files changed

+12
-41
lines changed

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

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
namespace Magefan\Blog\Block\Adminhtml\System\Config\Form;
88

9-
/**
10-
* Class PermalinkSettingsMessage
11-
*/
129
class PermalinkSettingsMessage extends \Magefan\Community\Block\Adminhtml\System\Config\Form\Info
1310
{
1411
/**

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

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
*/
66
namespace Magefan\Blog\Block\Adminhtml\System\Config\Form;
77

8-
/**
9-
* Class SitemapInfo
10-
*/
118
class SitemapInfo extends \Magefan\Community\Block\Adminhtml\System\Config\Form\Info
129
{
1310
/**

Block/Post/View/Comments/HeadFbApi.php

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
*/
88
namespace Magefan\Blog\Block\Post\View\Comments;
99

10-
/**
11-
* Class HeadFbApi class
12-
*/
1310
class HeadFbApi extends \Magento\Framework\View\Element\AbstractBlock
1411
{
1512

Block/Widget/Link.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
use Magento\Framework\View\Element\AbstractBlock;
1212
use Magefan\Blog\Model\Url;
1313

14-
/**
15-
* Class Link
16-
*/
1714
class Link extends AbstractBlock implements \Magento\Widget\Block\BlockInterface
1815
{
1916
/**

Controller/Index/Index.php

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magefan\Blog\Controller\Index;
99

1010
use Magento\Framework\Controller\ResultFactory;
11+
1112
/**
1213
* Blog home page view
1314
*/

Model/Config/Source/ArchiveGroupBy.php

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111
namespace Magefan\Blog\Model\Config\Source;
1212

13-
/**
14-
* ArchiveGroupBy
15-
*
16-
*/
1713
class ArchiveGroupBy implements \Magento\Framework\Option\ArrayInterface
1814
{
1915
/**

Model/Config/Source/PageLayout.php

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
use Magento\Framework\Data\OptionSourceInterface;
1010

11-
/**
12-
* Class PageLayout
13-
*/
1411
class PageLayout implements OptionSourceInterface
1512
{
1613
/**

Model/Import/AbstractImport.php

-2
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,4 @@ protected function getFeaturedImgBySrc($src)
323323
return false;
324324
}
325325
}
326-
327-
328326
}

Model/Post.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -976,10 +976,10 @@ public function initDinamicData()
976976

977977
foreach ($keys as $key) {
978978
$method = 'get' . str_replace(
979-
'_',
980-
'',
981-
ucwords($key, '_')
982-
);
979+
'_',
980+
'',
981+
ucwords($key, '_')
982+
);
983983
$this->$method();
984984
}
985985

@@ -1013,10 +1013,10 @@ public function getDynamicData($fields = null)
10131013
foreach ($keys as $key) {
10141014
if (null === $fields || array_key_exists($key, $fields)) {
10151015
$method = 'get' . str_replace(
1016-
'_',
1017-
'',
1018-
ucwords($key, '_')
1019-
);
1016+
'_',
1017+
'',
1018+
ucwords($key, '_')
1019+
);
10201020
$data[$key] = $this->$method();
10211021
}
10221022
}

Model/ResourceModel/PageIdentifierGenerator.php

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
namespace Magefan\Blog\Model\ResourceModel;
1010

11-
/**
12-
* Page identifier generator
13-
*/
1411
class PageIdentifierGenerator
1512
{
1613
/**

Model/ResourceModel/Post/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -733,4 +733,4 @@ public function setOrder($field, $direction = self::SORT_ORDER_DESC)
733733
}
734734
return $this;
735735
}
736-
}
736+
}

Model/ShortContentExtractor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private function setPageBreakOnLen(string $content, $len): string
150150

151151
$textLength = 0;
152152

153-
$processNode = function($node) use (&$textLength, $len, $dom, $pageBreaker, &$pageBreakInserted, &$processNode) {
153+
$processNode = function ($node) use (&$textLength, $len, $dom, $pageBreaker, &$pageBreakInserted, &$processNode) {
154154

155155
if ($pageBreakInserted) {
156156
return;
@@ -193,7 +193,7 @@ private function setPageBreakOnLen(string $content, $len): string
193193
$content = $dom->saveHTML($body);
194194

195195
$content = preg_replace('#^<body>|</body>$#', '', $content);
196-
$content = str_replace( '&lt;!-- pagebreak --&gt;', $pageBreaker, $content);
196+
$content = str_replace('&lt;!-- pagebreak --&gt;', $pageBreaker, $content);
197197
return $content;
198198
}
199199

Observer/PredispathFrontendBlogActionControllerObserver.php

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
use Magefan\Blog\Model\NoSlashUrlRedirect;
1515
use Magefan\Blog\Model\SlashUrlRedirect;
1616

17-
/**
18-
* Class Predispath Frontend Blog Action Controller Observer
19-
*/
2017
class PredispathFrontendBlogActionControllerObserver implements ObserverInterface
2118
{
2219
/**

Plugin/Magento/AdminGws/Model/ModelsPlugin.php

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
namespace Magefan\Blog\Plugin\Magento\AdminGws\Model;
1010

11-
/**
12-
* Class ModelsPlugin class
13-
*/
1411
class ModelsPlugin
1512
{
1613
/**

0 commit comments

Comments
 (0)