@@ -68,7 +68,6 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * @since 3.1 |
70 | 70 | * |
71 | - * @param callable $compoundLabelCallback |
|
72 | 71 | */ |
73 | 72 | public function setFormatterCallback( callable $formatterCallback ) { |
74 | 73 | $this->formatterCallback = $formatterCallback; |
@@ -77,7 +76,7 @@ discard block |
||
77 | 76 | /** |
78 | 77 | * @since 3.1 |
79 | 78 | * |
80 | - * @param $key |
|
79 | + * @param string $key |
|
81 | 80 | * @param string $text |
82 | 81 | * |
83 | 82 | * @return string |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SRF\BibTex; |
4 | 4 | |
5 | -use SMWDataValue as DataValue; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * @see http://www.semantic-mediawiki.org/wiki/BibTex |
9 | 7 | * |
@@ -95,7 +95,6 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * @since 3.1 |
97 | 97 | * |
98 | - * @param array $list |
|
99 | 98 | * |
100 | 99 | * @return string |
101 | 100 | */ |
@@ -141,7 +140,7 @@ discard block |
||
141 | 140 | * |
142 | 141 | * @param $row array of SMWResultArray |
143 | 142 | * |
144 | - * @return bibTexItem |
|
143 | + * @return Item |
|
145 | 144 | */ |
146 | 145 | private function newItem( array /* of SMWResultArray */ $row ) { |
147 | 146 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use SMW\ResultPrinter; |
6 | 6 | use SMWQueryResult; |
7 | -use SMWWikiPageValue; |
|
8 | 7 | use GraphViz; |
9 | 8 | use Html; |
10 | 9 |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use SMWQuery as Query; |
9 | 9 | use SMWQueryProcessor as QueryProcessor; |
10 | 10 | use SMWQueryResult as QueryResult; |
11 | -use SMWTimeValue as TimeValue; |
|
12 | 11 | use WikiPage; |
13 | 12 | |
14 | 13 | /** |
@@ -258,6 +258,9 @@ |
||
258 | 258 | return $params; |
259 | 259 | } |
260 | 260 | |
261 | + /** |
|
262 | + * @param ResultArray $field |
|
263 | + */ |
|
261 | 264 | private function filterField( $field, &$params ) { |
262 | 265 | |
263 | 266 | // later we may add more things like a generic |
@@ -47,7 +47,6 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * @since 3.1 |
49 | 49 | * |
50 | - * @param OutlineTree $tree |
|
51 | 50 | * |
52 | 51 | * @return string |
53 | 52 | */ |
@@ -57,6 +56,9 @@ discard block |
||
57 | 56 | return $this->getIntroTemplate() . $this->template . $this->getOutroTemplate(); |
58 | 57 | } |
59 | 58 | |
59 | + /** |
|
60 | + * @param OutlineTree $outlineTree |
|
61 | + */ |
|
60 | 62 | private function tree( $outlineTree, $level = 0 ) { |
61 | 63 | |
62 | 64 | if ( $outlineTree->items !== null ) { |
@@ -116,6 +118,9 @@ discard block |
||
116 | 118 | return "<div class='" . $this->params['template'] . "-item'>" . $template . '</div>'; |
117 | 119 | } |
118 | 120 | |
121 | + /** |
|
122 | + * @param Linker|null $linker |
|
123 | + */ |
|
119 | 124 | private function itemText( $dv, $linker, $printRequest, &$first_col ) { |
120 | 125 | |
121 | 126 | if ( $first_col && $printRequest->isMode( PrintRequest::PRINT_THIS ) ) { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use FormatJson; |
7 | 7 | use Html; |
8 | 8 | use MediaWiki\MediaWikiServices; |
9 | -use Skin; |
|
10 | 9 | use SMW\ResultPrinter; |
11 | 10 | use SMWDataItem; |
12 | 11 | use SMWDataValue; |
@@ -76,9 +76,9 @@ |
||
76 | 76 | * |
77 | 77 | * @param array $data |
78 | 78 | * |
79 | - * @param string|null|bool $nonce |
|
79 | + * @param boolean $nonce |
|
80 | 80 | * |
81 | - * @return string|WrappedString HTML |
|
81 | + * @return string HTML |
|
82 | 82 | */ |
83 | 83 | public static function makeVariablesScript( $data, $nonce = null ) { |
84 | 84 | $script = ResourceLoader::makeConfigSetScript( $data ); |
@@ -111,10 +111,10 @@ |
||
111 | 111 | * |
112 | 112 | * @param \SMWResultArray[] $row |
113 | 113 | * @param $rownum |
114 | - * @param $rowstart |
|
115 | - * @param $rowend |
|
114 | + * @param string $rowstart |
|
115 | + * @param string $rowend |
|
116 | 116 | * @param $result |
117 | - * @param $listsep |
|
117 | + * @param string $listsep |
|
118 | 118 | */ |
119 | 119 | protected function printRow( $row, &$rownum, $rowstart, $rowend, &$result, $listsep ) { |
120 | 120 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @since 1.8 |
51 | 51 | * |
52 | - * @return array |
|
52 | + * @return string[] |
|
53 | 53 | */ |
54 | 54 | public function getFormats() { |
55 | 55 | return [ 'gallery' ]; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SRF\Tests\Unit\Formats; |
4 | 4 | |
5 | 5 | use SRF\Gallery; |
6 | -use TraditionalImageGallery; |
|
7 | 6 | use Title; |
8 | 7 | use SMW\Test\QueryPrinterRegistryTestCase; |
9 | 8 |