@@ -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 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $translator |
| 25 | 25 | ->expects($this->any()) |
| 26 | 26 | ->method('trans') |
| 27 | - ->will($this->returnCallback(function ($id) { |
|
| 27 | + ->will($this->returnCallback(function($id) { |
|
| 28 | 28 | return $id; |
| 29 | 29 | })); |
| 30 | 30 | |