Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Commit 0523b0c

Browse files
authored
Merge pull request #10 from ovanschie/analysis-8LRJEn
Apply fixes from StyleCI
2 parents a3cedd3 + 86b7a40 commit 0523b0c

308 files changed

Lines changed: 5177 additions & 4942 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,49 @@
11
<?php
22

33
/**
4-
* Class Ovs_MageFaker_Block_Adminhtml_Faker_Edit
4+
* Class Ovs_MageFaker_Block_Adminhtml_Faker_Edit.
55
*/
6-
class Ovs_Magefaker_Block_Adminhtml_Faker_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
7-
6+
class Ovs_Magefaker_Block_Adminhtml_Faker_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
7+
{
88
/**
9-
* Set basic config
9+
* Set basic config.
1010
*/
11-
public function __construct() {
11+
public function __construct()
12+
{
1213
parent::__construct();
1314

14-
$this->_objectId = 'id';
15-
$this->_blockGroup = 'ovs_magefaker';
16-
$this->_controller = 'adminhtml_faker';
15+
$this->_objectId = 'id';
16+
$this->_blockGroup = 'ovs_magefaker';
17+
$this->_controller = 'adminhtml_faker';
1718

1819
$this->_removeButton('back');
1920
$this->_removeButton('reset');
2021
$this->_removeButton('save');
2122

22-
$this->_addButton('start', array(
23-
'label' => $this->__('Start'),
23+
$this->_addButton('start', [
24+
'label' => $this->__('Start'),
2425
'onclick' => 'editForm.submit();',
25-
'class' => 'save',
26-
), -100);
26+
'class' => 'save',
27+
], -100);
2728
}
2829

2930
/**
30-
* Set header
31+
* Set header.
3132
*
3233
* @return string
3334
*/
34-
public function getHeaderText() {
35+
public function getHeaderText()
36+
{
3537
return $this->__('MageFaker - Fake data generator');
3638
}
3739

3840
/**
39-
* Remove icon from header class
41+
* Remove icon from header class.
4042
*
4143
* @return string
4244
*/
43-
public function getHeaderCssClass() {
44-
return 'head-' . strtr($this->_controller, '_', '-');
45+
public function getHeaderCssClass()
46+
{
47+
return 'head-'.strtr($this->_controller, '_', '-');
4548
}
46-
}
49+
}
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

33
/**
4-
* Class Ovs_MageFaker_Block_Adminhtml_Faker_Edit_Form
4+
* Class Ovs_MageFaker_Block_Adminhtml_Faker_Edit_Form.
55
*/
6-
class Ovs_Magefaker_Block_Adminhtml_Faker_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
7-
6+
class Ovs_Magefaker_Block_Adminhtml_Faker_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
7+
{
88
/**
99
* @return Mage_Core_Block_Abstract
1010
*/
@@ -14,25 +14,25 @@ protected function _prepareLayout()
1414
}
1515

1616
/**
17-
* create the form
17+
* create the form.
1818
*
19-
* @return Mage_Adminhtml_Block_Widget_Form
2019
* @throws Exception
20+
*
21+
* @return Mage_Adminhtml_Block_Widget_Form
2122
*/
2223
protected function _prepareForm()
2324
{
2425
// edit form
25-
$edit_form = new Varien_Data_Form(array(
26-
'id' => 'edit_form',
27-
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
28-
'method' => 'post',
29-
'enctype' => 'multipart/form-data'
30-
));
26+
$edit_form = new Varien_Data_Form([
27+
'id' => 'edit_form',
28+
'action' => $this->getUrl('*/*/save', ['id' => $this->getRequest()->getParam('id')]),
29+
'method' => 'post',
30+
'enctype' => 'multipart/form-data',
31+
]);
3132

3233
$edit_form->setUseContainer(true);
3334
$this->setForm($edit_form);
3435

3536
return parent::_prepareForm();
3637
}
37-
38-
}
38+
}
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22

33
/**
4-
* Class Ovs_MageFaker_Block_Adminhtml_Faker_Edit_Tabs
4+
* Class Ovs_MageFaker_Block_Adminhtml_Faker_Edit_Tabs.
55
*/
6-
class Ovs_Magefaker_Block_Adminhtml_Faker_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs{
6+
class Ovs_Magefaker_Block_Adminhtml_Faker_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
7+
{
78
/**
8-
* config
9+
* config.
910
*/
10-
public function __construct(){
11+
public function __construct()
12+
{
1113
parent::__construct();
1214

1315
$this->setId('faker_tabs');
@@ -16,16 +18,17 @@ public function __construct(){
1618
}
1719

1820
/**
19-
* Set the tabs
21+
* Set the tabs.
2022
*
21-
* @return Mage_Core_Block_Abstract
2223
* @throws Exception
24+
*
25+
* @return Mage_Core_Block_Abstract
2326
*/
24-
protected function _beforeToHtml() {
25-
27+
protected function _beforeToHtml()
28+
{
2629
$this->addTab('adminhtml_tab_insert', 'ovs_magefaker/adminhtml_faker_edit_tabs_insert');
2730
$this->addTab('adminhtml_tab_remove', 'ovs_magefaker/adminhtml_faker_edit_tabs_remove');
2831

2932
return parent::_beforeToHtml();
3033
}
31-
}
34+
}

0 commit comments

Comments
 (0)