@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public function process(MessageInterface $message, SessionInterface $session) |
44 | 44 | { |
45 | 45 | $body = array_replace(['channelId' => null], JSON::decode($message->getBody())); |
46 | - if (! $body['channelId']) { |
|
46 | + if (!$body['channelId']) { |
|
47 | 47 | $this->logger->critical('The message invalid. It must have channelId set'); |
48 | 48 | |
49 | 49 | return self::REJECT; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | /** @var Channel $channel */ |
55 | 55 | $channel = $em->find(Channel::class, $body['channelId']); |
56 | - if (! $channel) { |
|
56 | + if (!$channel) { |
|
57 | 57 | $this->logger->critical(sprintf('Channel not found: %s', $body['channelId'])); |
58 | 58 | |
59 | 59 | return self::REJECT; |
@@ -63,8 +63,7 @@ discard block |
||
63 | 63 | if ($dataSource instanceof Integration) { |
64 | 64 | if (Channel::STATUS_ACTIVE === $channel->getStatus()) { |
65 | 65 | $enabled = null !== $dataSource->getPreviouslyEnabled() ? |
66 | - $dataSource->getPreviouslyEnabled() : |
|
67 | - true; |
|
66 | + $dataSource->getPreviouslyEnabled() : true; |
|
68 | 67 | |
69 | 68 | $dataSource->setEnabled($enabled); |
70 | 69 | EditModeUtils::attemptChangeEditMode($dataSource, Integration::EDIT_MODE_RESTRICTED); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $htmlTagHelper->expects($this->any()) |
25 | 25 | ->method('stripTags') |
26 | 26 | ->willReturnCallback( |
27 | - function ($value) { |
|
27 | + function($value) { |
|
28 | 28 | return trim(strip_tags($value)); |
29 | 29 | } |
30 | 30 | ); |
@@ -75,7 +75,7 @@ |
||
75 | 75 | 'accounts' => ['fields' => 'id'], |
76 | 76 | 'picture' => ['fields' => 'id'] |
77 | 77 | ], |
78 | - 'post_serialize' => function (array &$result) { |
|
78 | + 'post_serialize' => function(array &$result) { |
|
79 | 79 | $this->postSerializeContact($result); |
80 | 80 | } |
81 | 81 | ]; |
@@ -108,14 +108,14 @@ |
||
108 | 108 | 'assigneeId' => $userIdFilter, |
109 | 109 | 'assigneeUsername' => $userNameFilter, |
110 | 110 | ]; |
111 | - $map = [ |
|
111 | + $map = [ |
|
112 | 112 | 'ownerId' => 'owner', |
113 | 113 | 'ownerUsername' => 'owner', |
114 | 114 | 'assigneeId' => 'assignedTo', |
115 | 115 | 'assigneeUsername' => 'assignedTo', |
116 | 116 | 'phone' => 'phones.phone' |
117 | 117 | ]; |
118 | - $joins = [ |
|
118 | + $joins = [ |
|
119 | 119 | 'phones' |
120 | 120 | ]; |
121 | 121 | $criteria = $this->getFilterCriteria($this->getSupportedQueryParameters('cgetAction'), $filterParameters, $map); |
@@ -153,7 +153,7 @@ |
||
153 | 153 | protected function getPreparedItem($entity, $resultFields = []) |
154 | 154 | { |
155 | 155 | $result['id'] = $entity->getId(); |
156 | - $result['owner'] = (string) $entity->getOwner(); |
|
156 | + $result['owner'] = (string)$entity->getOwner(); |
|
157 | 157 | $result['phone'] = $entity->getPhone(); |
158 | 158 | $result['primary'] = $entity->isPrimary(); |
159 | 159 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * @var array |
16 | 16 | */ |
17 | - protected $gridParams = [ |
|
17 | + protected $gridParams = [ |
|
18 | 18 | 'contacts-grid' => |
19 | 19 | 'i=1&p=25&s%5BlastName%5D=-1&s%5BfirstName%5D=-1' |
20 | 20 | ]; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | const FIRST_ENTITY_NAME = '1111111'; |
14 | 14 | const SECOND_ENTITY_NAME = '2222222'; |
15 | 15 | const THIRD_ENTITY_NAME = '3333333'; |
16 | - const FOURTH_ENTITY_NAME = '4444444'; |
|
16 | + const FOURTH_ENTITY_NAME = '4444444'; |
|
17 | 17 | |
18 | 18 | public function getDependencies() |
19 | 19 | { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | const FIRST_ENTITY_NAME = '[email protected]'; |
14 | 14 | const SECOND_ENTITY_NAME = '[email protected]'; |
15 | 15 | const THIRD_ENTITY_NAME = '[email protected]'; |
16 | - const FOURTH_ENTITY_NAME = '[email protected]'; |
|
16 | + const FOURTH_ENTITY_NAME = '[email protected]'; |
|
17 | 17 | |
18 | 18 | public function getDependencies() |
19 | 19 | { |
@@ -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 | } |