Failed Conditions
Pull Request — master (#2943)
by Andreas
03:32
created
inc/search.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -390,7 +390,7 @@
 block discarded – undo
390 390
  * @param string $path
391 391
  * @param bool $keeptxt
392 392
  *
393
- * @return mixed|string
393
+ * @return string
394 394
  */
395 395
 function pathID($path, $keeptxt=false)
396 396
 {
Please login to merge, or discard this patch.
inc/Search/Indexer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      * @author Tom N Harris <[email protected]>
101 101
      * @author Michael Hamann <[email protected]>
102 102
      *
103
-     * @return int|string
103
+     * @return string
104 104
      */
105 105
     public function getVersion()
106 106
     {
Please login to merge, or discard this patch.
inc/Search/FulltextIndex.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace dokuwiki\Search;
4 4
 
5 5
 use dokuwiki\Search\Tokenizer;
6
-use dokuwiki\Utf8;
7 6
 
8 7
 /**
9 8
  * Class DokuWiki Fulltext Index (Singleton)
Please login to merge, or discard this patch.
inc/media.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
  * @param string   $file    path to file
673 673
  * @param string   $mime    mime type
674 674
  * @param bool|int $old_rev revision timestamp or false
675
- * @return bool
675
+ * @return false|null
676 676
  */
677 677
 function media_notify($id,$file,$mime,$old_rev=false,$current_rev=false){
678 678
     global $conf;
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
  * @param string     $image media id
943 943
  * @param string     $ns
944 944
  * @param null|int   $auth  permission level
945
- * @param string|int $rev   revision timestamp or empty string
945
+ * @param boolean $rev   revision timestamp or empty string
946 946
  */
947 947
 function media_tab_view($image, $ns, $auth=null, $rev='') {
948 948
     global $lang;
@@ -1011,7 +1011,7 @@  discard block
 block discarded – undo
1011 1011
  * @param string         $image media id
1012 1012
  * @param int            $auth permission level
1013 1013
  * @param int|string     $rev revision timestamp or empty string
1014
- * @param JpegMeta|bool  $meta
1014
+ * @param JpegMeta  $meta
1015 1015
  *
1016 1016
  * @author Kate Arzamastseva <[email protected]>
1017 1017
  */
@@ -1177,7 +1177,7 @@  discard block
 block discarded – undo
1177 1177
  * @param string        $image image id
1178 1178
  * @param int           $auth  permission level
1179 1179
  * @param string|int    $rev   revision timestamp, or empty string
1180
- * @param bool|JpegMeta $meta  image object, or create one if false
1180
+ * @param JpegMeta $meta  image object, or create one if false
1181 1181
  */
1182 1182
 function media_details($image, $auth, $rev = '', $meta = false) {
1183 1183
     global $lang;
@@ -1791,7 +1791,7 @@  discard block
 block discarded – undo
1791 1791
  * @param string     $amp           separator
1792 1792
  * @param bool       $abs           absolute url?
1793 1793
  * @param bool       $params_array  return the parmeters array?
1794
- * @return string|array - link or link parameters
1794
+ * @return string[] - link or link parameters
1795 1795
  */
1796 1796
 function media_managerURL($params=false, $amp='&amp;', $abs=false, $params_array=false) {
1797 1797
     global $ID;
Please login to merge, or discard this patch.
inc/Search/FulltextSearch.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
      *
242 242
      * @param string $id page id
243 243
      * @param array $highlight
244
-     * @return mixed
244
+     * @return string
245 245
      */
246 246
     public function snippet($id, $highlight)
247 247
     {
Please login to merge, or discard this patch.
inc/Search/AbstractIndex.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * Lock the indexer
134 134
      *
135
-     * @return true
135
+     * @return boolean
136 136
      * @throws IndexLockException
137 137
      * @author Tom N Harris <[email protected]>
138 138
      *
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     /**
164 164
      * Release the indexer lock
165 165
      *
166
-     * @return true
166
+     * @return boolean
167 167
      * @throws IndexLockException
168 168
      * @author Tom N Harris <[email protected]>
169 169
      *
Please login to merge, or discard this patch.