@@ -287,6 +287,8 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | /** |
| 289 | 289 | * @Given /^I fill in the (billing|shipping) address to (.+)$/ |
| 290 | + * @param string $type |
|
| 291 | + * @param string $country |
|
| 290 | 292 | */ |
| 291 | 293 | public function iFillInCheckoutAddress($type, $country) |
| 292 | 294 | { |
@@ -312,6 +314,9 @@ discard block |
||
| 312 | 314 | $this->iFillInAddressFields('sylius_address', $country); |
| 313 | 315 | } |
| 314 | 316 | |
| 317 | + /** |
|
| 318 | + * @param string $base |
|
| 319 | + */ |
|
| 315 | 320 | protected function iFillInAddressFields($base, $country) |
| 316 | 321 | { |
| 317 | 322 | $this->fillField($base.'[firstName]', 'John'); |
@@ -324,6 +329,7 @@ discard block |
||
| 324 | 329 | |
| 325 | 330 | /** |
| 326 | 331 | * @Given /^I select the "(?P<field>([^""]|\\")*)" radio button$/ |
| 332 | + * @param string $field |
|
| 327 | 333 | */ |
| 328 | 334 | public function iSelectTheRadioButton($field) |
| 329 | 335 | { |
@@ -740,6 +746,9 @@ discard block |
||
| 740 | 746 | $this->assertSession()->elementContains('css', '#enabled', 'yes'); |
| 741 | 747 | } |
| 742 | 748 | |
| 749 | + /** |
|
| 750 | + * @param string $route |
|
| 751 | + */ |
|
| 743 | 752 | private function assertRoute($route) |
| 744 | 753 | { |
| 745 | 754 | $this->assertSession()->addressEquals($this->generatePageUrl($route)); |
@@ -314,12 +314,12 @@ discard block |
||
| 314 | 314 | |
| 315 | 315 | protected function iFillInAddressFields($base, $country) |
| 316 | 316 | { |
| 317 | - $this->fillField($base.'[firstName]', 'John'); |
|
| 318 | - $this->fillField($base.'[lastName]', 'Doe'); |
|
| 319 | - $this->fillField($base.'[street]', 'Pvt. Street 15'); |
|
| 320 | - $this->fillField($base.'[city]', 'Lodz'); |
|
| 321 | - $this->fillField($base.'[postcode]', '95-253'); |
|
| 322 | - $this->selectOption($base.'[countryCode]', $country); |
|
| 317 | + $this->fillField($base . '[firstName]', 'John'); |
|
| 318 | + $this->fillField($base . '[lastName]', 'Doe'); |
|
| 319 | + $this->fillField($base . '[street]', 'Pvt. Street 15'); |
|
| 320 | + $this->fillField($base . '[city]', 'Lodz'); |
|
| 321 | + $this->fillField($base . '[postcode]', '95-253'); |
|
| 322 | + $this->selectOption($base . '[countryCode]', $country); |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /** |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | */ |
| 361 | 361 | public function iShouldNotSeeButton($button) |
| 362 | 362 | { |
| 363 | - $this->assertSession()->elementNotExists('css', '.delete-action-form input[value="'.strtoupper($button).'"]'); |
|
| 363 | + $this->assertSession()->elementNotExists('css', '.delete-action-form input[value="' . strtoupper($button) . '"]'); |
|
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | /** |
@@ -368,8 +368,8 @@ discard block |
||
| 368 | 368 | */ |
| 369 | 369 | public function iShouldNotSeeButtonInColumnInTable($button, $customer, $table) |
| 370 | 370 | { |
| 371 | - $this->assertSession()->elementExists('css', '#'.$table." tr[data-customer='$customer']"); |
|
| 372 | - $this->assertSession()->elementNotExists('css', '#'.$table." tr[data-customer='$customer'] form input[value=".strtoupper($button).']'); |
|
| 371 | + $this->assertSession()->elementExists('css', '#' . $table . " tr[data-customer='$customer']"); |
|
| 372 | + $this->assertSession()->elementNotExists('css', '#' . $table . " tr[data-customer='$customer'] form input[value=" . strtoupper($button) . ']'); |
|
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | /** |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | { |
| 476 | 476 | $order = $this->findOneBy('order', ['number' => $number]); |
| 477 | 477 | |
| 478 | - $this->getSession()->visit($this->generatePageUrl('sylius_account_order_'.$action, ['number' => $order->getNumber()])); |
|
| 478 | + $this->getSession()->visit($this->generatePageUrl('sylius_account_order_' . $action, ['number' => $order->getNumber()])); |
|
| 479 | 479 | } |
| 480 | 480 | |
| 481 | 481 | /** |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | */ |
| 485 | 485 | public function iShouldBeOnTheOrderPage($action, $number) |
| 486 | 486 | { |
| 487 | - $this->assertSession()->addressEquals($this->generatePageUrl('sylius_account_order_'.$action, ['number' => $number])); |
|
| 487 | + $this->assertSession()->addressEquals($this->generatePageUrl('sylius_account_order_' . $action, ['number' => $number])); |
|
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | /** |
@@ -758,7 +758,7 @@ discard block |
||
| 758 | 758 | */ |
| 759 | 759 | protected function getFormCollectionDiv(DocumentElement $page, $collectionName) |
| 760 | 760 | { |
| 761 | - return $page->find('css', 'div[data-form-type="collection"][id*="'.$collectionName.'"]'); |
|
| 761 | + return $page->find('css', 'div[data-form-type="collection"][id*="' . $collectionName . '"]'); |
|
| 762 | 762 | } |
| 763 | 763 | |
| 764 | 764 | /** |
@@ -166,6 +166,10 @@ |
||
| 166 | 166 | return $this->redirectToIndex(); |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $type |
|
| 171 | + * @param string $message |
|
| 172 | + */ |
|
| 169 | 173 | protected function addFlash($type, $message) |
| 170 | 174 | { |
| 171 | 175 | $translator = $this->get('translator'); |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | /** |
| 127 | 127 | * Returns all zone types available. |
| 128 | 128 | * |
| 129 | - * @return array of self::TYPE_* |
|
| 129 | + * @return string[] of self::TYPE_* |
|
| 130 | 130 | */ |
| 131 | 131 | public static function getTypes() |
| 132 | 132 | { |
@@ -32,6 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param string $name |
| 35 | + * @return void |
|
| 35 | 36 | */ |
| 36 | 37 | public function setName($name); |
| 37 | 38 | |
@@ -42,6 +43,7 @@ discard block |
||
| 42 | 43 | |
| 43 | 44 | /** |
| 44 | 45 | * @param string $type |
| 46 | + * @return void |
|
| 45 | 47 | */ |
| 46 | 48 | public function setType($type); |
| 47 | 49 | |
@@ -52,6 +54,7 @@ discard block |
||
| 52 | 54 | |
| 53 | 55 | /** |
| 54 | 56 | * @param string $scope |
| 57 | + * @return void |
|
| 55 | 58 | */ |
| 56 | 59 | public function setScope($scope); |
| 57 | 60 | |
@@ -61,7 +64,8 @@ discard block |
||
| 61 | 64 | public function getMembers(); |
| 62 | 65 | |
| 63 | 66 | /** |
| 64 | - * @param Collection|ZoneMemberInterface[] $members |
|
| 67 | + * @param Collection $members |
|
| 68 | + * @return void |
|
| 65 | 69 | */ |
| 66 | 70 | public function setMembers(Collection $members); |
| 67 | 71 | |
@@ -72,11 +76,13 @@ discard block |
||
| 72 | 76 | |
| 73 | 77 | /** |
| 74 | 78 | * @param ZoneMemberInterface $member |
| 79 | + * @return void |
|
| 75 | 80 | */ |
| 76 | 81 | public function addMember(ZoneMemberInterface $member); |
| 77 | 82 | |
| 78 | 83 | /** |
| 79 | 84 | * @param ZoneMemberInterface $member |
| 85 | + * @return void |
|
| 80 | 86 | */ |
| 81 | 87 | public function removeMember(ZoneMemberInterface $member); |
| 82 | 88 | |
@@ -42,12 +42,14 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * Sets all prototype attributes. |
| 44 | 44 | * |
| 45 | - * @param Collection|AttributeInterface[] $attributes |
|
| 45 | + * @param Collection $attributes |
|
| 46 | + * @return void |
|
| 46 | 47 | */ |
| 47 | 48 | public function setAttributes(Collection $attributes); |
| 48 | 49 | |
| 49 | 50 | /** |
| 50 | 51 | * @param AttributeInterface $attribute |
| 52 | + * @return void |
|
| 51 | 53 | */ |
| 52 | 54 | public function addAttribute(AttributeInterface $attribute); |
| 53 | 55 | |
@@ -55,6 +57,7 @@ discard block |
||
| 55 | 57 | * Removes attribute from prototype. |
| 56 | 58 | * |
| 57 | 59 | * @param AttributeInterface $attribute |
| 60 | + * @return void |
|
| 58 | 61 | */ |
| 59 | 62 | public function removeAttribute(AttributeInterface $attribute); |
| 60 | 63 | |
@@ -77,12 +80,14 @@ discard block |
||
| 77 | 80 | /** |
| 78 | 81 | * Sets all prototype options. |
| 79 | 82 | * |
| 80 | - * @param Collection|OptionInterface[] $options |
|
| 83 | + * @param Collection $options |
|
| 84 | + * @return void |
|
| 81 | 85 | */ |
| 82 | 86 | public function setOptions(Collection $options); |
| 83 | 87 | |
| 84 | 88 | /** |
| 85 | 89 | * @param OptionInterface $option |
| 90 | + * @return void |
|
| 86 | 91 | */ |
| 87 | 92 | public function addOption(OptionInterface $option); |
| 88 | 93 | |
@@ -90,6 +95,7 @@ discard block |
||
| 90 | 95 | * Removes option from prototype. |
| 91 | 96 | * |
| 92 | 97 | * @param OptionInterface $option |
| 98 | + * @return void |
|
| 93 | 99 | */ |
| 94 | 100 | public function removeOption(OptionInterface $option); |
| 95 | 101 | |
@@ -109,6 +115,7 @@ discard block |
||
| 109 | 115 | |
| 110 | 116 | /** |
| 111 | 117 | * @param null|ArchetypeInterface $parent |
| 118 | + * @return void |
|
| 112 | 119 | */ |
| 113 | 120 | public function setParent(ArchetypeInterface $parent = null); |
| 114 | 121 | |
@@ -37,7 +37,6 @@ |
||
| 37 | 37 | protected $name; |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @param string $name |
|
| 41 | 40 | */ |
| 42 | 41 | public function __construct() |
| 43 | 42 | { |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | use Sylius\Component\Attribute\AttributeType\AttributeTypeInterface; |
| 17 | 17 | use Sylius\Component\Attribute\Model\AttributeInterface; |
| 18 | 18 | use Sylius\Component\Attribute\Model\AttributeValueInterface; |
| 19 | -use Symfony\Component\Validator\Constraints\Length; |
|
| 20 | 19 | use Symfony\Component\Validator\ConstraintViolationInterface; |
| 21 | 20 | use Symfony\Component\Validator\ConstraintViolationListInterface; |
| 21 | +use Symfony\Component\Validator\Constraints\Length; |
|
| 22 | 22 | use Symfony\Component\Validator\Context\ExecutionContextInterface; |
| 23 | 23 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
| 24 | 24 | use Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface; |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Component\Core\Model; |
| 13 | 13 | |
| 14 | -use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
|
| 15 | 14 | use Sylius\Component\Channel\Model\ChannelInterface as BaseChannelInterface; |
| 16 | 15 | use Sylius\Component\Currency\Model\CurrenciesAwareInterface; |
| 17 | 16 | use Sylius\Component\Currency\Model\CurrencyInterface; |
@@ -39,6 +39,7 @@ discard block |
||
| 39 | 39 | * Sets all option values. |
| 40 | 40 | * |
| 41 | 41 | * @param Collection $optionValues |
| 42 | + * @return void |
|
| 42 | 43 | */ |
| 43 | 44 | public function setValues(Collection $optionValues); |
| 44 | 45 | |
@@ -46,6 +47,7 @@ discard block |
||
| 46 | 47 | * Adds option value. |
| 47 | 48 | * |
| 48 | 49 | * @param OptionValueInterface $optionValue |
| 50 | + * @return void |
|
| 49 | 51 | */ |
| 50 | 52 | public function addValue(OptionValueInterface $optionValue); |
| 51 | 53 | |
@@ -53,6 +55,7 @@ discard block |
||
| 53 | 55 | * Removes option value. |
| 54 | 56 | * |
| 55 | 57 | * @param OptionValueInterface $optionValue |
| 58 | + * @return void |
|
| 56 | 59 | */ |
| 57 | 60 | public function removeValue(OptionValueInterface $optionValue); |
| 58 | 61 | |
@@ -21,6 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @param string $currencyCode |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function setCurrencyCode($currencyCode); |
| 26 | 27 | |
@@ -30,12 +31,13 @@ discard block |
||
| 30 | 31 | public function getCurrencyCode(); |
| 31 | 32 | |
| 32 | 33 | /** |
| 33 | - * @return Collection|OrderInterface[] |
|
| 34 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
| 34 | 35 | */ |
| 35 | 36 | public function getOrders(); |
| 36 | 37 | |
| 37 | 38 | /** |
| 38 | 39 | * @param AddressInterface $billingAddress |
| 40 | + * @return void |
|
| 39 | 41 | */ |
| 40 | 42 | public function setBillingAddress(AddressInterface $billingAddress = null); |
| 41 | 43 | |
@@ -46,6 +48,7 @@ discard block |
||
| 46 | 48 | |
| 47 | 49 | /** |
| 48 | 50 | * @param AddressInterface $shippingAddress |
| 51 | + * @return void |
|
| 49 | 52 | */ |
| 50 | 53 | public function setShippingAddress(AddressInterface $shippingAddress = null); |
| 51 | 54 | |
@@ -56,11 +59,13 @@ discard block |
||
| 56 | 59 | |
| 57 | 60 | /** |
| 58 | 61 | * @param AddressInterface $address |
| 62 | + * @return void |
|
| 59 | 63 | */ |
| 60 | 64 | public function addAddress(AddressInterface $address); |
| 61 | 65 | |
| 62 | 66 | /** |
| 63 | 67 | * @param AddressInterface $address |
| 68 | + * @return void |
|
| 64 | 69 | */ |
| 65 | 70 | public function removeAddress(AddressInterface $address); |
| 66 | 71 | |
@@ -72,7 +77,7 @@ discard block |
||
| 72 | 77 | public function hasAddress(AddressInterface $address); |
| 73 | 78 | |
| 74 | 79 | /** |
| 75 | - * @return Collection|AddressInterface[] |
|
| 80 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
| 76 | 81 | */ |
| 77 | 82 | public function getAddresses(); |
| 78 | 83 | } |