| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function __construct($id_base, $name, $widget_options = [], $control_options = []) |
||
| 24 | { |
||
| 25 | $this->id_base = empty($id_base) ? preg_replace('/(wp_)?widget_/', '', strtolower(get_class($this))) : strtolower($id_base); |
||
| 26 | $this->name = $name; |
||
| 27 | $this->option_name = 'widget_' . $this->id_base; |
||
| 28 | } |
||
| 29 | } |
||
| 76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.