@@ -20,7 +20,7 @@ |
||
20 | 20 | throw new NullCategoryParentId('Category fixture require parent_id. Check fixture yaml file.'); |
21 | 21 | } |
22 | 22 | |
23 | - $parentCategory = $this->_getMageModel()->load((int)$fixtureData['parent_id']); |
|
23 | + $parentCategory = $this->_getMageModel()->load((int) $fixtureData['parent_id']); |
|
24 | 24 | $parentCategoryPath = $parentCategory->getPath(); |
25 | 25 | unset($fixtureData['parent_id']); |
26 | 26 | $fixture = $this->_getMageModel()->setData($fixtureData); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | [ |
92 | 92 | 'attribute_id' => $usedProductAttributeId, |
93 | 93 | 'label' => $product->getAttributeText($code), |
94 | - 'value_index' => (int)$product->getData($code), |
|
94 | + 'value_index' => (int) $product->getData($code), |
|
95 | 95 | 'is_percent' => 0, |
96 | 96 | 'pricing_value' => $product->getPrice(), |
97 | 97 | 'simple_product_id' => $product->getId() |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * AttributeSet.php |
|
4 | - */ |
|
3 | + * AttributeSet.php |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace Magefix\Fixture\Builder\Helper; |
7 | 7 | use Mage; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * EavAttribute.php |
|
4 | - */ |
|
3 | + * EavAttribute.php |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace Magefix\Fixture\Builder\Helper; |
7 | 7 |
@@ -228,7 +228,7 @@ |
||
228 | 228 | */ |
229 | 229 | protected static function _deleteAndUnregisterFixture(Mage_Core_Model_Abstract $model, $fixtureType, $entry, $key) |
230 | 230 | { |
231 | - $fixture = $model->load((int)$entry); |
|
231 | + $fixture = $model->load((int) $entry); |
|
232 | 232 | $fixture->delete(); |
233 | 233 | FixtureBuilder::unregister($key); |
234 | 234 |
@@ -24,12 +24,12 @@ |
||
24 | 24 | || $match == Builder::BUNDLE_PRODUCT_FIXTURE_TYPE |
25 | 25 | ) { |
26 | 26 | $model = Mage::getModel('catalog/product'); |
27 | - } elseif($match == Builder::CATEGORY_FIXTURE_TYPE) { |
|
27 | + } elseif ($match == Builder::CATEGORY_FIXTURE_TYPE) { |
|
28 | 28 | $model = Mage::getModel('catalog/category'); |
29 | - } elseif($match == Builder::CUSTOMER_FIXTURE_TYPE) { |
|
30 | - $model = Mage::getModel('customer/customer'); |
|
31 | - } elseif($match == Builder::SALES_ORDER_FIXTURE_TYPE) { |
|
32 | - $model = Mage::getModel('sales/order'); |
|
29 | + } elseif ($match == Builder::CUSTOMER_FIXTURE_TYPE) { |
|
30 | + $model = Mage::getModel('customer/customer'); |
|
31 | + } elseif ($match == Builder::SALES_ORDER_FIXTURE_TYPE) { |
|
32 | + $model = Mage::getModel('sales/order'); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | return $model; |