@@ -8,8 +8,6 @@ |
||
| 8 | 8 | use SMWQueryResult; |
| 9 | 9 | use SMWDataItem; |
| 10 | 10 | use PhpOffice\PhpWord\PhpWord; |
| 11 | -use PhpOffice\PhpWord\IOFactory; |
|
| 12 | -use Sanitizer; |
|
| 13 | 11 | use Title; |
| 14 | 12 | |
| 15 | 13 | /** |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | /** |
| 152 | 152 | * Populates the PHPWord document with the query data |
| 153 | 153 | * |
| 154 | - * @param $res SMWQueryResult |
|
| 154 | + * @param SMWQueryResult $res SMWQueryResult |
|
| 155 | 155 | * the query result |
| 156 | 156 | */ |
| 157 | 157 | private function populateDocumentWithQueryData($res) { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @param $p_FilePageTitle - |
| 171 | 171 | * the title of the File: page without prefix |
| 172 | - * @return the local file path to the image file |
|
| 172 | + * @return string local file path to the image file |
|
| 173 | 173 | */ |
| 174 | 174 | function getImageFilePath($p_FilePageTitle) { |
| 175 | 175 | $l_localFilePath = null; |
@@ -245,6 +245,8 @@ discard block |
||
| 245 | 245 | * haystack - the string to search in |
| 246 | 246 | * @param |
| 247 | 247 | * needle - the string to search for |
| 248 | + * @param string $haystack |
|
| 249 | + * @param string $needle |
|
| 248 | 250 | */ |
| 249 | 251 | function startsWith($haystack, $needle) { |
| 250 | 252 | // search backwards starting from haystack length characters from the end |