This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
21
{
22
\add_submenu_page(
23
$this->config['parent_slug'],
24
$this->config['title'],
25
$this->config['menu_title'],
26
$this->config['capability'],
27
$this->config['slug'],
28
array($this, 'render')
29
);
30
}
31
32
public function enqueue_scripts()
33
{
34
// Only enqueue styles & scripts if this is a settings page