@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $this->translationManager->expects($this->any()) |
78 | 78 | ->method('findTranslationKey') |
79 | 79 | ->willReturnCallback( |
80 | - function ($key, $domain) use (&$findTranslationKeys) { |
|
80 | + function($key, $domain) use (&$findTranslationKeys) { |
|
81 | 81 | $this->assertEquals(WorkflowTranslationHelper::TRANSLATION_DOMAIN, $domain); |
82 | 82 | |
83 | 83 | $findTranslationKeys[] = $key; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $this->translationManager->expects($this->any()) |
88 | 88 | ->method('removeTranslationKey') |
89 | 89 | ->willReturnCallback( |
90 | - function ($key, $domain) use (&$removeTranslationKeys) { |
|
90 | + function($key, $domain) use (&$removeTranslationKeys) { |
|
91 | 91 | $this->assertEquals(WorkflowTranslationHelper::TRANSLATION_DOMAIN, $domain); |
92 | 92 | |
93 | 93 | $removeTranslationKeys[] = $key; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | if (in_array(strtolower($workflowVariable->getType()), ['bool', 'boolean'], true)) { |
41 | - $key = $value ? 'Yes' : 'No'; |
|
41 | + $key = $value ? 'Yes' : 'No'; |
|
42 | 42 | |
43 | 43 | return $this->translator->trans($key); |
44 | 44 | } |
@@ -218,7 +218,7 @@ |
||
218 | 218 | $data['workflowsToDeactivation'], |
219 | 219 | $helper->getWorkflowsToDeactivation($workflowDefinition) |
220 | 220 | ->map( |
221 | - function (Workflow $workflow) { |
|
221 | + function(Workflow $workflow) { |
|
222 | 222 | return $workflow->getName(); |
223 | 223 | } |
224 | 224 | )->getValues() |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $definition->getExclusiveActiveGroups() |
63 | 63 | ); |
64 | 64 | |
65 | - $conflictingWorkflows = $storedWorkflows->filter(function (Workflow $workflow) use ($definition) { |
|
65 | + $conflictingWorkflows = $storedWorkflows->filter(function(Workflow $workflow) use ($definition) { |
|
66 | 66 | return $definition->getName() !== $workflow->getName(); |
67 | 67 | }); |
68 | 68 |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | */ |
611 | 611 | public function setScheduleCron($cron) |
612 | 612 | { |
613 | - $this->scheduleCron = (string) $cron; |
|
613 | + $this->scheduleCron = (string)$cron; |
|
614 | 614 | |
615 | 615 | return $this; |
616 | 616 | } |
@@ -629,7 +629,7 @@ discard block |
||
629 | 629 | */ |
630 | 630 | public function setScheduleFilter($dqlFilter) |
631 | 631 | { |
632 | - $this->scheduleFilter = (string) $dqlFilter; |
|
632 | + $this->scheduleFilter = (string)$dqlFilter; |
|
633 | 633 | |
634 | 634 | return $this; |
635 | 635 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | ->withAnyParameters() |
138 | 138 | ->will( |
139 | 139 | $this->returnCallback( |
140 | - function () use (&$options) { |
|
140 | + function() use (&$options) { |
|
141 | 141 | return $options; |
142 | 142 | } |
143 | 143 | ) |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | |
227 | 227 | $this->setIteratedResultMock(); |
228 | 228 | $this->optionsArray['entity_name'] = 'AccountTestEntityName'; |
229 | - $callback = function ($param) use ($expectedIdFirst, $expectedIdSecond) { |
|
229 | + $callback = function($param) use ($expectedIdFirst, $expectedIdSecond) { |
|
230 | 230 | return $param[0] == $expectedIdFirst && $param[1] == $expectedIdSecond; |
231 | 231 | }; |
232 | 232 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | |
98 | 98 | try { |
99 | 99 | $this->getEntityManager()->transactional( |
100 | - function () use ($merger, $entityData) { |
|
100 | + function() use ($merger, $entityData) { |
|
101 | 101 | $merger->merge($entityData); |
102 | 102 | } |
103 | 103 | ); |
@@ -147,7 +147,7 @@ |
||
147 | 147 | */ |
148 | 148 | public function json() |
149 | 149 | { |
150 | - $data = json_decode((string) $this->body, true); |
|
150 | + $data = json_decode((string)$this->body, true); |
|
151 | 151 | if (JSON_ERROR_NONE !== json_last_error()) { |
152 | 152 | $exception = new \RuntimeException('Unable to parse response body into JSON: ' . json_last_error()); |
153 | 153 | throw new RestException( |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | protected function isEnabled(array $configuration) |
53 | 53 | { |
54 | - return (bool) $configuration['enabled']; |
|
54 | + return (bool)$configuration['enabled']; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |