| Conditions | 5 |
| Paths | 8 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { |
||
| 32 | $values = $form_state->getValues(); |
||
| 33 | |||
| 34 | if ($this instanceof WidgetInterface) { |
||
| 35 | $values = $values['table'][$this->uuid()]['form']; |
||
| 36 | } |
||
| 37 | |||
| 38 | if (!empty($values)) { |
||
| 39 | foreach ($values as $key => $value) { |
||
| 40 | if (array_key_exists($key, $this->configuration)) { |
||
| 41 | $this->configuration[$key] = $value; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 48 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.