@@ -68,7 +68,7 @@ |
||
68 | 68 | ->get('kernel') |
69 | 69 | ->locateResource('@OroDemoDataBundle/Migrations/Data/Demo/ORM/dictionaries'); |
70 | 70 | |
71 | - $handle = fopen($dictionaryDir . DIRECTORY_SEPARATOR. "campaigns.csv", "r"); |
|
71 | + $handle = fopen($dictionaryDir . DIRECTORY_SEPARATOR . "campaigns.csv", "r"); |
|
72 | 72 | if ($handle) { |
73 | 73 | $headers = array(); |
74 | 74 | if (($data = fgetcsv($handle, 1000, ",")) !== false) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | $this->nameFormatter->expects($this->any()) |
29 | 29 | ->method('format') |
30 | - ->will($this->returnCallback(function (Contact $contact) { |
|
30 | + ->will($this->returnCallback(function(Contact $contact) { |
|
31 | 31 | return trim(implode(' ', [$contact->getFirstName(), $contact->getLastName()])); |
32 | 32 | })); |
33 | 33 | } |
@@ -164,7 +164,7 @@ |
||
164 | 164 | ->getArrayResult(); |
165 | 165 | |
166 | 166 | return array_map( |
167 | - function ($item) { |
|
167 | + function($item) { |
|
168 | 168 | return $item['id']; |
169 | 169 | }, |
170 | 170 | $items |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $this->isType('string'), |
47 | 47 | $this->isType('string'), |
48 | 48 | $this->callback( |
49 | - function ($item) { |
|
49 | + function($item) { |
|
50 | 50 | $this->assertInternalType('array', $item); |
51 | 51 | $this->assertArrayHasKey('label', $item); |
52 | 52 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
27 | 27 | curl_close($ch); |
28 | 28 | |
29 | - if (!($httpCode>=200 && $httpCode<300)) { |
|
29 | + if (!($httpCode >= 200 && $httpCode < 300)) { |
|
30 | 30 | $this->markTestSkipped('Magento instance is not available'); |
31 | 31 | } |
32 | 32 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | public function execute(InputInterface $input, OutputInterface $output) |
54 | 54 | { |
55 | - $logger = new OutputLogger($output); |
|
55 | + $logger = new OutputLogger($output); |
|
56 | 56 | $logger->info('Executing command started.'); |
57 | 57 | |
58 | 58 | $integrationIds = $input->getOption('integration-id'); |
@@ -518,7 +518,7 @@ |
||
518 | 518 | */ |
519 | 519 | public function __toString() |
520 | 520 | { |
521 | - return (string) $this->getName(); |
|
521 | + return (string)$this->getName(); |
|
522 | 522 | } |
523 | 523 | |
524 | 524 | /** |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | return new JsonResponse(["id" => ""]); |
62 | 62 | } catch (\Exception $e) { |
63 | - return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage() ], $e->getCode()); |
|
63 | + return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage()], $e->getCode()); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | $entityType = $this->getEntityType(CreditMemo::class); |
25 | 25 | $response = $this->cget(['entity' => $entityType]); |
26 | - $this->assertResponseContains(__DIR__.'/responses/get_credit_memos.yml', $response); |
|
26 | + $this->assertResponseContains(__DIR__ . '/responses/get_credit_memos.yml', $response); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public function testGetCreditMemo() |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'entity' => $this->getEntityType(CreditMemo::class), |
33 | 33 | 'id' => '<toString(@creditMemo->id)>', |
34 | 34 | ]); |
35 | - $this->assertResponseContains(__DIR__.'/responses/get_credit_memo.yml', $response); |
|
35 | + $this->assertResponseContains(__DIR__ . '/responses/get_credit_memo.yml', $response); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function testUpdateCreditMemo() |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | [ |
47 | 47 | 'data' => [ |
48 | 48 | 'type' => $entityType, |
49 | - 'id' => (string) $creditMemo->getId(), |
|
49 | + 'id' => (string)$creditMemo->getId(), |
|
50 | 50 | 'attributes' => [ |
51 | 51 | 'transactionId' => '100000XT' |
52 | 52 | ] |
@@ -64,12 +64,12 @@ discard block |
||
64 | 64 | |
65 | 65 | $response = $this->post( |
66 | 66 | ['entity' => $entityType], |
67 | - __DIR__.'/requests/create_credit_memo.yml' |
|
67 | + __DIR__ . '/requests/create_credit_memo.yml' |
|
68 | 68 | ); |
69 | 69 | |
70 | 70 | /** @var CreditMemo $creditMemo */ |
71 | 71 | $creditMemo = $this->getCreditMemoRepository()->findOneByOriginId('2'); |
72 | - $this->assertResponseContains(__DIR__.'/responses/create_credit_memo.yml', $response, $creditMemo); |
|
72 | + $this->assertResponseContains(__DIR__ . '/responses/create_credit_memo.yml', $response, $creditMemo); |
|
73 | 73 | $this->assertSame($this->getReference('organization')->getId(), $creditMemo->getOrganization()->getId()); |
74 | 74 | $this->assertSame($this->getReference('user')->getId(), $creditMemo->getOwner()->getId()); |
75 | 75 | $this->assertSame($this->getReference('guestOrder')->getId(), $creditMemo->getOrder()->getId()); |