@@ -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; |
@@ -38,7 +38,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | */ |
@@ -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 | |