@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | private $parameterIndex; |
38 | 38 | private $parameters = null; |
39 | 39 | |
40 | + /** |
|
41 | + * @param null|string $parameterIndex |
|
42 | + */ |
|
40 | 43 | public function __construct( $parameterIndex ) { |
41 | 44 | $this->parameterIndex = $parameterIndex; |
42 | 45 | } |
@@ -60,6 +63,9 @@ discard block |
||
60 | 63 | return $this->parameters[ $key ]; |
61 | 64 | } |
62 | 65 | |
66 | + /** |
|
67 | + * @param string $pagetext |
|
68 | + */ |
|
63 | 69 | private function setParameters( $pagetext, $comment, $title ) { |
64 | 70 | $this->parameters = [ |
65 | 71 | 'pagetext' => $pagetext, |
@@ -68,6 +74,9 @@ discard block |
||
68 | 74 | ]; |
69 | 75 | } |
70 | 76 | |
77 | + /** |
|
78 | + * @param string $key |
|
79 | + */ |
|
71 | 80 | private function getEscapedParameter( $key ) { |
72 | 81 | return $this->escape( $this->getParameter( $key ) ); |
73 | 82 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | <!-- The file input field used as target for the file upload widget --> |
72 | 72 | <input id="fileupload" type="file" name="file" multiple |
73 | 73 | data-url="' . wfScript( 'api' ) . '" |
74 | - data-comment="' . $paramProvider->getEscapedUploadComment() .'" |
|
74 | + data-comment="' . $paramProvider->getEscapedUploadComment() . '" |
|
75 | 75 | data-text="' . $paramProvider->getEscapedUploadPageText() . '" |
76 | 76 | > |
77 | 77 | </span><ul id="fileupload-results"></ul>'; |