| 1 | <?php |
||
| 13 | class FormPrinterHandler { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Title|null |
||
| 17 | */ |
||
| 18 | private $form; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var mixed |
||
| 22 | */ |
||
| 23 | private $formPrinter; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $formText = ''; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $dataText = ''; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var boolean |
||
| 37 | */ |
||
| 38 | private $submitState = false; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @since 1.1 |
||
| 42 | */ |
||
| 43 | 4 | public function __construct( Title $form = null, $formPrinter = null ) { |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @since 1.1 |
||
| 50 | * |
||
| 51 | * @return boolean |
||
| 52 | */ |
||
| 53 | 3 | public function canUseForm() { |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @since 1.1 |
||
| 59 | * |
||
| 60 | * @param boolean $submitState |
||
| 61 | */ |
||
| 62 | public function setSubmitState( $submitState ) { |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @since 1.1 |
||
| 68 | * |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | 1 | public function getFormText() { |
|
| 79 | |||
| 80 | /** |
||
| 81 | * @since 1.1 |
||
| 82 | * |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | 1 | public function getTemplateText() { |
|
| 93 | |||
| 94 | 2 | private function createForm() { |
|
| 109 | |||
| 110 | } |
||
| 111 |
This checks looks for assignemnts to variables using the
list(...)function, where not all assigned variables are subsequently used.Consider the following code example.
Only the variables
$aand$care used. There was no need to assign$b.Instead, the list call could have been.