@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | public function load(array $config, ContainerBuilder $container) |
| 29 | 29 | { |
| 30 | 30 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | |
| 33 | 33 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
| 34 | 34 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | return; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 93 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 94 | 94 | $loader->load('resource_integration.xml'); |
| 95 | 95 | |
| 96 | 96 | $container->prependExtensionConfig('sylius_resource', [ |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | | sylius.two | |
| 57 | 57 | +------------+ |
| 58 | 58 | |
| 59 | -EOT |
|
| 59 | +eot |
|
| 60 | 60 | , $display); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | | whatever.something.elephants | camels | |
| 83 | 83 | +------------------------------+-----------------+ |
| 84 | 84 | |
| 85 | -EOT |
|
| 85 | +eot |
|
| 86 | 86 | , $display); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | ], |
| 970 | 970 | ]; |
| 971 | 971 | $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST']) |
| 972 | - ->willReturn($createRoute); |
|
| 972 | + ->willReturn($createRoute); |
|
| 973 | 973 | $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled(); |
| 974 | 974 | |
| 975 | 975 | $updateDefaults = [ |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | ], |
| 980 | 980 | ]; |
| 981 | 981 | $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH']) |
| 982 | - ->willReturn($updateRoute); |
|
| 982 | + ->willReturn($updateRoute); |
|
| 983 | 983 | $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled(); |
| 984 | 984 | |
| 985 | 985 | $deleteDefaults = [ |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | ], |
| 990 | 990 | ]; |
| 991 | 991 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
| 992 | - ->willReturn($deleteRoute); |
|
| 992 | + ->willReturn($deleteRoute); |
|
| 993 | 993 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
| 994 | 994 | |
| 995 | 995 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | <<<EOT |
| 50 | 50 | foo: bar |
| 51 | 51 | only: string |
| 52 | -EOT; |
|
| 52 | +eot; |
|
| 53 | 53 | |
| 54 | 54 | $this |
| 55 | 55 | ->shouldThrow(InvalidConfigurationException::class) |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $configuration = |
| 64 | 64 | <<<EOT |
| 65 | 65 | alias: sylius.foo |
| 66 | -EOT; |
|
| 66 | +eot; |
|
| 67 | 67 | |
| 68 | 68 | $this |
| 69 | 69 | ->shouldThrow(\InvalidArgumentException::class) |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $configuration = |
| 93 | 93 | <<<EOT |
| 94 | 94 | alias: sylius.product |
| 95 | -EOT; |
|
| 95 | +eot; |
|
| 96 | 96 | |
| 97 | 97 | $showDefaults = [ |
| 98 | 98 | '_controller' => 'sylius.controller.product:showAction', |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $configuration = |
| 165 | 165 | <<<EOT |
| 166 | 166 | alias: sylius.product_option |
| 167 | -EOT; |
|
| 167 | +eot; |
|
| 168 | 168 | |
| 169 | 169 | $showDefaults = [ |
| 170 | 170 | '_controller' => 'sylius.controller.product_option:showAction', |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | <<<EOT |
| 238 | 238 | alias: sylius.product |
| 239 | 239 | path: super-duper-products |
| 240 | -EOT; |
|
| 240 | +eot; |
|
| 241 | 241 | |
| 242 | 242 | $showDefaults = [ |
| 243 | 243 | '_controller' => 'sylius.controller.product:showAction', |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | <<<EOT |
| 311 | 311 | alias: sylius.product |
| 312 | 312 | form: sylius_product_custom |
| 313 | -EOT; |
|
| 313 | +eot; |
|
| 314 | 314 | |
| 315 | 315 | $showDefaults = [ |
| 316 | 316 | '_controller' => 'sylius.controller.product:showAction', |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | <<<EOT |
| 386 | 386 | alias: sylius.product |
| 387 | 387 | section: admin |
| 388 | -EOT; |
|
| 388 | +eot; |
|
| 389 | 389 | |
| 390 | 390 | $showDefaults = [ |
| 391 | 391 | '_controller' => 'sylius.controller.product:showAction', |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | <<<EOT |
| 464 | 464 | alias: sylius.product |
| 465 | 465 | templates: SyliusAdminBundle:Product |
| 466 | -EOT; |
|
| 466 | +eot; |
|
| 467 | 467 | |
| 468 | 468 | $showDefaults = [ |
| 469 | 469 | '_controller' => 'sylius.controller.product:showAction', |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | <<<EOT |
| 539 | 539 | alias: sylius.product |
| 540 | 540 | except: ['show', 'delete'] |
| 541 | -EOT; |
|
| 541 | +eot; |
|
| 542 | 542 | |
| 543 | 543 | $indexDefaults = [ |
| 544 | 544 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | <<<EOT |
| 591 | 591 | alias: sylius.product |
| 592 | 592 | only: ['create', 'index'] |
| 593 | -EOT; |
|
| 593 | +eot; |
|
| 594 | 594 | |
| 595 | 595 | $indexDefaults = [ |
| 596 | 596 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | alias: sylius.product |
| 621 | 621 | except: ['show', 'delete'] |
| 622 | 622 | only: ['create'] |
| 623 | -EOT; |
|
| 623 | +eot; |
|
| 624 | 624 | |
| 625 | 625 | $this |
| 626 | 626 | ->shouldThrow(\InvalidArgumentException::class) |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | <<<EOT |
| 651 | 651 | alias: sylius.product |
| 652 | 652 | redirect: update |
| 653 | -EOT; |
|
| 653 | +eot; |
|
| 654 | 654 | |
| 655 | 655 | $showDefaults = [ |
| 656 | 656 | '_controller' => 'sylius.controller.product:showAction', |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | $configuration = |
| 725 | 725 | <<<EOT |
| 726 | 726 | alias: sylius.product |
| 727 | -EOT; |
|
| 727 | +eot; |
|
| 728 | 728 | |
| 729 | 729 | $showDefaults = [ |
| 730 | 730 | '_controller' => 'sylius.controller.product:showAction', |
@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | alias: sylius.product |
| 800 | 800 | only: ['create', 'index'] |
| 801 | 801 | grid: sylius_admin_product |
| 802 | -EOT; |
|
| 802 | +eot; |
|
| 803 | 803 | |
| 804 | 804 | $indexDefaults = [ |
| 805 | 805 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -852,7 +852,7 @@ discard block |
||
| 852 | 852 | bar: foo |
| 853 | 853 | update: |
| 854 | 854 | abc: xyz |
| 855 | -EOT; |
|
| 855 | +eot; |
|
| 856 | 856 | |
| 857 | 857 | $showDefaults = [ |
| 858 | 858 | '_controller' => 'sylius.controller.product:showAction', |
@@ -942,7 +942,7 @@ discard block |
||
| 942 | 942 | <<<EOT |
| 943 | 943 | alias: sylius.product |
| 944 | 944 | permission: true |
| 945 | -EOT; |
|
| 945 | +eot; |
|
| 946 | 946 | |
| 947 | 947 | $showDefaults = [ |
| 948 | 948 | '_controller' => 'sylius.controller.product:showAction', |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | protected function getPropertyName($name) |
| 97 | 97 | { |
| 98 | 98 | if (in_array($name, $this->translatableFields, true)) { |
| 99 | - return 'translations.'.$this->localeProvider->getDefaultLocaleCode().'.'.$name; |
|
| 99 | + return 'translations.' . $this->localeProvider->getDefaultLocaleCode() . '.' . $name; |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | return $name; |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\MongoDB; |
| 13 | 13 | |
| 14 | 14 | use Doctrine\MongoDB\Query\Builder as QueryBuilder; |
| 15 | -use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface; |
|
| 16 | 15 | use Sylius\Component\Resource\Repository\TranslatableRepositoryInterface; |
| 16 | +use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Doctrine ORM driver translatable entity repository. |
@@ -133,11 +133,11 @@ |
||
| 133 | 133 | { |
| 134 | 134 | foreach ($parameters as $key => $value) { |
| 135 | 135 | if (is_array($value)) { |
| 136 | - $flattened = $this->flattenParameters($value, $flattened, $prefix.$key.'.'); |
|
| 136 | + $flattened = $this->flattenParameters($value, $flattened, $prefix . $key . '.'); |
|
| 137 | 137 | continue; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | - $flattened[$prefix.$key] = $value; |
|
| 140 | + $flattened[$prefix . $key] = $value; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | return $flattened; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
| 31 | 31 | ->setHelp(<<<EOT |
| 32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
| 33 | -EOT |
|
| 33 | +eot |
|
| 34 | 34 | ) |
| 35 | 35 | ; |
| 36 | 36 | } |
@@ -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 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | "username": "[email protected]", |
| 36 | 36 | "password": "sylius" |
| 37 | 37 | } |
| 38 | -EOT; |
|
| 38 | +eot; |
|
| 39 | 39 | |
| 40 | 40 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 41 | 41 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | "grant_type": "refresh_token", |
| 59 | 59 | "refresh_token": "SampleRefreshTokenODllODY4ZTQyOThlNWIyMjA1ZDhmZjE1ZDYyMGMwOTUxOWM2NGFmNGRjNjQ2NDBhMDVlNGZjMmQ0YzgyNDM2Ng" |
| 60 | 60 | } |
| 61 | -EOT; |
|
| 61 | +eot; |
|
| 62 | 62 | |
| 63 | 63 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 64 | 64 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | "email": "[email protected]" |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | -EOT; |
|
| 76 | +eot; |
|
| 77 | 77 | |
| 78 | 78 | $url = sprintf('/api/checkouts/addressing/%d', $checkoutData['order1']->getId()); |
| 79 | 79 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | "email": "[email protected]" |
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | -EOT; |
|
| 110 | +eot; |
|
| 111 | 111 | |
| 112 | 112 | $url = sprintf('/api/checkouts/addressing/%d', $checkoutData['order1']->getId()); |
| 113 | 113 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | "email": "[email protected]" |
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | -EOT; |
|
| 145 | +eot; |
|
| 146 | 146 | |
| 147 | 147 | $url = sprintf('/api/checkouts/addressing/%d', $checkoutData['order1']->getId()); |
| 148 | 148 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | "email": "[email protected]" |
| 185 | 185 | } |
| 186 | 186 | } |
| 187 | -EOT; |
|
| 187 | +eot; |
|
| 188 | 188 | |
| 189 | 189 | $url = sprintf('/api/checkouts/addressing/%d', $checkoutData['order1']->getId()); |
| 190 | 190 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | "email": "[email protected]" |
| 224 | 224 | } |
| 225 | 225 | } |
| 226 | -EOT; |
|
| 226 | +eot; |
|
| 227 | 227 | |
| 228 | 228 | $orderId = $checkoutData['order1']->getId(); |
| 229 | 229 | |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | }, |
| 244 | 244 | "differentBillingAddress": false |
| 245 | 245 | } |
| 246 | -EOT; |
|
| 246 | +eot; |
|
| 247 | 247 | |
| 248 | 248 | $url = sprintf('/api/checkouts/addressing/%d', $checkoutData['order1']->getId()); |
| 249 | 249 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $newData); |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | "email": "[email protected]" |
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | -EOT; |
|
| 280 | +eot; |
|
| 281 | 281 | |
| 282 | 282 | $orderId = $checkoutData['order1']->getId(); |
| 283 | 283 | |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | }, |
| 300 | 300 | "differentBillingAddress": false |
| 301 | 301 | } |
| 302 | -EOT; |
|
| 302 | +eot; |
|
| 303 | 303 | |
| 304 | 304 | $url = sprintf('/api/checkouts/addressing/%d', $checkoutData['order1']->getId()); |
| 305 | 305 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $newAddressData); |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | "email": "[email protected]" |
| 334 | 334 | } |
| 335 | 335 | } |
| 336 | -EOT; |
|
| 336 | +eot; |
|
| 337 | 337 | |
| 338 | 338 | $orderId = $checkoutData['order1']->getId(); |
| 339 | 339 | |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | }, |
| 357 | 357 | "differentBillingAddress": false |
| 358 | 358 | } |
| 359 | -EOT; |
|
| 359 | +eot; |
|
| 360 | 360 | |
| 361 | 361 | $url = sprintf('/api/checkouts/addressing/%d', $checkoutData['order1']->getId()); |
| 362 | 362 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $newAddressData); |
@@ -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(); |