| @@ -2,4 +2,4 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Magento\Actions\Cart; | 
| 4 | 4 | |
| 5 | -class AddToCartFailedException extends NoSuchElementException  {} | |
| 6 | 5 | \ No newline at end of file | 
| 6 | +class AddToCartFailedException extends NoSuchElementException {} | |
| 7 | 7 | \ No newline at end of file | 
| @@ -49,7 +49,7 @@ | ||
| 49 | 49 | $this->testCase->assertElementDisplayed($this->theme->getContactUsSubmitXpath(), WebDriver::BY_XPATH); | 
| 50 | 50 | |
| 51 | 51 | $this->webDriver->byXpath($this->theme->getContactUsNameXpath())->clear()->sendKeys( | 
| 52 | - $this->customer->getFirstName() . ' ' . $this->customer->getLastName() | |
| 52 | + $this->customer->getFirstName().' '.$this->customer->getLastName() | |
| 53 | 53 | ); | 
| 54 | 54 | |
| 55 | 55 | $this->webDriver->byXpath($this->theme->getContactUsEmailXpath())->clear()->sendKeys( | 
| @@ -35,7 +35,7 @@ | ||
| 35 | 35 | protected function configureType($type) | 
| 36 | 36 |      { | 
| 37 | 37 |          if (!isset($this->ccNums[$type])) { | 
| 38 | -            throw new InvalidPaymentInformationException('Unknown payment type: ' . $type); | |
| 38 | +            throw new InvalidPaymentInformationException('Unknown payment type: '.$type); | |
| 39 | 39 | } | 
| 40 | 40 | $this->setCreditCardNumber($this->ccNums[$type]); | 
| 41 | 41 | $this->setType($type); | 
| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | $this->expiryMonth = '1'; | 
| 42 | 42 | } | 
| 43 | 43 |          if (!$this->expiryYear) { | 
| 44 | -            $this->expiryYear = date('Y', time() + (60 * 60 * 24 * 365 * 5));  // January plus 5 years | |
| 44 | +            $this->expiryYear = date('Y', time()+(60 * 60 * 24 * 365 * 5)); // January plus 5 years | |
| 45 | 45 | } | 
| 46 | 46 |          if (!$this->cvv) { | 
| 47 | 47 | $this->cvv = '123'; | 
| @@ -46,7 +46,7 @@ | ||
| 46 | 46 | |
| 47 | 47 |          $this->webDriver->byId('ccsave_cc_owner')->clear(); | 
| 48 | 48 |          $this->webDriver->byId('ccsave_cc_owner')->sendKeys( | 
| 49 | - $this->customer->getBillingFirstName() . ' ' . $this->customer->getBillingLastName() | |
| 49 | + $this->customer->getBillingFirstName().' '.$this->customer->getBillingLastName() | |
| 50 | 50 | ); | 
| 51 | 51 | |
| 52 | 52 |          $select = new WebDriverSelect($this->webDriver->byId('ccsave_cc_type')); | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | |
| 32 | 32 |          foreach ($this->settings as $setting => $value) { | 
| 33 | 33 |              if ($value !== null) { // Skip items that are null.  May help with test performance | 
| 34 | - $this->set($this->section . '::' . $setting, $value); | |
| 34 | + $this->set($this->section.'::'.$setting, $value); | |
| 35 | 35 | } | 
| 36 | 36 | } | 
| 37 | 37 | |
| @@ -77,7 +77,7 @@ | ||
| 77 | 77 | $xpath = ''; | 
| 78 | 78 |              if (count($xpath) === 2) { | 
| 79 | 79 |                  $nav = explode('/', $parts[0]); | 
| 80 | - $xpath = $this->themeConfiguration->getSystemConfigSectionDisplayCheckXpath($nav[1]) . '/descendant::'; | |
| 80 | + $xpath = $this->themeConfiguration->getSystemConfigSectionDisplayCheckXpath($nav[1]).'/descendant::'; | |
| 81 | 81 | } | 
| 82 | 82 | $xpath .= $this->themeConfiguration->getSystemConfigSettingLabelXpath($matches[1]); | 
| 83 | 83 | $labelElement = $this->webDriver->byXpath($xpath); | 
| @@ -43,8 +43,8 @@ | ||
| 43 | 43 |      { | 
| 44 | 44 |          $parts = explode('/', $setting); | 
| 45 | 45 | $this->testCase->assertCount(2, $parts); | 
| 46 | - $this->tab = $parts[0]; | |
| 47 | - $this->section = $parts[1]; | |
| 46 | + $this->tab = $parts[0]; | |
| 47 | + $this->section = $parts[1]; | |
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | 50 | protected function navigateToSystemConfiguration($setting) | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | const NAME = 'Saved CC'; | 
| 9 | 9 | const ACTION = 'Admin\Configuration\PaymentMethods\SavedCC'; | 
| 10 | 10 | |
| 11 | - protected $section = 'Payment Methods/' . self::NAME; | |
| 11 | + protected $section = 'Payment Methods/'.self::NAME; | |
| 12 | 12 | |
| 13 | 13 | protected $settings = [ | 
| 14 | 14 | 'payment_ccsave_active' => 0, |