Skip to content

Commit ba8c824

Browse files
devdev
authored andcommitted
Code styles fixes
1 parent 0bb1e59 commit ba8c824

File tree

120 files changed

+569
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+569
-627
lines changed

Api/CategoryManagementInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
interface CategoryManagementInterface extends ManagementInterface
1212
{
1313

14-
}
14+
}

Api/ManagementInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ public function get($id);
5656
* @return bool.
5757
*/
5858
public function view($id, $storeId);
59-
}
59+
}

Api/PostManagementInterface.php

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

1111
interface PostManagementInterface extends ManagementInterface
1212
{
13-
/**
13+
/**
1414
* Retrieve list of post by page type, term, store, etc
1515
*
1616
* @param string $type
@@ -21,4 +21,4 @@ interface PostManagementInterface extends ManagementInterface
2121
* @return bool
2222
*/
2323
public function getList($type, $term, $storeId, $page, $limit);
24-
}
24+
}

App/Action/Action.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ protected function _forwardNoroute()
4848
{
4949
$this->_forward('index', 'noroute', 'cms');
5050
}
51-
5251
}

Block/Adminhtml/Grid/Column/Render/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Category extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Abstra
2020

2121
/**
2222
* @var array
23-
*/
23+
*/
2424
static protected $categories = [];
2525

2626
/**

Block/Adminhtml/Grid/Column/Statuses.php

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

1111
/**
12-
* Admin blog grid statuses
12+
* Admin blog grid statuses
1313
*/
1414
class Statuses extends \Magento\Backend\Block\Widget\Grid\Column
1515
{

Block/Adminhtml/Import/Wordpress.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ protected function _construct()
3333
if (!$this->_isAllowedAction('Magefan_Blog::import')) {
3434
$this->buttonList->remove('save');
3535
} else {
36-
$this->updateButton(
37-
'save', 'label', __('Start Import')
38-
);
36+
$this->updateButton(
37+
'save',
38+
'label',
39+
__('Start Import')
40+
);
3941
}
4042

4143
$this->buttonList->remove('delete');
@@ -62,5 +64,4 @@ public function getSaveUrl()
6264
{
6365
return $this->getUrl('*/*/run', ['_current' => true]);
6466
}
65-
6667
}

Block/Adminhtml/Post/Helper/Form/Gallery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ public function getElementHtml()
9090
*/
9191
public function getImages()
9292
{
93-
$result = array();
93+
$result = [];
9494
$gallery = $this->registry->registry('current_model')->getGalleryImages();
9595

9696
if (count($gallery)) {
97-
$result['images'] = array();
97+
$result['images'] = [];
9898
$position = 1;
9999
foreach ($gallery as $image) {
100100
$result['images'][] = [

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ public function render(\Magento\Framework\Data\Form\Element\AbstractElement $ele
4848

4949
return $html;
5050
}
51-
5251
}

Block/Amp/Ldjson/PostList.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
* Blog post list ldJson block
1313
*/
1414
if (class_exists('\Plumrocket\Amp\Block\Page\Head\Ldjson\Cms')) {
15-
class PostListIntermediate extends \Plumrocket\Amp\Block\Page\Head\Ldjson\Cms {}
15+
class PostListIntermediate extends \Plumrocket\Amp\Block\Page\Head\Ldjson\Cms
16+
{
17+
}
1618
} else {
17-
class PostListIntermediate extends \Magento\Framework\View\Element\AbstractBlock {}
19+
class PostListIntermediate extends \Magento\Framework\View\Element\AbstractBlock
20+
{
21+
}
1822
}
1923

2024
class PostList extends PostListIntermediate

0 commit comments

Comments
 (0)