@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | $this->datagrid->expects($this->any()) |
| 72 | 72 | ->method('getParameters') |
| 73 | - ->will($this->returnValue($this->createParameterBag(['channelIds' => 100 ]))); |
|
| 73 | + ->will($this->returnValue($this->createParameterBag(['channelIds' => 100]))); |
|
| 74 | 74 | |
| 75 | 75 | $this->qb->expects($this->never()) |
| 76 | 76 | ->method('andWhere') |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | ->method('get') |
| 118 | 118 | ->will( |
| 119 | 119 | $this->returnCallback( |
| 120 | - function ($key) use ($data) { |
|
| 120 | + function($key) use ($data) { |
|
| 121 | 121 | return $data[$key]; |
| 122 | 122 | } |
| 123 | 123 | ) |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | $this->equalTo(ProcessorRegistry::TYPE_IMPORT), |
| 142 | 142 | $this->equalTo('test job'), |
| 143 | 143 | $this->callback( |
| 144 | - function (array $config) use ($expectedConfig) { |
|
| 144 | + function(array $config) use ($expectedConfig) { |
|
| 145 | 145 | // dictionary |
| 146 | 146 | if (!array_key_exists('initialSyncInterval', $config)) { |
| 147 | 147 | return true; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | protected function setUp() |
| 24 | 24 | { |
| 25 | - $this->client = $this->getMockBuilder('Oro\Bundle\IntegrationBundle\Provider\Rest\Client\RestClientInterface') |
|
| 25 | + $this->client = $this->getMockBuilder('Oro\Bundle\IntegrationBundle\Provider\Rest\Client\RestClientInterface') |
|
| 26 | 26 | ->disableOriginalConstructor() |
| 27 | 27 | ->getMock(); |
| 28 | 28 | |
@@ -97,18 +97,18 @@ |
||
| 97 | 97 | }); |
| 98 | 98 | |
| 99 | 99 | $this->form |
| 100 | - ->expects($this->once()) |
|
| 101 | - ->method('getData') |
|
| 102 | - ->willReturn($this->transportEntity); |
|
| 100 | + ->expects($this->once()) |
|
| 101 | + ->method('getData') |
|
| 102 | + ->willReturn($this->transportEntity); |
|
| 103 | 103 | |
| 104 | 104 | $this->form |
| 105 | - ->expects($this->once()) |
|
| 106 | - ->method('handleRequest'); |
|
| 105 | + ->expects($this->once()) |
|
| 106 | + ->method('handleRequest'); |
|
| 107 | 107 | |
| 108 | 108 | $this->formFactory |
| 109 | - ->expects($this->once()) |
|
| 110 | - ->method('createNamed') |
|
| 111 | - ->willReturn($this->form); |
|
| 109 | + ->expects($this->once()) |
|
| 110 | + ->method('createNamed') |
|
| 111 | + ->willReturn($this->form); |
|
| 112 | 112 | |
| 113 | 113 | $transport = $this->createMock(MagentoTransportInterface::class); |
| 114 | 114 | $transport->method('getSettingsEntityFQCN')->willReturn($fqcn); |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | $this->request |
| 89 | 89 | ->expects($this->once()) |
| 90 | 90 | ->method('get') |
| 91 | - ->willReturnCallback(function ($arg) use ($entityId, $doFind) { |
|
| 91 | + ->willReturnCallback(function($arg) use ($entityId, $doFind) { |
|
| 92 | 92 | if ($arg === 'id' && $doFind) { |
| 93 | 93 | return $entityId; |
| 94 | 94 | } |
@@ -25,9 +25,9 @@ discard block |
||
| 25 | 25 | $this->translator = $this->createMock(Translator::class); |
| 26 | 26 | |
| 27 | 27 | $this->translator |
| 28 | - ->expects($this->any()) |
|
| 29 | - ->method('trans') |
|
| 30 | - ->will($this->returnArgument(0)); |
|
| 28 | + ->expects($this->any()) |
|
| 29 | + ->method('trans') |
|
| 30 | + ->will($this->returnArgument(0)); |
|
| 31 | 31 | |
| 32 | 32 | $this->connectorChoicesProvider = new ConnectorChoicesProvider( |
| 33 | 33 | $this->typesRegistry, |
@@ -51,9 +51,9 @@ discard block |
||
| 51 | 51 | $expected = ['test' => 'test']; |
| 52 | 52 | |
| 53 | 53 | $this->typesRegistry |
| 54 | - ->expects($this->once()) |
|
| 55 | - ->method('getAvailableConnectorsTypesChoiceList') |
|
| 56 | - ->willReturn($expected); |
|
| 54 | + ->expects($this->once()) |
|
| 55 | + ->method('getAvailableConnectorsTypesChoiceList') |
|
| 56 | + ->willReturn($expected); |
|
| 57 | 57 | |
| 58 | 58 | $choices = $this->connectorChoicesProvider->getAllowedConnectorsChoices(true, true, 'magento'); |
| 59 | 59 | $this->assertEquals( |
@@ -304,10 +304,10 @@ |
||
| 304 | 304 | |
| 305 | 305 | /** @var \PHPUnit_Framework_MockObject_MockObject|Transport $transportSettings */ |
| 306 | 306 | $transportSettings = $this->getMockForAbstractClass('Oro\\Bundle\\IntegrationBundle\\Entity\\Transport'); |
| 307 | - $channel = $channel ? : new Channel(); |
|
| 307 | + $channel = $channel ?: new Channel(); |
|
| 308 | 308 | $channel->setTransport($transportSettings); |
| 309 | 309 | |
| 310 | - $contextMock = $context ? : new Context([]); |
|
| 310 | + $contextMock = $context ?: new Context([]); |
|
| 311 | 311 | |
| 312 | 312 | $executionContext = new ExecutionContext(); |
| 313 | 313 | $stepExecutionMock->expects($this->any()) |
@@ -116,8 +116,8 @@ |
||
| 116 | 116 | ); |
| 117 | 117 | |
| 118 | 118 | $this->parameterBag->add([ |
| 119 | - RestTokenProvider::USER_KEY => 'api_user', |
|
| 120 | - RestTokenProvider::PASSWORD_KEY => 'api_key' |
|
| 119 | + RestTokenProvider::USER_KEY => 'api_user', |
|
| 120 | + RestTokenProvider::PASSWORD_KEY => 'api_key' |
|
| 121 | 121 | ]); |
| 122 | 122 | |
| 123 | 123 | $this->expectException($expectedException); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | ->method('setData') |
| 121 | 121 | ->with( |
| 122 | 122 | $this->callback( |
| 123 | - function ($data) use ($syncStartDate) { |
|
| 123 | + function($data) use ($syncStartDate) { |
|
| 124 | 124 | $this->assertArrayHasKey('initialSyncedTo', $data); |
| 125 | 125 | |
| 126 | 126 | $this->assertEquals(['initialSyncedTo' => $syncStartDate->format(\DateTime::ISO8601)], $data); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | ->method('setData') |
| 185 | 185 | ->with( |
| 186 | 186 | $this->callback( |
| 187 | - function ($data) use ($syncedTo, $interval) { |
|
| 187 | + function($data) use ($syncedTo, $interval) { |
|
| 188 | 188 | $this->assertArrayHasKey('initialSyncedTo', $data); |
| 189 | 189 | |
| 190 | 190 | $date = \DateTime::createFromFormat( |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | ->with($this->isType('integer')) |
| 74 | 74 | ->will( |
| 75 | 75 | $this->returnCallback( |
| 76 | - function ($id) use ($channels) { |
|
| 76 | + function($id) use ($channels) { |
|
| 77 | 77 | if (empty($channels[$id])) { |
| 78 | 78 | return null; |
| 79 | 79 | } |