Completed
Push — develop ( 1f8c39...fd8d97 )
by Carlo
03:09
created
magefix/src/Magefix/Fixture/Builder/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
magefix/src/Magefix/Fixture/Builder/ConfigurableProduct.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
magefix/src/Magefix/Fixture/Builder/Helper/AttributeSet.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
magefix/src/Magefix/Fixture/Builder/Helper/EavAttribute.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * EavAttribute.php
4
- */
3
+     * EavAttribute.php
4
+     */
5 5
 
6 6
 namespace Magefix\Fixture\Builder\Helper;
7 7
 
Please login to merge, or discard this patch.
magefix/src/Magefix/Fixtures/Registry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
magefix/src/Magefix/Fixtures/RegistryIterator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.