@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | // If we are passed just the class name we will prepend it with Magium\Magento\Actions\Checkout\PaymentMethods |
29 | 29 | if (strpos($method, '\\') === false) { |
30 | - $method = 'Checkout\PaymentMethods\\' . $method; |
|
30 | + $method = 'Checkout\PaymentMethods\\'.$method; |
|
31 | 31 | $method = self::resolveClass($method, 'Actions'); |
32 | 32 | } |
33 | 33 | $reflection = new \ReflectionClass($method); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | // If we are passed just the class name we will prepend it with Magium\Magento\Actions\Checkout\PaymentMethods |
72 | 72 | if (strpos($method, '\\') === false) { |
73 | - $method = 'Magium\Magento\Actions\Checkout\ShippingMethods\\' . $method; |
|
73 | + $method = 'Magium\Magento\Actions\Checkout\ShippingMethods\\'.$method; |
|
74 | 74 | } |
75 | 75 | $reflection = new \ReflectionClass($method); |
76 | 76 | if ($reflection->implementsInterface('Magium\Magento\Actions\Checkout\ShippingMethods\ShippingMethodInterface')) { |
@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | if ($reflection->isSubclassOf('Magium\Magento\Themes\NavigableThemeInterface')) { |
88 | 88 | // Not entirely sure of hardcoding the various interface types. May make this configurable |
89 | 89 | parent::switchThemeConfiguration($fullyQualifiedClassName); |
90 | - $this->setTypePreference('Magium\Magento\Themes\AbstractThemeConfiguration',$fullyQualifiedClassName); |
|
91 | - $this->setTypePreference('Magium\Magento\Themes\NavigableThemeInterface',$fullyQualifiedClassName); |
|
92 | - $this->setTypePreference('Magium\Themes\BaseThemeInterface',$fullyQualifiedClassName); |
|
90 | + $this->setTypePreference('Magium\Magento\Themes\AbstractThemeConfiguration', $fullyQualifiedClassName); |
|
91 | + $this->setTypePreference('Magium\Magento\Themes\NavigableThemeInterface', $fullyQualifiedClassName); |
|
92 | + $this->setTypePreference('Magium\Themes\BaseThemeInterface', $fullyQualifiedClassName); |
|
93 | 93 | |
94 | - $this->setTypePreference('Magium\Magento\Themes\Customer\AbstractThemeConfiguration',$this->getTheme()->getCustomerThemeClass()); |
|
95 | - $this->setTypePreference('Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration',$this->getTheme()->getCheckoutThemeClass()); |
|
94 | + $this->setTypePreference('Magium\Magento\Themes\Customer\AbstractThemeConfiguration', $this->getTheme()->getCustomerThemeClass()); |
|
95 | + $this->setTypePreference('Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration', $this->getTheme()->getCheckoutThemeClass()); |
|
96 | 96 | } else { |
97 | 97 | throw new InvalidConfigurationException('The theme configuration extend Magium\Magento\Themes\NavigableThemeInterface'); |
98 | 98 | } |