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