@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | $category->setName('Child Category'); |
| 101 | 101 | $category->setIsActive(true); |
| 102 | - $category->setPath((string)$parent->getCategory()->getPath()); |
|
| 102 | + $category->setPath((string) $parent->getCategory()->getPath()); |
|
| 103 | 103 | |
| 104 | 104 | return new self( |
| 105 | 105 | $objectManager->create(CategoryRepositoryInterface::class), |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | // Collect missing totals, like shipping |
| 173 | 173 | $reloadedQuote->collectTotals(); |
| 174 | 174 | $order = $this->quoteManagement->submit($reloadedQuote); |
| 175 | - if (! $order instanceof Order) { |
|
| 175 | + if (!$order instanceof Order) { |
|
| 176 | 176 | $returnType = is_object($order) ? get_class($order) : gettype($order); |
| 177 | 177 | throw new \RuntimeException('QuoteManagement::submit() returned ' . $returnType . ' instead of Order'); |
| 178 | 178 | } |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | $attributeValues[$attribute->getAttributeId()][$option['label']] = $option['value']; |
| 207 | 207 | } |
| 208 | 208 | if (isset($attributeValues[$attribute->getAttributeId()][$this->optionLabel->getLabel()])) { |
| 209 | - return (int)$attributeValues[$attribute->getAttributeId()][$this->optionLabel->getLabel()]; |
|
| 209 | + return (int) $attributeValues[$attribute->getAttributeId()][$this->optionLabel->getLabel()]; |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | throw new \RuntimeException('Error building option'); |