Failed Conditions
Pull Request — develop (#4)
by Carlo
03:06
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/Fixtures/RegistryIterator.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @param $match
41
+     * @param string $match
42 42
      *
43 43
      * @return \Mage_Catalog_Model_Category|\Mage_Catalog_Model_Product|\Mage_Customer_Model_Customer|\Mage_Sales_Model_Order|null
44 44
      *
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param $hook
67 67
      * @param $key
68 68
      *
69
-     * @return array
69
+     * @return string[]
70 70
      *
71 71
      */
72 72
     public function isEntryMatch($hook, $key)
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     /**
85 85
      * @param Mage_Core_Model_Abstract $model
86
-     * @param                          $fixtureType
86
+     * @param                          string $fixtureType
87 87
      * @param                          $entry
88 88
      * @param                          $key
89 89
      */
Please login to merge, or discard this 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.