@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $passwordElement = $this->webdriver->byXpath($this->theme->getRegisterPasswordXpath()); |
| 46 | 46 | $confirmElement = $this->webdriver->byXpath($this->theme->getRegisterConfirmPasswordXpath()); |
| 47 | 47 | $submitElement = $this->webdriver->byXpath($this->theme->getRegisterSubmitXpath()); |
| 48 | - $registerElement = $this->webdriver->byXpath($this->theme->getRegisterNewsletterXpath()); |
|
| 48 | + $registerElement = $this->webdriver->byXpath($this->theme->getRegisterNewsletterXpath()); |
|
| 49 | 49 | |
| 50 | 50 | $firstnameElement->sendKeys($this->customerIdentity->getFirstName()); |
| 51 | 51 | $lastnameElement->sendKeys($this->customerIdentity->getLastName()); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | return; |
| 60 | 60 | } |
| 61 | 61 | // If we're logged in we don't need to do the login process. Continue along. |
| 62 | - } catch (NoSuchElementException $e ) { |
|
| 62 | + } catch (NoSuchElementException $e) { |
|
| 63 | 63 | return; |
| 64 | 64 | } |
| 65 | 65 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | CustomerLogin $loginNavigator |
| 17 | 17 | |
| 18 | 18 | ) { |
| 19 | - $this->login = $login; |
|
| 19 | + $this->login = $login; |
|
| 20 | 20 | $this->loginNavigator = $loginNavigator; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | const IDENTITY = 'Customer'; |
| 14 | 14 | |
| 15 | - public $emailAddress = '[email protected]'; |
|
| 15 | + public $emailAddress = '[email protected]'; |
|
| 16 | 16 | |
| 17 | 17 | public $billingFirstName = 'Kevin'; |
| 18 | 18 | public $billingLastName = 'Schroeder'; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | AbstractThemeConfiguration $themeConfiguration |
| 18 | 18 | ) |
| 19 | 19 | { |
| 20 | - $this->themeConfiguration = $themeConfiguration; |
|
| 20 | + $this->themeConfiguration = $themeConfiguration; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public function assert() |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | AbstractThemeConfiguration $themeConfiguration |
| 16 | 16 | ) |
| 17 | 17 | { |
| 18 | - $this->themeConfiguration = $themeConfiguration; |
|
| 18 | + $this->themeConfiguration = $themeConfiguration; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function assert() |
@@ -48,9 +48,9 @@ |
||
| 48 | 48 | $test->setCategoryPath($input->getArgument('category')); |
| 49 | 49 | $test->run(); |
| 50 | 50 | $products = $test->getProductNames(); |
| 51 | - $output->writeln('Found ' . count($products) . ' products in ' . $input->getArgument('category')); |
|
| 51 | + $output->writeln('Found '.count($products).' products in '.$input->getArgument('category')); |
|
| 52 | 52 | foreach ($products as $product) { |
| 53 | - $output->writeln("\t" . trim($product)); |
|
| 53 | + $output->writeln("\t".trim($product)); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | $origClass = $class; |
| 13 | 13 | |
| 14 | 14 | if (!class_exists($class)) { |
| 15 | - $class = $origClass . '\ThemeConfiguration'; |
|
| 15 | + $class = $origClass.'\ThemeConfiguration'; |
|
| 16 | 16 | if (!class_exists($class)) { |
| 17 | - $class = 'Magium\Magento\Themes\\' . $origClass . '\ThemeConfiguration'; |
|
| 17 | + $class = 'Magium\Magento\Themes\\'.$origClass.'\ThemeConfiguration'; |
|
| 18 | 18 | if (!class_exists($class)) { |
| 19 | - throw new NotFoundException('Could not resolve the theme class for: ' . $origClass); |
|
| 19 | + throw new NotFoundException('Could not resolve the theme class for: '.$origClass); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | } |
@@ -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 = 'Magium\Magento\Actions\Checkout\PaymentMethods\\' . $method; |
|
| 30 | + $method = 'Magium\Magento\Actions\Checkout\PaymentMethods\\'.$method; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | if (is_subclass_of($method, 'Magium\Magento\Actions\Checkout\PaymentMethods\PaymentMethodInterface')) { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | // If we are passed just the class name we will prepend it with Magium\Magento\Actions\Checkout\PaymentMethods |
| 71 | 71 | if (strpos($method, '\\') === false) { |
| 72 | - $method = 'Magium\Magento\Actions\Checkout\ShippingMethods\\' . $method; |
|
| 72 | + $method = 'Magium\Magento\Actions\Checkout\ShippingMethods\\'.$method; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | if (is_subclass_of($method, 'Magium\Magento\Actions\Checkout\ShippingMethods\ShippingMethodInterface')) { |
@@ -86,12 +86,12 @@ discard block |
||
| 86 | 86 | if ($reflection->isSubclassOf('Magium\Magento\Themes\NavigableThemeInterface')) { |
| 87 | 87 | // Not entirely sure of hardcoding the various interface types. May make this configurable |
| 88 | 88 | parent::switchThemeConfiguration($fullyQualifiedClassName); |
| 89 | - $this->setTypePreference('Magium\Magento\Themes\AbstractThemeConfiguration',$fullyQualifiedClassName); |
|
| 90 | - $this->setTypePreference('Magium\Magento\Themes\NavigableThemeInterface',$fullyQualifiedClassName); |
|
| 91 | - $this->setTypePreference('Magium\Themes\BaseThemeInterface',$fullyQualifiedClassName); |
|
| 89 | + $this->setTypePreference('Magium\Magento\Themes\AbstractThemeConfiguration', $fullyQualifiedClassName); |
|
| 90 | + $this->setTypePreference('Magium\Magento\Themes\NavigableThemeInterface', $fullyQualifiedClassName); |
|
| 91 | + $this->setTypePreference('Magium\Themes\BaseThemeInterface', $fullyQualifiedClassName); |
|
| 92 | 92 | |
| 93 | - $this->setTypePreference('Magium\Magento\Themes\Customer\AbstractThemeConfiguration',$this->getTheme()->getCustomerThemeClass()); |
|
| 94 | - $this->setTypePreference('Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration',$this->getTheme()->getCheckoutThemeClass()); |
|
| 93 | + $this->setTypePreference('Magium\Magento\Themes\Customer\AbstractThemeConfiguration', $this->getTheme()->getCustomerThemeClass()); |
|
| 94 | + $this->setTypePreference('Magium\Magento\Themes\OnePageCheckout\AbstractThemeConfiguration', $this->getTheme()->getCheckoutThemeClass()); |
|
| 95 | 95 | |
| 96 | 96 | |
| 97 | 97 | } else { |