@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Bibliography constructor. |
| 34 | 34 | * @param \SimpleXMLElement $node |
| 35 | - * @param Root $parent |
|
| 35 | + * @param \Seboettg\CiteProc\Root\Root $parent |
|
| 36 | 36 | */ |
| 37 | 37 | public function __construct(\SimpleXMLElement $node, $parent) |
| 38 | 38 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @param array|DataList $data |
|
| 47 | + * @param DataList $data |
|
| 48 | 48 | * @param int|null $citationNumber |
| 49 | 49 | * @return string |
| 50 | 50 | */ |
@@ -35,6 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Citation constructor. |
| 37 | 37 | * @param \SimpleXMLElement $node |
| 38 | + * @param \Seboettg\CiteProc\Root\Root $parent |
|
| 38 | 39 | */ |
| 39 | 40 | public function __construct(\SimpleXMLElement $node, $parent) |
| 40 | 41 | { |
@@ -45,7 +46,7 @@ discard block |
||
| 45 | 46 | } |
| 46 | 47 | |
| 47 | 48 | /** |
| 48 | - * @param array|DataList $data |
|
| 49 | + * @param DataList $data |
|
| 49 | 50 | * @param ArrayList $citationItems |
| 50 | 51 | * @return string |
| 51 | 52 | */ |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | 186 | * @param $data |
| 187 | - * @param $ret |
|
| 187 | + * @param string $ret |
|
| 188 | 188 | * @return string |
| 189 | 189 | */ |
| 190 | 190 | private function renderCitations($data, $ret) |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | /** |
| 203 | 203 | * @param DataList $data |
| 204 | 204 | * @param ArrayList $citationItems |
| 205 | - * @return mixed |
|
| 205 | + * @return ArrayList |
|
| 206 | 206 | */ |
| 207 | 207 | private function filterCitationItems($data, $citationItems) |
| 208 | 208 | { |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | - * @param array $name |
|
| 114 | 113 | * @param integer|null $citationNumber |
| 114 | + * @param \stdClass $data |
|
| 115 | 115 | * @return string |
| 116 | 116 | */ |
| 117 | 117 | public function render($data, $var, $citationNumber = null) |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | } |
| 572 | 572 | |
| 573 | 573 | /** |
| 574 | - * @param $data |
|
| 574 | + * @param \stdClass $data |
|
| 575 | 575 | * @return array |
| 576 | 576 | */ |
| 577 | 577 | private function renderNameParts($data) |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | |
| 229 | 229 | |
| 230 | 230 | /** |
| 231 | - * @param $data |
|
| 231 | + * @param \stdClass $data |
|
| 232 | 232 | * @param $var |
| 233 | 233 | * @param $name |
| 234 | 234 | * @return string |
@@ -165,6 +165,9 @@ discard block |
||
| 165 | 165 | return $this->toRenderTypeValue; |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | + /** |
|
| 169 | + * @param \stdClass $data |
|
| 170 | + */ |
|
| 168 | 171 | private function renderPage($data) |
| 169 | 172 | { |
| 170 | 173 | if (empty($data->page)) { |
@@ -194,9 +197,9 @@ discard block |
||
| 194 | 197 | } |
| 195 | 198 | |
| 196 | 199 | /** |
| 197 | - * @param $data |
|
| 200 | + * @param \stdClass $data |
|
| 198 | 201 | * @param $renderedText |
| 199 | - * @return mixed |
|
| 202 | + * @return string |
|
| 200 | 203 | */ |
| 201 | 204 | private function applyAdditionalMarkupFunction($data, $renderedText) |
| 202 | 205 | { |