src/Plugin/Field/FieldWidget/SamlRoleMappingWidget.php
Method formElement
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
// If the form is newly built, the form state storage will be null. If the
// form is being rebuilt from an ajax, the storage will be some type of
// array.
Variable $role_id is undefined. Invalid
Invalid
[$role_id, $comparison] = explode(':', $role_mapping_string, 2);
- Exclude checks
Variable $comparison is undefined. Invalid
Invalid
[$role_id, $comparison] = explode(':', $role_mapping_string, 2);
- Exclude checks
Variable $role_id is undefined. Invalid
Invalid
['#markup' => $role ? $role->label() : $this->t('Broken: @id', ['@id' => $role_id])],
- Exclude checks
Variable $comparison is undefined. Invalid
Invalid
$exploded_comparison = explode(',', $comparison, 3);
- Exclude checks
Variable $role_id is undefined. Invalid
Invalid
->load($role_id);
- Exclude checks