@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | * |
724 | 724 | * @param integer $sid |
725 | 725 | * @param DIWikiPage $subject |
726 | - * @param integer|string|null $interWiki |
|
726 | + * @param string $interWiki |
|
727 | 727 | */ |
728 | 728 | public function updateInterwikiField( $sid, DIWikiPage $subject, $interWiki = null ) { |
729 | 729 | |
@@ -978,9 +978,8 @@ discard block |
||
978 | 978 | /** |
979 | 979 | * @since 2.3 |
980 | 980 | * |
981 | - * @param integer $id |
|
982 | 981 | * |
983 | - * @return string[] |
|
982 | + * @return SMW\Iterators\MappingIterator |
|
984 | 983 | */ |
985 | 984 | public function getDataItemPoolHashListFor( array $idlist ) { |
986 | 985 | return $this->idToDataItemMatchFinder->getDataItemPoolHashListFor( $idlist ); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @since 2.5 |
29 | 29 | * |
30 | - * @param Iterator/array $$iterable |
|
30 | + * @param Iterator/array $iterable |
|
31 | 31 | * @param callable $callback |
32 | 32 | * |
33 | 33 | * @return MappingIterator |
@@ -82,6 +82,10 @@ |
||
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $pattern |
|
87 | + * @param string $reference |
|
88 | + */ |
|
85 | 89 | private function doPregMatch( $pattern, $dataValue, $reference ) { |
86 | 90 | |
87 | 91 | // Convert escaping as in /\d{4} |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | return self::getHTMLText( $printRequest, $linker ); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param $printRequest |
|
45 | + */ |
|
43 | 46 | private static function getHTMLText( $printRequest, $linker = null ) { |
44 | 47 | |
45 | 48 | $label = htmlspecialchars( $printRequest->getLabel() ); |
@@ -62,6 +65,9 @@ discard block |
||
62 | 65 | } |
63 | 66 | } |
64 | 67 | |
68 | + /** |
|
69 | + * @param $printRequest |
|
70 | + */ |
|
65 | 71 | private static function getWikiText( $printRequest, $linker = false ) { |
66 | 72 | |
67 | 73 | $label = $printRequest->getLabel(); |
@@ -49,6 +49,10 @@ discard block |
||
49 | 49 | return ''; // no current serialisation |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param $printRequest |
|
54 | + * @param string $parameters |
|
55 | + */ |
|
52 | 56 | private static function doSerializeCat( $printRequest, $parameters ) { |
53 | 57 | |
54 | 58 | $catlabel = Localizer::getInstance()->getNamespaceTextById( NS_CATEGORY ); |
@@ -61,6 +65,10 @@ discard block |
||
61 | 65 | return $result . $parameters; |
62 | 66 | } |
63 | 67 | |
68 | + /** |
|
69 | + * @param $printRequest |
|
70 | + * @param string $parameters |
|
71 | + */ |
|
64 | 72 | private static function doSerializeCcat( $printRequest, $parameters ) { |
65 | 73 | |
66 | 74 | $printname = $printRequest->getData()->getPrefixedText(); |
@@ -77,6 +85,10 @@ discard block |
||
77 | 85 | return $result . $parameters; |
78 | 86 | } |
79 | 87 | |
88 | + /** |
|
89 | + * @param $printRequest |
|
90 | + * @param string $parameters |
|
91 | + */ |
|
80 | 92 | private static function doSerializeProp( $printRequest, $parameters ) { |
81 | 93 | |
82 | 94 | $printname = ''; |
@@ -106,6 +118,10 @@ discard block |
||
106 | 118 | return $result . $parameters; |
107 | 119 | } |
108 | 120 | |
121 | + /** |
|
122 | + * @param $printRequest |
|
123 | + * @param string $parameters |
|
124 | + */ |
|
109 | 125 | private static function doSerializeThis( $printRequest, $parameters ) { |
110 | 126 | |
111 | 127 | $result = '?'; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * @since 2.5 |
61 | 61 | * |
62 | 62 | * @param DescriptionFactory|null $descriptionFactory |
63 | - * @param DataItemFactory|null $dataItemFactory |
|
63 | + * @param null|DescriptionFactory $dataItemFactory |
|
64 | 64 | */ |
65 | 65 | public function __construct( DescriptionFactory $descriptionFactory = null, DescriptionFactory $dataItemFactory = null ) { |
66 | 66 | $this->descriptionFactory = $descriptionFactory; |
@@ -77,6 +77,10 @@ |
||
77 | 77 | return $description; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param DIWikiPage $dataItem |
|
82 | + * @param ValueDescription $description |
|
83 | + */ |
|
80 | 84 | private function findApproriateDescription( $comparator, $dataItem, $description ) { |
81 | 85 | |
82 | 86 | $value = $dataItem->getDBKey(); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @since 1.9 |
43 | 43 | * |
44 | - * @return array |
|
44 | + * @return DIProperty |
|
45 | 45 | */ |
46 | 46 | public function getProperty() { |
47 | 47 | return new DIProperty( '_ASK' ); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @since 1.9 |
65 | 65 | * |
66 | - * @return SemanticData |
|
66 | + * @return \SMWSemanticData |
|
67 | 67 | */ |
68 | 68 | public function getSemanticData() { |
69 | 69 | return $this->container->getSemanticData(); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * @since 2.4 |
126 | 126 | * |
127 | - * @return string |
|
127 | + * @return ExtraneousLanguage |
|
128 | 128 | */ |
129 | 129 | public function fetchByLanguageCode( $languageCode ) { |
130 | 130 | |
@@ -380,6 +380,7 @@ discard block |
||
380 | 380 | * |
381 | 381 | * @since 2.4 |
382 | 382 | * |
383 | + * @param string $propertyLabel |
|
383 | 384 | * @return string|null |
384 | 385 | */ |
385 | 386 | public function getPropertyIdByLabel( $propertyLabel ) { |
@@ -487,6 +488,7 @@ discard block |
||
487 | 488 | |
488 | 489 | /** |
489 | 490 | * @deprecated use getMonthLabelByNumber |
491 | + * @param integer $number |
|
490 | 492 | */ |
491 | 493 | public function getMonthLabel( $number ) { |
492 | 494 | return $this->getMonthLabelByNumber( $number ); |
@@ -517,6 +519,9 @@ discard block |
||
517 | 519 | return ''; |
518 | 520 | } |
519 | 521 | |
522 | + /** |
|
523 | + * @param string $languageCode |
|
524 | + */ |
|
520 | 525 | private function getDateFormatsByLanguageCode( $languageCode ) { |
521 | 526 | |
522 | 527 | $dateformats = array(); |