| Conditions | 1 |
| Paths | 1 |
| Total Lines | 36 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function updateCMSFields(FieldList $fields) |
||
| 28 | { |
||
| 29 | $owner = $this->owner; |
||
| 30 | $bccExplanation = _t( |
||
| 31 | 'CountryPrice_OrderStepDOD.BCC_EXPLANATION', |
||
| 32 | ' |
||
| 33 | E-mails during this step (if any) will be copied to distributor? |
||
| 34 | <br />These emails can be customised. |
||
| 35 | ' |
||
| 36 | ); |
||
| 37 | $gridField = $fields->dataFieldByName('EcommerceOrderStepCountryDatas'); |
||
| 38 | $fields->removeFieldFromTab( |
||
| 39 | 'Root.EcommerceOrderStepCountryDatas', |
||
| 40 | 'EcommerceOrderStepCountryDatas' |
||
| 41 | ); |
||
| 42 | $fields->addFieldsToTab( |
||
| 43 | 'Root.EcommerceOrderStepCountryDatas', |
||
| 44 | array( |
||
| 45 | CheckboxField::create( |
||
| 46 | 'SendEmailToDistributor', |
||
| 47 | _t('CountryPrice_OrderStepDOD.SEND_EMAIL_TO_DISTRIBUTOR', 'BCC to Distributor') |
||
| 48 | )->setDescription( |
||
| 49 | $bccExplanation |
||
| 50 | ), |
||
| 51 | ) |
||
| 52 | ); |
||
| 53 | $customisation = _t( |
||
| 54 | 'CountryPrice_OrderStepDOD.CUSTOMISATION_PER_COUNTRY', |
||
| 55 | 'Customisation per country' |
||
| 56 | ); |
||
| 57 | $gridField->setTitle($customisation); |
||
| 58 | $fields->addFieldsToTab( |
||
| 59 | 'Root.EcommerceOrderStepCountryDatas', |
||
| 60 | $gridField |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.