@@ -66,7 +66,7 @@ |
||
66 | 66 | public function getActiveProcesses() |
67 | 67 | { |
68 | 68 | return [ |
69 | - 'TestProcess', |
|
69 | + 'TestProcess', |
|
70 | 70 | ]; |
71 | 71 | } |
72 | 72 |
@@ -94,16 +94,16 @@ |
||
94 | 94 | $container = new Container(); |
95 | 95 | $container[StateMachineDependencyProvider::PLUGINS_STATE_MACHINE_HANDLERS] = function () use ($stateMachineHandler) { |
96 | 96 | return [ |
97 | - $stateMachineHandler, |
|
97 | + $stateMachineHandler, |
|
98 | 98 | ]; |
99 | 99 | }; |
100 | 100 | |
101 | 101 | $container[StateMachineDependencyProvider::PLUGIN_GRAPH] = function () { |
102 | - return new GraphPlugin(); |
|
102 | + return new GraphPlugin(); |
|
103 | 103 | }; |
104 | 104 | |
105 | 105 | $container[StateMachineDependencyProvider::SERVICE_NETWORK] = function () { |
106 | - return new UtilNetworkService(); |
|
106 | + return new UtilNetworkService(); |
|
107 | 107 | }; |
108 | 108 | |
109 | 109 | $stateMachineBusinessFactory->setContainer($container); |
@@ -92,17 +92,17 @@ |
||
92 | 92 | $stateMachineBusinessFactory->setConfig($stateMachineConfig); |
93 | 93 | |
94 | 94 | $container = new Container(); |
95 | - $container[StateMachineDependencyProvider::PLUGINS_STATE_MACHINE_HANDLERS] = function () use ($stateMachineHandler) { |
|
95 | + $container[StateMachineDependencyProvider::PLUGINS_STATE_MACHINE_HANDLERS] = function() use ($stateMachineHandler) { |
|
96 | 96 | return [ |
97 | 97 | $stateMachineHandler, |
98 | 98 | ]; |
99 | 99 | }; |
100 | 100 | |
101 | - $container[StateMachineDependencyProvider::PLUGIN_GRAPH] = function () { |
|
101 | + $container[StateMachineDependencyProvider::PLUGIN_GRAPH] = function() { |
|
102 | 102 | return new GraphPlugin(); |
103 | 103 | }; |
104 | 104 | |
105 | - $container[StateMachineDependencyProvider::SERVICE_NETWORK] = function () { |
|
105 | + $container[StateMachineDependencyProvider::SERVICE_NETWORK] = function() { |
|
106 | 106 | return new UtilNetworkService(); |
107 | 107 | }; |
108 | 108 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $stateMachinePersistenceMock->expects($this->once()) |
58 | 58 | ->method('updateStateMachineItemsFromPersistence') |
59 | 59 | ->willReturnCallback( |
60 | - function ($stateMachineItems) { |
|
60 | + function($stateMachineItems) { |
|
61 | 61 | return $stateMachineItems; |
62 | 62 | } |
63 | 63 | ); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | $stateMachinePersistenceMock->expects($this->once()) |
325 | 325 | ->method('updateStateMachineItemsFromPersistence') |
326 | 326 | ->willReturnCallback( |
327 | - function ($stateMachineItems) { |
|
327 | + function($stateMachineItems) { |
|
328 | 328 | return $stateMachineItems; |
329 | 329 | } |
330 | 330 | ); |
@@ -70,10 +70,10 @@ |
||
70 | 70 | public function testGetManualEventsForStateMachineItemsShouldReturnManualEventsForGivenItems() |
71 | 71 | { |
72 | 72 | $manualEvents = [ |
73 | - 'state name' => [ |
|
74 | - 'event1', |
|
75 | - 'event2', |
|
76 | - ], |
|
73 | + 'state name' => [ |
|
74 | + 'event1', |
|
75 | + 'event2', |
|
76 | + ], |
|
77 | 77 | ]; |
78 | 78 | |
79 | 79 | $processMock = $this->createProcessMock(); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function saveItemsMetadata(QuoteTransfer $quoteTransfer) |
52 | 52 | { |
53 | - $this->handleDatabaseTransaction(function () use ($quoteTransfer) { |
|
53 | + $this->handleDatabaseTransaction(function() use ($quoteTransfer) { |
|
54 | 54 | foreach ($quoteTransfer->getItems() as $item) { |
55 | 55 | $this->saveItemMetadata($item); |
56 | 56 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function provideBusinessLayerDependencies(Container $container) |
28 | 28 | { |
29 | - $container[self::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
29 | + $container[self::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
30 | 30 | return new SalesProductConnectorToUtilEncodingBridge($container->getLocator()->utilEncoding()->service()); |
31 | 31 | }; |
32 | 32 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function providePersistenceLayerDependencies(Container $container) |
42 | 42 | { |
43 | - $container[self::QUERY_CONTAINER_PRODUCT] = function (Container $container) { |
|
43 | + $container[self::QUERY_CONTAINER_PRODUCT] = function(Container $container) { |
|
44 | 44 | return new ProductToSalesProductConnectorQueryContainerBridge($container->getLocator()->product()->queryContainer()); |
45 | 45 | }; |
46 | 46 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | "1": "one", |
30 | 30 | "2": "two" |
31 | 31 | } |
32 | -JSON; |
|
32 | +json; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @var array |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function fillNullValues($hasQueryParameter, array $mca) |
44 | 44 | { |
45 | - $mapCallback = function ($value) use ($hasQueryParameter) { |
|
45 | + $mapCallback = function($value) use ($hasQueryParameter) { |
|
46 | 46 | return ($value) ?: (($hasQueryParameter) ? 'index' : null); |
47 | 47 | }; |
48 | 48 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | protected function removeNullValues(array $mca) |
59 | 59 | { |
60 | - $filterCallback = function ($value) { |
|
60 | + $filterCallback = function($value) { |
|
61 | 61 | return $value !== null; |
62 | 62 | }; |
63 | 63 |
@@ -37,39 +37,39 @@ |
||
37 | 37 | */ |
38 | 38 | public function provideBusinessLayerDependencies(Container $container) |
39 | 39 | { |
40 | - $container[self::FACADE_LOCALE] = function (Container $container) { |
|
40 | + $container[self::FACADE_LOCALE] = function(Container $container) { |
|
41 | 41 | return new UrlToLocaleBridge($container->getLocator()->locale()->facade()); |
42 | 42 | }; |
43 | 43 | |
44 | - $container[self::FACADE_TOUCH] = function (Container $container) { |
|
44 | + $container[self::FACADE_TOUCH] = function(Container $container) { |
|
45 | 45 | return new UrlToTouchBridge($container->getLocator()->touch()->facade()); |
46 | 46 | }; |
47 | 47 | |
48 | - $container[self::PLUGIN_PROPEL_CONNECTION] = function () { |
|
48 | + $container[self::PLUGIN_PROPEL_CONNECTION] = function() { |
|
49 | 49 | return Propel::getConnection(); |
50 | 50 | }; |
51 | 51 | |
52 | - $container[self::PLUGINS_URL_BEFORE_CREATE] = function () { |
|
52 | + $container[self::PLUGINS_URL_BEFORE_CREATE] = function() { |
|
53 | 53 | return $this->getUrlBeforeCreatePlugins(); |
54 | 54 | }; |
55 | 55 | |
56 | - $container[self::PLUGINS_URL_AFTER_CREATE] = function () { |
|
56 | + $container[self::PLUGINS_URL_AFTER_CREATE] = function() { |
|
57 | 57 | return $this->getUrlAfterCreatePlugins(); |
58 | 58 | }; |
59 | 59 | |
60 | - $container[self::PLUGINS_URL_BEFORE_UPDATE] = function () { |
|
60 | + $container[self::PLUGINS_URL_BEFORE_UPDATE] = function() { |
|
61 | 61 | return $this->getUrlBeforeUpdatePlugins(); |
62 | 62 | }; |
63 | 63 | |
64 | - $container[self::PLUGINS_URL_AFTER_UPDATE] = function () { |
|
64 | + $container[self::PLUGINS_URL_AFTER_UPDATE] = function() { |
|
65 | 65 | return $this->getUrlAfterUpdatePlugins(); |
66 | 66 | }; |
67 | 67 | |
68 | - $container[self::PLUGINS_URL_BEFORE_DELETE] = function () { |
|
68 | + $container[self::PLUGINS_URL_BEFORE_DELETE] = function() { |
|
69 | 69 | return $this->getUrlBeforeDeletePlugins(); |
70 | 70 | }; |
71 | 71 | |
72 | - $container[self::PLUGINS_URL_AFTER_DELETE] = function () { |
|
72 | + $container[self::PLUGINS_URL_AFTER_DELETE] = function() { |
|
73 | 73 | return $this->getUrlAfterDeletePlugins(); |
74 | 74 | }; |
75 | 75 |