@@ -34,9 +34,9 @@ |
||
34 | 34 | ->with( |
35 | 35 | json_encode( |
36 | 36 | array( |
37 | - \Ratchet\Wamp\ServerProtocol::MSG_PUBLISH, |
|
38 | - self::TOPIC, |
|
39 | - self::MESSAGE |
|
37 | + \Ratchet\Wamp\ServerProtocol::MSG_PUBLISH, |
|
38 | + self::TOPIC, |
|
39 | + self::MESSAGE |
|
40 | 40 | ) |
41 | 41 | ) |
42 | 42 | ); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $definition->expects($this->any()) |
56 | 56 | ->method('addMethodCall') |
57 | 57 | ->with('markSkipped') |
58 | - ->willReturnCallback(function ($method, array $arguments) use (&$skippedEntityClasses) { |
|
58 | + ->willReturnCallback(function($method, array $arguments) use (&$skippedEntityClasses) { |
|
59 | 59 | $skippedEntityClasses[] = $arguments[0]; |
60 | 60 | }); |
61 | 61 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | if (!empty($tags)) { |
55 | 55 | $userName = $this->getUserName(); |
56 | 56 | $tags = array_map( |
57 | - function ($tag) use ($userName) { |
|
57 | + function($tag) use ($userName) { |
|
58 | 58 | return ['username' => $userName, 'tagname' => $tag]; |
59 | 59 | }, |
60 | 60 | $tags |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | if (!$this->strategyHelper->isGranted('CREATE', 'entity:' . ClassUtils::getClass($entity))) { |
176 | 176 | $error = $this->translator->trans( |
177 | 177 | 'oro.importexport.import.errors.access_denied_entity', |
178 | - ['%entity_name%' => $entityClass,] |
|
178 | + ['%entity_name%' => $entityClass, ] |
|
179 | 179 | ); |
180 | 180 | $this->context->addError($error); |
181 | 181 | |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | if (!$this->strategyHelper->isGranted($permission, $entity)) { |
591 | 591 | $error = $this->translator->trans( |
592 | 592 | 'oro.importexport.import.errors.access_denied_entity', |
593 | - ['%entity_name%' => $entityClass,] |
|
593 | + ['%entity_name%' => $entityClass, ] |
|
594 | 594 | ); |
595 | 595 | $this->context->addError($error); |
596 | 596 |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | */ |
434 | 434 | protected function removedIgnoredColumnsFromData(array &$data, array $ignoredColumns) |
435 | 435 | { |
436 | - array_walk($data, function (array $item, $key) use ($ignoredColumns, &$data) { |
|
436 | + array_walk($data, function(array $item, $key) use ($ignoredColumns, &$data) { |
|
437 | 437 | $data[$key] = array_diff_key($data[$key], array_flip($ignoredColumns)); |
438 | 438 | }); |
439 | 439 | } |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | { |
448 | 448 | $resultData = str_getcsv($content, "\n"); |
449 | 449 | $header = str_getcsv(array_shift($resultData)); |
450 | - array_walk($resultData, function (&$row) use ($header, $resultData) { |
|
450 | + array_walk($resultData, function(&$row) use ($header, $resultData) { |
|
451 | 451 | $row = array_combine($header, str_getcsv($row)); |
452 | 452 | $resultData[] = $row; |
453 | 453 | }); |
@@ -260,7 +260,7 @@ |
||
260 | 260 | ); |
261 | 261 | $this->assertJsonResponseSuccess(); |
262 | 262 | $tmpFiles = glob($tmpDirName . DIRECTORY_SEPARATOR . '*.csv'); |
263 | - $tmpFile = new File($tmpFiles[count($tmpFiles)-1]); |
|
263 | + $tmpFile = new File($tmpFiles[count($tmpFiles) - 1]); |
|
264 | 264 | $this->assertEquals( |
265 | 265 | substr_count(file_get_contents($file), "\n"), |
266 | 266 | substr_count(file_get_contents($tmpFile->getPathname()), "\r\n") |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | ->method('hasOption') |
280 | 280 | ->will( |
281 | 281 | $this->returnCallback( |
282 | - function ($option) use ($options) { |
|
282 | + function($option) use ($options) { |
|
283 | 283 | return isset($options[$option]); |
284 | 284 | } |
285 | 285 | ) |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | ->method('getOption') |
289 | 289 | ->will( |
290 | 290 | $this->returnCallback( |
291 | - function ($option) use ($options) { |
|
291 | + function($option) use ($options) { |
|
292 | 292 | return $options[$option]; |
293 | 293 | } |
294 | 294 | ) |
@@ -104,7 +104,7 @@ |
||
104 | 104 | ImportExportConfiguration::FIELD_IMPORT_ENTITY_LABEL => 'Some Entity', |
105 | 105 | ImportExportConfiguration::FIELD_IMPORT_STRATEGY_TOOLTIP => 'tooltip', |
106 | 106 | ImportExportConfiguration::FIELD_IMPORT_PROCESSORS_TO_CONFIRMATION_MESSAGE => ['key' => 'value'], |
107 | - ImportExportConfiguration::FIELD_IMPORT_ADDITIONAL_NOTICES => ['value1','value2'] |
|
107 | + ImportExportConfiguration::FIELD_IMPORT_ADDITIONAL_NOTICES => ['value1', 'value2'] |
|
108 | 108 | ]; |
109 | 109 | } |
110 | 110 | } |
@@ -282,7 +282,7 @@ |
||
282 | 282 | 'body' => [ |
283 | 283 | 'originFileName' => 'test.csv', |
284 | 284 | 'error' => 'The import file could not be imported due to a fatal error. ' . |
285 | - 'Please check its integrity and try again!', |
|
285 | + 'Please check its integrity and try again!', |
|
286 | 286 | ], |
287 | 287 | 'contentType' => 'text/html', |
288 | 288 | ] |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | ->method('runUnique') |
363 | 363 | ->with(1, 'oro:import:processor_test:test_import:1') |
364 | 364 | ->will( |
365 | - $this->returnCallback(function ($jobId, $name, $callback) use ($jobRunner, $childJob) { |
|
365 | + $this->returnCallback(function($jobId, $name, $callback) use ($jobRunner, $childJob) { |
|
366 | 366 | return $callback($jobRunner, $childJob); |
367 | 367 | }) |
368 | 368 | ); |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | ->method('createDelayed') |
373 | 373 | ->with('oro:import:processor_test:test_import:1:chunk.1') |
374 | 374 | ->will( |
375 | - $this->returnCallback(function ($jobId, $callback) use ($jobRunner, $childJob1) { |
|
375 | + $this->returnCallback(function($jobId, $callback) use ($jobRunner, $childJob1) { |
|
376 | 376 | return $callback($jobRunner, $childJob1); |
377 | 377 | }) |
378 | 378 | ); |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | ->method('createDelayed') |
383 | 383 | ->with('oro:import:processor_test:test_import:1:chunk.2') |
384 | 384 | ->will( |
385 | - $this->returnCallback(function ($jobId, $callback) use ($jobRunner, $childJob2) { |
|
385 | + $this->returnCallback(function($jobId, $callback) use ($jobRunner, $childJob2) { |
|
386 | 386 | return $callback($jobRunner, $childJob2); |
387 | 387 | }) |
388 | 388 | ); |