@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | $formatedTime = clone $dateTime; |
44 | 44 | |
45 | - $minutes = (int) $dateTime->format('i'); |
|
45 | + $minutes = (int)$dateTime->format('i'); |
|
46 | 46 | if ($minutes >= 15 && $minutes < 45) { |
47 | 47 | $minutes = '30'; |
48 | 48 | } else { |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | |
696 | 696 | $crawler = new Crawler($row->getHtml()); |
697 | 697 | /** @var Crawler[] $columns */ |
698 | - $columns = $crawler->filter('td')->each(function (Crawler $td) { |
|
698 | + $columns = $crawler->filter('td')->each(function(Crawler $td) { |
|
699 | 699 | return $td; |
700 | 700 | }); |
701 | 701 | |
@@ -935,7 +935,7 @@ discard block |
||
935 | 935 | { |
936 | 936 | $hints = array_filter( |
937 | 937 | array_map( |
938 | - function ($item) { |
|
938 | + function($item) { |
|
939 | 939 | $label = trim($this->createElement('GridFilterHintLabel', $item)->getText()); |
940 | 940 | $text = trim($this->createElement('GridFilterHint', $item)->getText()); |
941 | 941 | |
@@ -1079,7 +1079,7 @@ discard block |
||
1079 | 1079 | $row = $grid->getRowByNumber($number); |
1080 | 1080 | |
1081 | 1081 | $actions = array_map( |
1082 | - function (Element $action) { |
|
1082 | + function(Element $action) { |
|
1083 | 1083 | return $action->getText() ?: $action->getAttribute('title'); |
1084 | 1084 | }, |
1085 | 1085 | $row->getActionLinks() |
@@ -116,7 +116,7 @@ |
||
116 | 116 | 'readsCount' => $readsCount, |
117 | 117 | 'errorsCount' => $errorsCount, |
118 | 118 | 'errors' => $errors |
119 | - ]; |
|
119 | + ]; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -141,7 +141,7 @@ |
||
141 | 141 | */ |
142 | 142 | public function getExportingEntityIds(DatagridExportIdFetcher $idFetcher, array $parameters) |
143 | 143 | { |
144 | - $context = new Context($parameters); |
|
144 | + $context = new Context($parameters); |
|
145 | 145 | $idFetcher->setImportExportContext($context); |
146 | 146 | |
147 | 147 | return $idFetcher->getGridDataIds(); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $greetingKey = 'oro_user.greeting'; |
197 | 197 | $levelKey = 'oro_user.level'; |
198 | 198 | |
199 | - $data = [ |
|
199 | + $data = [ |
|
200 | 200 | 'oro_user___greeting' => [ |
201 | 201 | 'value' => 'updated value', |
202 | 202 | 'use_parent_scope_value' => false |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | [ConfigSettingsUpdateEvent::BEFORE_SAVE . '.' . $levelKey, $singleKeyLevelEvent], |
267 | 267 | [ConfigSettingsUpdateEvent::BEFORE_SAVE, $beforeEvent], |
268 | 268 | [ConfigGetEvent::NAME, $levelNullValueLoadEvent], |
269 | - [ConfigGetEvent::NAME . '.' . $levelKey, $levelNullValueLoadEvent], |
|
269 | + [ConfigGetEvent::NAME . '.' . $levelKey, $levelNullValueLoadEvent], |
|
270 | 270 | [ConfigUpdateEvent::EVENT_NAME, $afterEvent] |
271 | 271 | ); |
272 | 272 | |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | $this->globalScopeManager->expects($this->once()) |
313 | 313 | ->method('getSettingValue') |
314 | 314 | ->with($parameterName) |
315 | - ->willReturnCallback(function ($name) { |
|
315 | + ->willReturnCallback(function($name) { |
|
316 | 316 | if ($name === 'oro_test.someArrayValue') { |
317 | 317 | $value = [ |
318 | 318 | 'scope' => 'global', |
@@ -128,7 +128,7 @@ |
||
128 | 128 | ->method('getAttribute') |
129 | 129 | ->with('handler') |
130 | 130 | ->willReturn( |
131 | - function ($manager, $changes) use ($changeSet, &$isAdditionalHandlerCalled) { |
|
131 | + function($manager, $changes) use ($changeSet, &$isAdditionalHandlerCalled) { |
|
132 | 132 | self::assertSame($this->configManager, $manager); |
133 | 133 | self::assertSame($changeSet, $changes); |
134 | 134 | $isAdditionalHandlerCalled = true; |
@@ -364,13 +364,13 @@ |
||
364 | 364 | } |
365 | 365 | |
366 | 366 | // get the value part only (if full) |
367 | - $currentValue = (array) $this->getPlainValue($value, $full); |
|
367 | + $currentValue = (array)$this->getPlainValue($value, $full); |
|
368 | 368 | |
369 | 369 | // merge missing sub-values with those defined in the parent scopes |
370 | 370 | $managers = $this->getScopeManagersToGetValue(false); |
371 | 371 | foreach ($managers as $scopeName => $manager) { |
372 | 372 | $scopeValue = $manager->getSettingValue($name, $full, $scopeIdentifier); |
373 | - $currentValue = array_merge((array) $this->getPlainValue($scopeValue, $full), $currentValue); |
|
373 | + $currentValue = array_merge((array)$this->getPlainValue($scopeValue, $full), $currentValue); |
|
374 | 374 | } |
375 | 375 | |
376 | 376 | return $this->updateWithPlainValue($value, $currentValue, $full); |
@@ -321,7 +321,7 @@ |
||
321 | 321 | $this->doctrineHelper->expects($this->any()) |
322 | 322 | ->method('getEntityClass') |
323 | 323 | ->willReturnCallback( |
324 | - function ($entity) use ($testEntity) { |
|
324 | + function($entity) use ($testEntity) { |
|
325 | 325 | if ($entity === $testEntity) { |
326 | 326 | return 'Test\Entity'; |
327 | 327 | } |
@@ -312,7 +312,7 @@ |
||
312 | 312 | case 'two': |
313 | 313 | return 2; |
314 | 314 | default: |
315 | - return (int) $count; |
|
315 | + return (int)$count; |
|
316 | 316 | } |
317 | 317 | } |
318 | 318 | } |
@@ -288,28 +288,28 @@ |
||
288 | 288 | $container->expects($this->any()) |
289 | 289 | ->method('hasDefinition') |
290 | 290 | ->willReturnCallback( |
291 | - function ($id) use ($definitions) { |
|
291 | + function($id) use ($definitions) { |
|
292 | 292 | return !empty($definitions[$id]); |
293 | 293 | } |
294 | 294 | ); |
295 | 295 | $container->expects($this->any()) |
296 | 296 | ->method('getDefinition') |
297 | 297 | ->willReturnCallback( |
298 | - function ($id) use ($definitions) { |
|
298 | + function($id) use ($definitions) { |
|
299 | 299 | return $definitions[$id]; |
300 | 300 | } |
301 | 301 | ); |
302 | 302 | $container->expects($this->any()) |
303 | 303 | ->method('hasParameter') |
304 | 304 | ->willReturnCallback( |
305 | - function ($id) use ($parameters) { |
|
305 | + function($id) use ($parameters) { |
|
306 | 306 | return !empty($parameters[$id]); |
307 | 307 | } |
308 | 308 | ); |
309 | 309 | $container->expects($this->any()) |
310 | 310 | ->method('getParameter') |
311 | 311 | ->willReturnCallback( |
312 | - function ($id) use ($parameters) { |
|
312 | + function($id) use ($parameters) { |
|
313 | 313 | return $parameters[$id]; |
314 | 314 | } |
315 | 315 | ); |