@@ -174,6 +174,8 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | + * @param string $code |
|
| 178 | + * @param string $name |
|
| 177 | 179 | * @return ChannelInterface |
| 178 | 180 | */ |
| 179 | 181 | private function createChannel($code, $name) |
@@ -197,6 +199,7 @@ discard block |
||
| 197 | 199 | } |
| 198 | 200 | |
| 199 | 201 | /** |
| 202 | + * @param string $currencyCode |
|
| 200 | 203 | * @return CurrencyInterface |
| 201 | 204 | */ |
| 202 | 205 | private function provideCurrency($currencyCode = null) |
@@ -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 | |
@@ -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 | |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -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 | |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | */ |
| 117 | 117 | public function iChangeRatioTo($ratio) |
| 118 | 118 | { |
| 119 | - $this->updatePage->changeRatio((float)$ratio); |
|
| 119 | + $this->updatePage->changeRatio((float) $ratio); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 41 | 41 | $countryData = $this->loadFixturesFromFile('resources/countries.yml'); |
| 42 | 42 | |
| 43 | - $this->client->request('GET', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 43 | + $this->client->request('GET', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 44 | 44 | |
| 45 | 45 | $response = $this->client->getResponse(); |
| 46 | 46 | $this->assertResponse($response, 'province/show_response', Response::HTTP_OK); |
@@ -51,12 +51,12 @@ discard block |
||
| 51 | 51 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 52 | 52 | $countryData = $this->loadFixturesFromFile('resources/countries.yml'); |
| 53 | 53 | |
| 54 | - $this->client->request('DELETE', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 54 | + $this->client->request('DELETE', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 55 | 55 | |
| 56 | 56 | $response = $this->client->getResponse(); |
| 57 | 57 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 58 | 58 | |
| 59 | - $this->client->request('GET', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 59 | + $this->client->request('GET', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 60 | 60 | |
| 61 | 61 | $response = $this->client->getResponse(); |
| 62 | 62 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @param $code |
|
| 96 | + * @param string $code |
|
| 97 | 97 | * |
| 98 | 98 | * @return null|string |
| 99 | 99 | */ |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @return array |
|
| 106 | + * @return string[] |
|
| 107 | 107 | */ |
| 108 | 108 | private function getAvailableCountries() |
| 109 | 109 | { |