Completed
Branch master (939199)
by
unknown
39:35
created

htmlform/fields/HTMLSelectNamespaceWithButton.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * Creates a Html::namespaceSelector input field with a button assigned to the input field.
4
 */
5 View Code Duplication
class HTMLSelectNamespaceWithButton extends HTMLSelectNamespace {
0 ignored issues
show
This class 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...
6
	/** @var HTMLFormFieldWithButton $mClassWithButton */
7
	protected $mClassWithButton = null;
8
9
	public function __construct( $info ) {
10
		$this->mClassWithButton = new HTMLFormFieldWithButton( $info );
11
		parent::__construct( $info );
12
	}
13
14
	public function getInputHTML( $value ) {
15
		return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
16
	}
17
}
18