@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | ->expects(self::once()) |
| 116 | 116 | ->method('runUnique') |
| 117 | 117 | ->with($messageId, $jobName) |
| 118 | - ->will(self::returnCallback(function ($ownerId, $name, $callback) use ($jobRunner) { |
|
| 118 | + ->will(self::returnCallback(function($ownerId, $name, $callback) use ($jobRunner) { |
|
| 119 | 119 | $callback($jobRunner); |
| 120 | 120 | |
| 121 | 121 | return true; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | ->expects(self::once()) |
| 125 | 125 | ->method('createDelayed') |
| 126 | 126 | ->with($jobName . '.delayed') |
| 127 | - ->will(self::returnCallback(function ($name, $callback) use ($jobRunner, $jobId) { |
|
| 127 | + ->will(self::returnCallback(function($name, $callback) use ($jobRunner, $jobId) { |
|
| 128 | 128 | $job = new Job(); |
| 129 | 129 | $job->setId($jobId); |
| 130 | 130 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | ->expects(self::once()) |
| 41 | 41 | ->method('info') |
| 42 | 42 | ->with( |
| 43 | - 'Ran command '.$testCommandName.'. Got output '.$testCommandOutput, |
|
| 43 | + 'Ran command ' . $testCommandName . '. Got output ' . $testCommandOutput, |
|
| 44 | 44 | [ |
| 45 | 45 | 'command' => $testCommandName, |
| 46 | 46 | 'arguments' => [], |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $jobRunner |
| 53 | 53 | ->expects(self::once()) |
| 54 | 54 | ->method('runDelayed') |
| 55 | - ->will(self::returnCallback(function ($ownerId, $callback) use ($jobRunner) { |
|
| 55 | + ->will(self::returnCallback(function($ownerId, $callback) use ($jobRunner) { |
|
| 56 | 56 | $callback($jobRunner); |
| 57 | 57 | |
| 58 | 58 | return true; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | ->expects(self::once()) |
| 88 | 88 | ->method('info') |
| 89 | 89 | ->with( |
| 90 | - 'Ran command '.$testCommandName.'. Got output '.$testCommandOutput, |
|
| 90 | + 'Ran command ' . $testCommandName . '. Got output ' . $testCommandOutput, |
|
| 91 | 91 | [ |
| 92 | 92 | 'command' => $testCommandName, |
| 93 | 93 | 'arguments' => $testArguments, |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $jobRunner |
| 100 | 100 | ->expects(self::once()) |
| 101 | 101 | ->method('runDelayed') |
| 102 | - ->will(self::returnCallback(function ($ownerId, $callback) use ($jobRunner) { |
|
| 102 | + ->will(self::returnCallback(function($ownerId, $callback) use ($jobRunner) { |
|
| 103 | 103 | $callback($jobRunner); |
| 104 | 104 | |
| 105 | 105 | return true; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | $jobName = sprintf('oro:cron:run_command:%s', $body['command']); |
| 91 | 91 | if ($commandArguments) { |
| 92 | - array_walk($commandArguments, function ($item, $key) use (&$jobName) { |
|
| 92 | + array_walk($commandArguments, function($item, $key) use (&$jobName) { |
|
| 93 | 93 | if (is_array($item)) { |
| 94 | 94 | $item = implode(',', $item); |
| 95 | 95 | } |
@@ -98,13 +98,13 @@ discard block |
||
| 98 | 98 | }); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - $result = $this->jobRunner->runUnique( |
|
| 101 | + $result = $this->jobRunner->runUnique( |
|
| 102 | 102 | $ownerId, |
| 103 | 103 | $jobName, |
| 104 | - function (JobRunner $jobRunner) use ($body, $commandArguments, $jobName) { |
|
| 104 | + function(JobRunner $jobRunner) use ($body, $commandArguments, $jobName) { |
|
| 105 | 105 | $jobRunner->createDelayed( |
| 106 | 106 | $jobName . '.delayed', |
| 107 | - function (JobRunner $jobRunner, Job $child) use ($body) { |
|
| 107 | + function(JobRunner $jobRunner, Job $child) use ($body) { |
|
| 108 | 108 | $body['jobId'] = $child->getId(); |
| 109 | 109 | $this->producer->send( |
| 110 | 110 | Topics::RUN_COMMAND_DELAYED, |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | { |
| 91 | 91 | $result = $this->jobRunner->runDelayed( |
| 92 | 92 | $body['jobId'], |
| 93 | - function () use ($commandName, $commandArguments) { |
|
| 93 | + function() use ($commandName, $commandArguments) { |
|
| 94 | 94 | $output = $this->commandRunner->run($commandName, $commandArguments); |
| 95 | 95 | $this->logger->info( |
| 96 | 96 | sprintf( |
@@ -84,12 +84,12 @@ |
||
| 84 | 84 | ->willReturn(true); |
| 85 | 85 | $this->translator->expects(self::any()) |
| 86 | 86 | ->method('trans') |
| 87 | - ->willReturnCallback(function ($label) { |
|
| 87 | + ->willReturnCallback(function($label) { |
|
| 88 | 88 | return 'trans' . $label; |
| 89 | 89 | }); |
| 90 | 90 | $this->assetHelper->expects(self::any()) |
| 91 | 91 | ->method('getUrl') |
| 92 | - ->willReturnCallback(function ($icon) { |
|
| 92 | + ->willReturnCallback(function($icon) { |
|
| 93 | 93 | return '/' . $icon; |
| 94 | 94 | }); |
| 95 | 95 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | new YamlCumulativeFileLoader('Resources/public/sidebar_widgets/{folder}/widget.yml') |
| 55 | 55 | ) |
| 56 | 56 | ); |
| 57 | - $resources = $configLoader->load($container); |
|
| 57 | + $resources = $configLoader->load($container); |
|
| 58 | 58 | foreach ($resources as $resource) { |
| 59 | 59 | $result[basename(dirname($resource->path))] = $resource->data; |
| 60 | 60 | } |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | protected function normalizeLoadedData() |
| 179 | 179 | { |
| 180 | 180 | // strip whitespace from the beginning and end of descriptions |
| 181 | - array_walk_recursive($this->loadedData, function (&$element) { |
|
| 181 | + array_walk_recursive($this->loadedData, function(&$element) { |
|
| 182 | 182 | if (is_string($element) && $element) { |
| 183 | 183 | $element = trim($element); |
| 184 | 184 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $this->containerBuilder->expects($this->exactly(5)) |
| 92 | 92 | ->method('findDefinition') |
| 93 | - ->will($this->returnCallback(function ($handlerId) { |
|
| 93 | + ->will($this->returnCallback(function($handlerId) { |
|
| 94 | 94 | switch ($handlerId) { |
| 95 | 95 | case 'monolog.logger': |
| 96 | 96 | $logger = $this->createMock(Definition::class); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | $this->containerBuilder->expects($this->exactly(6)) |
| 170 | 170 | ->method('findDefinition') |
| 171 | - ->will($this->returnCallback(function ($handlerId) { |
|
| 171 | + ->will($this->returnCallback(function($handlerId) { |
|
| 172 | 172 | switch ($handlerId) { |
| 173 | 173 | case 'monolog.logger': |
| 174 | 174 | case 'monolog.logger.doctrine': |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | $handler = $this->createMock(Definition::class); |
| 237 | 237 | $handler->expects($this->once()) |
| 238 | 238 | ->method('addMethodCall') |
| 239 | - ->with('setHandler', $this->callback(function ($args) { |
|
| 239 | + ->with('setHandler', $this->callback(function($args) { |
|
| 240 | 240 | return (string)$args[0] == 'monolog.handler.detailed_logs_nested'; |
| 241 | 241 | })); |
| 242 | 242 | return $handler; |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | |
| 268 | 268 | $this->containerBuilder->expects($this->exactly(2)) |
| 269 | 269 | ->method('findDefinition') |
| 270 | - ->will($this->returnCallback(function ($handlerId) { |
|
| 270 | + ->will($this->returnCallback(function($handlerId) { |
|
| 271 | 271 | switch ($handlerId) { |
| 272 | 272 | case 'monolog.logger': |
| 273 | 273 | $detailedLogsHandlerReference = $this->createMock(Reference::class); |
@@ -365,7 +365,7 @@ |
||
| 365 | 365 | */ |
| 366 | 366 | public function toString() |
| 367 | 367 | { |
| 368 | - return 'code:'.$this->getCode(); |
|
| 368 | + return 'code:' . $this->getCode(); |
|
| 369 | 369 | } |
| 370 | 370 | |
| 371 | 371 | /** |