@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $container = parent::provideServiceLayerDependencies($container); |
| 26 | 26 | |
| 27 | - $container[self::STORAGE_CLIENT] = function (Container $container) { |
|
| 27 | + $container[self::STORAGE_CLIENT] = function(Container $container) { |
|
| 28 | 28 | return $container->getLocator()->storage()->client(); |
| 29 | 29 | }; |
| 30 | 30 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | protected function addProductLabelQueryContainer(Container $container) |
| 40 | 40 | { |
| 41 | - $container[static::QUERY_CONTAINER_PRODUCT_LABEL] = function (Container $container) { |
|
| 41 | + $container[static::QUERY_CONTAINER_PRODUCT_LABEL] = function(Container $container) { |
|
| 42 | 42 | return new ProductNewToProductLabelBridge($container->getLocator()->productLabel()->queryContainer()); |
| 43 | 43 | }; |
| 44 | 44 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | protected function addProductQueryContainer(Container $container) |
| 54 | 54 | { |
| 55 | - $container[static::QUERY_CONTAINER_PRODUCT] = function (Container $container) { |
|
| 55 | + $container[static::QUERY_CONTAINER_PRODUCT] = function(Container $container) { |
|
| 56 | 56 | return new ProductNewToProductBridge($container->getLocator()->product()->queryContainer()); |
| 57 | 57 | }; |
| 58 | 58 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | protected function addCommands(Container $container) |
| 45 | 45 | { |
| 46 | - $container[self::COMMANDS] = function (Container $container) { |
|
| 46 | + $container[self::COMMANDS] = function(Container $container) { |
|
| 47 | 47 | return $this->getConsoleCommands($container); |
| 48 | 48 | }; |
| 49 | 49 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected function addEventSubscriber(Container $container) |
| 69 | 69 | { |
| 70 | - $container[static::EVENT_SUBSCRIBER] = function (Container $container) { |
|
| 70 | + $container[static::EVENT_SUBSCRIBER] = function(Container $container) { |
|
| 71 | 71 | return $this->getEventSubscriber($container); |
| 72 | 72 | }; |
| 73 | 73 | |
@@ -91,11 +91,11 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | protected function addConsoleHookPlugins(Container $container) |
| 93 | 93 | { |
| 94 | - $container[static::PLUGINS_CONSOLE_PRE_RUN_HOOK] = function (Container $container) { |
|
| 94 | + $container[static::PLUGINS_CONSOLE_PRE_RUN_HOOK] = function(Container $container) { |
|
| 95 | 95 | return $this->getConsolePreRunHookPlugins($container); |
| 96 | 96 | }; |
| 97 | 97 | |
| 98 | - $container[static::PLUGINS_CONSOLE_POST_RUN_HOOK] = function (Container $container) { |
|
| 98 | + $container[static::PLUGINS_CONSOLE_POST_RUN_HOOK] = function(Container $container) { |
|
| 99 | 99 | return $this->getConsolePostRunHookPlugins($container); |
| 100 | 100 | }; |
| 101 | 101 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | protected function addServiceProviders(Container $container) |
| 131 | 131 | { |
| 132 | - $container[static::SERVICE_PROVIDERS] = function (Container $container) { |
|
| 132 | + $container[static::SERVICE_PROVIDERS] = function(Container $container) { |
|
| 133 | 133 | return $this->getServiceProviders($container); |
| 134 | 134 | }; |
| 135 | 135 | |
@@ -51,10 +51,10 @@ discard block |
||
| 51 | 51 | ->expects($this->exactly(5)) |
| 52 | 52 | ->method('touchCategoryNodeActive') |
| 53 | 53 | ->withConsecutive( |
| 54 | - [$this->equalTo(static::CATEGORY_NODE_ID_NOTEBOOKS)], // Child |
|
| 54 | + [$this->equalTo(static::CATEGORY_NODE_ID_NOTEBOOKS)], // Child |
|
| 55 | 55 | [$this->equalTo(static::CATEGORY_NODE_ID_PC_WORKSTATIONS)], // Child |
| 56 | - [$this->equalTo(static::CATEGORY_NODE_ID_TABLETS)], // Child |
|
| 57 | - [$this->equalTo(static::CATEGORY_NODE_ID_ROOT)], // Root (Demoshop) |
|
| 56 | + [$this->equalTo(static::CATEGORY_NODE_ID_TABLETS)], // Child |
|
| 57 | + [$this->equalTo(static::CATEGORY_NODE_ID_ROOT)], // Root (Demoshop) |
|
| 58 | 58 | [$this->equalTo(static::CATEGORY_NODE_ID_COMPUTER)] // Self |
| 59 | 59 | ); |
| 60 | 60 | |
@@ -73,11 +73,11 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | $touchedIds = []; |
| 75 | 75 | $expectedTouchedIds = [ |
| 76 | - static::CATEGORY_NODE_ID_CAMERAS_CAMCORDERS, // parent |
|
| 77 | - static::CATEGORY_NODE_ID_ROOT, // root |
|
| 78 | - static::CATEGORY_NODE_ID_TABLETS, // self |
|
| 79 | - static::CATEGORY_NODE_ID_ROOT, // root |
|
| 80 | - static::CATEGORY_NODE_ID_COMPUTER, // parent |
|
| 76 | + static::CATEGORY_NODE_ID_CAMERAS_CAMCORDERS, // parent |
|
| 77 | + static::CATEGORY_NODE_ID_ROOT, // root |
|
| 78 | + static::CATEGORY_NODE_ID_TABLETS, // self |
|
| 79 | + static::CATEGORY_NODE_ID_ROOT, // root |
|
| 80 | + static::CATEGORY_NODE_ID_COMPUTER, // parent |
|
| 81 | 81 | ]; |
| 82 | 82 | |
| 83 | 83 | $toucherMock = $this->createCategoryToucherMock(['touchCategoryNodeActive']); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ->expects($this->exactly(5)) |
| 86 | 86 | ->method('touchCategoryNodeActive') |
| 87 | 87 | ->will($this->returnCallback( |
| 88 | - function ($idTouched) use (&$touchedIds) { |
|
| 88 | + function($idTouched) use (&$touchedIds) { |
|
| 89 | 89 | $touchedIds[] = $idTouched; |
| 90 | 90 | } |
| 91 | 91 | )); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $customerGroupFacade = $this->getCustomerGroupFacade(); |
| 32 | 32 | $customerGroupTransfer = $customerGroupFacade->add($customerGroupTransfer); |
| 33 | 33 | |
| 34 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($customerGroupTransfer) { |
|
| 34 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($customerGroupTransfer) { |
|
| 35 | 35 | $this->cleanupCustomerGroup($customerGroupTransfer->getIdCustomerGroup()); |
| 36 | 36 | }); |
| 37 | 37 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | protected function createExecutionContextMock() |
| 122 | 122 | { |
| 123 | 123 | $executionContextMock = $this->getMockBuilder(ExecutionContextInterface::class) |
| 124 | - ->getMock(); |
|
| 124 | + ->getMock(); |
|
| 125 | 125 | |
| 126 | 126 | $executionContextMock->method('buildViolation') |
| 127 | 127 | ->willReturn($this->createConstraintViolationBuilderMock()); |
@@ -134,8 +134,8 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | protected function createConstraintViolationBuilderMock() |
| 136 | 136 | { |
| 137 | - $constraintViolationBuilderMock = $this->getMockBuilder(ConstraintViolationBuilderInterface::class) |
|
| 138 | - ->getMock(); |
|
| 137 | + $constraintViolationBuilderMock = $this->getMockBuilder(ConstraintViolationBuilderInterface::class) |
|
| 138 | + ->getMock(); |
|
| 139 | 139 | |
| 140 | 140 | $constraintViolationBuilderMock->method('atPath')->willReturnSelf(); |
| 141 | 141 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $salesOrderItemOptionEntityMock |
| 36 | 36 | ->expects($this->exactly(2)) |
| 37 | 37 | ->method('save') |
| 38 | - ->willReturnCallback(function () use ($salesOrderItemOptionEntityMock) { |
|
| 38 | + ->willReturnCallback(function() use ($salesOrderItemOptionEntityMock) { |
|
| 39 | 39 | $salesOrderItemOptionEntityMock->setIdSalesOrderItemOption(1); |
| 40 | 40 | }); |
| 41 | 41 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | 50 | $optionGroupEntityMock = $this->createProductOptionGroupEntityMock(); |
| 51 | - $optionGroupEntityMock->method('save')->willReturnCallback(function () use ($optionGroupEntityMock) { |
|
| 51 | + $optionGroupEntityMock->method('save')->willReturnCallback(function() use ($optionGroupEntityMock) { |
|
| 52 | 52 | $optionGroupEntityMock->setIdProductOptionGroup(1); |
| 53 | 53 | }); |
| 54 | 54 | |
@@ -135,8 +135,8 @@ discard block |
||
| 135 | 135 | protected function createGlossaryKeyEntityMock() |
| 136 | 136 | { |
| 137 | 137 | return $this->getMockBuilder(SpyGlossaryKey::class) |
| 138 | - ->setMethods(['save']) |
|
| 139 | - ->getMock(); |
|
| 138 | + ->setMethods(['save']) |
|
| 139 | + ->getMock(); |
|
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | protected function createGlossaryFacadeMock() |
| 156 | 156 | { |
| 157 | 157 | return $this->getMockBuilder(CmsToGlossaryInterface::class) |
| 158 | - ->getMock(); |
|
| 158 | + ->getMock(); |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |