@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param OptionInterface $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(OptionInterface $option = null); |
| 32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | * Set internal value. |
| 42 | 43 | * |
| 43 | 44 | * @param string $value |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setValue($value); |
| 46 | 48 | |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param OptionInterface $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(OptionInterface $option = null); |
| 32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | * Set internal value. |
| 42 | 43 | * |
| 43 | 44 | * @param string $value |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setValue($value); |
| 46 | 48 | |
@@ -31,6 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @param string $name |
| 34 | + * @return void |
|
| 34 | 35 | */ |
| 35 | 36 | public function setName($name); |
| 36 | 37 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | |
| 42 | 43 | /** |
| 43 | 44 | * @param VariableInterface|null $object |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setObject(VariableInterface $object = null); |
| 46 | 48 | |
@@ -51,16 +53,19 @@ discard block |
||
| 51 | 53 | |
| 52 | 54 | /** |
| 53 | 55 | * @param Collection $options |
| 56 | + * @return void |
|
| 54 | 57 | */ |
| 55 | 58 | public function setOptions(Collection $options); |
| 56 | 59 | |
| 57 | 60 | /** |
| 58 | 61 | * @param OptionValueInterface $option |
| 62 | + * @return void |
|
| 59 | 63 | */ |
| 60 | 64 | public function addOption(OptionValueInterface $option); |
| 61 | 65 | |
| 62 | 66 | /** |
| 63 | 67 | * @param OptionValueInterface $option |
| 68 | + * @return void |
|
| 64 | 69 | */ |
| 65 | 70 | public function removeOption(OptionValueInterface $option); |
| 66 | 71 | |
@@ -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 | } |
@@ -91,6 +91,6 @@ |
||
| 91 | 91 | |
| 92 | 92 | <info>php %command.full_name% web --symlink --relative</info> |
| 93 | 93 | |
| 94 | -EOT; |
|
| 94 | +eot; |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 63 | 63 | $locales = $this->loadFixturesFromFile('resources/locales.yml'); |
| 64 | 64 | |
| 65 | - $this->client->request('GET', '/api/locales/'.$locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 65 | + $this->client->request('GET', '/api/locales/' . $locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 66 | 66 | |
| 67 | 67 | $response = $this->client->getResponse(); |
| 68 | 68 | $this->assertResponse($response, 'locale/show_response', Response::HTTP_OK); |
@@ -130,12 +130,12 @@ discard block |
||
| 130 | 130 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 131 | 131 | $locales = $this->loadFixturesFromFile('resources/locales.yml'); |
| 132 | 132 | |
| 133 | - $this->client->request('DELETE', '/api/locales/'.$locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 133 | + $this->client->request('DELETE', '/api/locales/' . $locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 134 | 134 | |
| 135 | 135 | $response = $this->client->getResponse(); |
| 136 | 136 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 137 | 137 | |
| 138 | - $this->client->request('GET', '/api/locales/'.$locales['locale_en']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 138 | + $this->client->request('GET', '/api/locales/' . $locales['locale_en']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 139 | 139 | |
| 140 | 140 | $response = $this->client->getResponse(); |
| 141 | 141 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | }, |
| 35 | 35 | "author": "Christie Golden" |
| 36 | 36 | } |
| 37 | -EOT; |
|
| 37 | +eot; |
|
| 38 | 38 | |
| 39 | 39 | $this->client->request('POST', '/books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 40 | 40 | $response = $this->client->getResponse(); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | }, |
| 62 | 62 | "author": "Christie Golden" |
| 63 | 63 | } |
| 64 | -EOT; |
|
| 64 | +eot; |
|
| 65 | 65 | |
| 66 | 66 | $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 67 | 67 | $response = $this->client->getResponse(); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | "author": "Christie Golden" |
| 82 | 82 | } |
| 83 | -EOT; |
|
| 83 | +eot; |
|
| 84 | 84 | |
| 85 | 85 | $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 86 | 86 | $response = $this->client->getResponse(); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 123 | 123 | $currencies = $this->loadFixturesFromFile('resources/currencies.yml'); |
| 124 | 124 | |
| 125 | - $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 125 | + $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 126 | 126 | |
| 127 | 127 | $response = $this->client->getResponse(); |
| 128 | 128 | $this->assertResponse($response, 'currency/show_response', Response::HTTP_OK); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 152 | 152 | $currencies = $this->loadFixturesFromFile('resources/currencies.yml'); |
| 153 | 153 | |
| 154 | - $this->client->request('PUT', '/api/currencies/'.$currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 154 | + $this->client->request('PUT', '/api/currencies/' . $currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 155 | 155 | |
| 156 | 156 | $response = $this->client->getResponse(); |
| 157 | 157 | |
@@ -172,12 +172,12 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | EOT; |
| 174 | 174 | |
| 175 | - $this->client->request('PUT', '/api/currencies/'.$currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 175 | + $this->client->request('PUT', '/api/currencies/' . $currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 176 | 176 | |
| 177 | 177 | $response = $this->client->getResponse(); |
| 178 | 178 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 179 | 179 | |
| 180 | - $this->client->request('GET', '/api/currencies/'.$currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 180 | + $this->client->request('GET', '/api/currencies/' . $currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 181 | 181 | |
| 182 | 182 | $response = $this->client->getResponse(); |
| 183 | 183 | $this->assertResponse($response, 'currency/update_response', Response::HTTP_OK); |
@@ -206,12 +206,12 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | EOT; |
| 208 | 208 | |
| 209 | - $this->client->request('PATCH', '/api/currencies/'.$currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 209 | + $this->client->request('PATCH', '/api/currencies/' . $currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 210 | 210 | |
| 211 | 211 | $response = $this->client->getResponse(); |
| 212 | 212 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 213 | 213 | |
| 214 | - $this->client->request('GET', '/api/currencies/'.$currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 214 | + $this->client->request('GET', '/api/currencies/' . $currencies['currency_2']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 215 | 215 | |
| 216 | 216 | $response = $this->client->getResponse(); |
| 217 | 217 | $this->assertResponse($response, 'currency/update_response', Response::HTTP_OK); |
@@ -232,12 +232,12 @@ discard block |
||
| 232 | 232 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 233 | 233 | $currencies = $this->loadFixturesFromFile('resources/currencies.yml'); |
| 234 | 234 | |
| 235 | - $this->client->request('DELETE', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 235 | + $this->client->request('DELETE', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 236 | 236 | |
| 237 | 237 | $response = $this->client->getResponse(); |
| 238 | 238 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 239 | 239 | |
| 240 | - $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 240 | + $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 241 | 241 | |
| 242 | 242 | $response = $this->client->getResponse(); |
| 243 | 243 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -91,6 +91,6 @@ |
||
| 91 | 91 | |
| 92 | 92 | <info>php %command.full_name% web --symlink --relative</info> |
| 93 | 93 | |
| 94 | -EOT; |
|
| 94 | +eot; |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 97 | 97 | $countries = $this->loadFixturesFromFile('resources/countries.yml'); |
| 98 | 98 | |
| 99 | - $this->client->request('GET', '/api/countries/'.$countries['country_NL']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 99 | + $this->client->request('GET', '/api/countries/' . $countries['country_NL']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 100 | 100 | |
| 101 | 101 | $response = $this->client->getResponse(); |
| 102 | 102 | $this->assertResponse($response, 'country/show_response', Response::HTTP_OK); |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |