| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function performAction(Objects $field, ElementInterface $element, ObjectAssociation $record): bool |
||
| 42 | { |
||
| 43 | $resource = $field->getResource(); |
||
| 44 | |||
| 45 | if (!$resource->syncUp($element, $field, null, null, new TransformerCollection())) { |
||
| 46 | $this->setMessage("Failed to sync to HubSpot Object"); |
||
| 47 | return false; |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->setMessage("Sync to HubSpot executed successfully"); |
||
| 51 | return true; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |