| @@ -410,7 +410,7 @@ | ||
| 410 | 410 | /** | 
| 411 | 411 | * @param Request $request | 
| 412 | 412 | * @param string $attribute | 
| 413 | - * @param mixed $default | |
| 413 | + * @param string|null $default | |
| 414 | 414 | * | 
| 415 | 415 | * @return mixed | 
| 416 | 416 | */ | 
| @@ -24,6 +24,7 @@ discard block | ||
| 24 | 24 |  { | 
| 25 | 25 | /** | 
| 26 | 26 | * @throws ElementNotFoundException | 
| 27 | + * @return void | |
| 27 | 28 | */ | 
| 28 | 29 | public function addToCart(); | 
| 29 | 30 | |
| @@ -31,6 +32,7 @@ discard block | ||
| 31 | 32 | * @param string $quantity | 
| 32 | 33 | * | 
| 33 | 34 | * @throws ElementNotFoundException | 
| 35 | + * @return void | |
| 34 | 36 | */ | 
| 35 | 37 | public function addToCartWithQuantity($quantity); | 
| 36 | 38 | |
| @@ -38,6 +40,7 @@ discard block | ||
| 38 | 40 | * @param string $variant | 
| 39 | 41 | * | 
| 40 | 42 | * @throws ElementNotFoundException | 
| 43 | + * @return void | |
| 41 | 44 | */ | 
| 42 | 45 | public function addToCartWithVariant($variant); | 
| 43 | 46 | |
| @@ -46,6 +49,7 @@ discard block | ||
| 46 | 49 | * @param string $optionValue | 
| 47 | 50 | * | 
| 48 | 51 | * @throws ElementNotFoundException | 
| 52 | + * @return void | |
| 49 | 53 | */ | 
| 50 | 54 | public function addToCartWithOption(ProductOptionInterface $option, $optionValue); | 
| 51 | 55 | |
| @@ -56,6 +60,7 @@ discard block | ||
| 56 | 60 | |
| 57 | 61 | /** | 
| 58 | 62 | * @param string $url | 
| 63 | + * @return void | |
| 59 | 64 | */ | 
| 60 | 65 | public function visit($url); | 
| 61 | 66 | |
| @@ -67,7 +72,7 @@ discard block | ||
| 67 | 72 | public function getAttributeByName($attributeName); | 
| 68 | 73 | |
| 69 | 74 | /** | 
| 70 | - * @return array | |
| 75 | + * @return \Behat\Mink\Element\NodeElement[] | |
| 71 | 76 | */ | 
| 72 | 77 | public function getAttributes(); | 
| 73 | 78 | |
| @@ -80,6 +85,7 @@ discard block | ||
| 80 | 85 | |
| 81 | 86 | /** | 
| 82 | 87 | * @param int $timeout | 
| 88 | + * @return void | |
| 83 | 89 | */ | 
| 84 | 90 | public function waitForValidationErrors($timeout); | 
| 85 | 91 | |
| @@ -123,11 +129,13 @@ discard block | ||
| 123 | 129 | /** | 
| 124 | 130 | * @param string $optionName | 
| 125 | 131 | * @param string $optionValue | 
| 132 | + * @return void | |
| 126 | 133 | */ | 
| 127 | 134 | public function selectOption($optionName, $optionValue); | 
| 128 | 135 | |
| 129 | 136 | /** | 
| 130 | 137 | * @param string $variantName | 
| 138 | + * @return void | |
| 131 | 139 | */ | 
| 132 | 140 | public function selectVariant($variantName); | 
| 133 | 141 | |
| @@ -36,11 +36,13 @@ discard block | ||
| 36 | 36 | |
| 37 | 37 | /** | 
| 38 | 38 | * @param string $locale | 
| 39 | + * @return void | |
| 39 | 40 | */ | 
| 40 | 41 | public function setCurrentLocale($locale); | 
| 41 | 42 | |
| 42 | 43 | /** | 
| 43 | 44 | * @param string $locale | 
| 45 | + * @return void | |
| 44 | 46 | */ | 
| 45 | 47 | public function setFallbackLocale($locale); | 
| 46 | 48 | |
| @@ -51,11 +53,13 @@ discard block | ||
| 51 | 53 | |
| 52 | 54 | /** | 
| 53 | 55 | * @param TranslationInterface $translation | 
| 56 | + * @return void | |
| 54 | 57 | */ | 
| 55 | 58 | public function addTranslation(TranslationInterface $translation); | 
| 56 | 59 | |
| 57 | 60 | /** | 
| 58 | 61 | * @param TranslationInterface $translation | 
| 62 | + * @return void | |
| 59 | 63 | */ | 
| 60 | 64 | public function removeTranslation(TranslationInterface $translation); | 
| 61 | 65 | } | 
| @@ -32,16 +32,19 @@ discard block | ||
| 32 | 32 | |
| 33 | 33 | /** | 
| 34 | 34 | * @param Collection $variants | 
| 35 | + * @return void | |
| 35 | 36 | */ | 
| 36 | 37 | public function setVariants(Collection $variants); | 
| 37 | 38 | |
| 38 | 39 | /** | 
| 39 | 40 | * @param VariantInterface $variant | 
| 41 | + * @return void | |
| 40 | 42 | */ | 
| 41 | 43 | public function addVariant(VariantInterface $variant); | 
| 42 | 44 | |
| 43 | 45 | /** | 
| 44 | 46 | * @param VariantInterface $variant | 
| 47 | + * @return void | |
| 45 | 48 | */ | 
| 46 | 49 | public function removeVariant(VariantInterface $variant); | 
| 47 | 50 | |
| @@ -64,16 +67,19 @@ discard block | ||
| 64 | 67 | |
| 65 | 68 | /** | 
| 66 | 69 | * @param Collection $options | 
| 70 | + * @return void | |
| 67 | 71 | */ | 
| 68 | 72 | public function setOptions(Collection $options); | 
| 69 | 73 | |
| 70 | 74 | /** | 
| 71 | 75 | * @param OptionInterface $option | 
| 76 | + * @return void | |
| 72 | 77 | */ | 
| 73 | 78 | public function addOption(OptionInterface $option); | 
| 74 | 79 | |
| 75 | 80 | /** | 
| 76 | 81 | * @param OptionInterface $option | 
| 82 | + * @return void | |
| 77 | 83 | */ | 
| 78 | 84 | public function removeOption(OptionInterface $option); | 
| 79 | 85 | |
| @@ -100,25 +100,25 @@ | ||
| 100 | 100 | /** | 
| 101 | 101 |       * {@inheritdoc} | 
| 102 | 102 | */ | 
| 103 | - public function isNextStepButtonUnavailable() | |
| 104 | -     { | |
| 105 | -         return $this->getElement('next_step')->hasClass('disabled'); | |
| 106 | - } | |
| 103 | + public function isNextStepButtonUnavailable() | |
| 104 | +        { | |
| 105 | +            return $this->getElement('next_step')->hasClass('disabled'); | |
| 106 | + } | |
| 107 | 107 | |
| 108 | 108 | /** | 
| 109 | 109 |       * {@inheritdoc} | 
| 110 | 110 | */ | 
| 111 | - public function getPaymentMethods() | |
| 112 | -     { | |
| 113 | -         $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label'); | |
| 111 | + public function getPaymentMethods() | |
| 112 | +        { | |
| 113 | +            $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label'); | |
| 114 | 114 | |
| 115 | - $paymentMethods = []; | |
| 116 | -         foreach ($inputs as $input) { | |
| 117 | - $paymentMethods[] = trim($input->getText()); | |
| 118 | - } | |
| 115 | + $paymentMethods = []; | |
| 116 | +            foreach ($inputs as $input) { | |
| 117 | + $paymentMethods[] = trim($input->getText()); | |
| 118 | + } | |
| 119 | 119 | |
| 120 | - return $paymentMethods; | |
| 121 | - } | |
| 120 | + return $paymentMethods; | |
| 121 | + } | |
| 122 | 122 | |
| 123 | 123 | /** | 
| 124 | 124 |       * {@inheritdoc} |