| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | public function syncUp( |
||
| 60 | ElementInterface $element, |
||
| 61 | Resources $field, |
||
| 62 | $criteria = null |
||
| 63 | ): bool { |
||
| 64 | /** @var Element $element */ |
||
| 65 | |||
| 66 | $this->upsertPipelineByElement( |
||
| 67 | $element, |
||
| 68 | $field, |
||
| 69 | $criteria |
||
| 70 | )->build()->pipe( |
||
| 71 | new ElementAssociationStage($field) |
||
| 72 | )(null, $element); |
||
| 73 | |||
| 74 | return !$element->hasErrors(); |
||
| 75 | } |
||
| 76 | } |
||
| 77 |