Skip to content

Commit

Permalink
Code styles improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed Dec 23, 2024
1 parent 9095e18 commit bd8a930
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

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

/**
* Class PermalinkSettingsMessage
*/
class PermalinkSettingsMessage extends \Magefan\Community\Block\Adminhtml\System\Config\Form\Info
{
/**
Expand Down
3 changes: 0 additions & 3 deletions Block/Adminhtml/System/Config/Form/SitemapInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
*/
namespace Magefan\Blog\Block\Adminhtml\System\Config\Form;

/**
* Class SitemapInfo
*/
class SitemapInfo extends \Magefan\Community\Block\Adminhtml\System\Config\Form\Info
{
/**
Expand Down
3 changes: 0 additions & 3 deletions Block/Post/View/Comments/HeadFbApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
*/
namespace Magefan\Blog\Block\Post\View\Comments;

/**
* Class HeadFbApi class
*/
class HeadFbApi extends \Magento\Framework\View\Element\AbstractBlock
{

Expand Down
3 changes: 0 additions & 3 deletions Block/Widget/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
use Magento\Framework\View\Element\AbstractBlock;
use Magefan\Blog\Model\Url;

/**
* Class Link
*/
class Link extends AbstractBlock implements \Magento\Widget\Block\BlockInterface
{
/**
Expand Down
1 change: 1 addition & 0 deletions Controller/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace Magefan\Blog\Controller\Index;

use Magento\Framework\Controller\ResultFactory;

/**
* Blog home page view
*/
Expand Down
4 changes: 0 additions & 4 deletions Model/Config/Source/ArchiveGroupBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

namespace Magefan\Blog\Model\Config\Source;

/**
* ArchiveGroupBy
*
*/
class ArchiveGroupBy implements \Magento\Framework\Option\ArrayInterface
{
/**
Expand Down
3 changes: 0 additions & 3 deletions Model/Config/Source/PageLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

use Magento\Framework\Data\OptionSourceInterface;

/**
* Class PageLayout
*/
class PageLayout implements OptionSourceInterface
{
/**
Expand Down
2 changes: 0 additions & 2 deletions Model/Import/AbstractImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,4 @@ protected function getFeaturedImgBySrc($src)
return false;
}
}


}
16 changes: 8 additions & 8 deletions Model/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,10 @@ public function initDinamicData()

foreach ($keys as $key) {
$method = 'get' . str_replace(
'_',
'',
ucwords($key, '_')
);
'_',
'',
ucwords($key, '_')
);
$this->$method();
}

Expand Down Expand Up @@ -1013,10 +1013,10 @@ public function getDynamicData($fields = null)
foreach ($keys as $key) {
if (null === $fields || array_key_exists($key, $fields)) {
$method = 'get' . str_replace(
'_',
'',
ucwords($key, '_')
);
'_',
'',
ucwords($key, '_')
);
$data[$key] = $this->$method();
}
}
Expand Down
3 changes: 0 additions & 3 deletions Model/ResourceModel/PageIdentifierGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

namespace Magefan\Blog\Model\ResourceModel;

/**
* Page identifier generator
*/
class PageIdentifierGenerator
{
/**
Expand Down
2 changes: 1 addition & 1 deletion Model/ResourceModel/Post/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -733,4 +733,4 @@ public function setOrder($field, $direction = self::SORT_ORDER_DESC)
}
return $this;
}
}
}
4 changes: 2 additions & 2 deletions Model/ShortContentExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private function setPageBreakOnLen(string $content, $len): string

$textLength = 0;

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

if ($pageBreakInserted) {
return;
Expand Down Expand Up @@ -193,7 +193,7 @@ private function setPageBreakOnLen(string $content, $len): string
$content = $dom->saveHTML($body);

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

Expand Down
3 changes: 0 additions & 3 deletions Observer/PredispathFrontendBlogActionControllerObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
use Magefan\Blog\Model\NoSlashUrlRedirect;
use Magefan\Blog\Model\SlashUrlRedirect;

/**
* Class Predispath Frontend Blog Action Controller Observer
*/
class PredispathFrontendBlogActionControllerObserver implements ObserverInterface
{
/**
Expand Down
3 changes: 0 additions & 3 deletions Plugin/Magento/AdminGws/Model/ModelsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

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

/**
* Class ModelsPlugin class
*/
class ModelsPlugin
{
/**
Expand Down

0 comments on commit bd8a930

Please sign in to comment.