Failed Conditions
Pull Request — master (#2943)
by
unknown
03:12
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/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/FulltextIndex.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use dokuwiki\Search\Exception\IndexLockException;
7 7
 use dokuwiki\Search\Exception\IndexWriteException;
8 8
 use dokuwiki\Search\Tokenizer;
9
-use dokuwiki\Utf8;
10 9
 
11 10
 /**
12 11
  * Class DokuWiki Fulltext Index
Please login to merge, or discard this patch.
inc/html.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,12 +6,10 @@
 block discarded – undo
6 6
  * @author     Andreas Gohr <[email protected]>
7 7
  */
8 8
 
9
-use dokuwiki\ChangeLog\MediaChangeLog;
10 9
 use dokuwiki\ChangeLog\PageChangeLog;
11 10
 use dokuwiki\Extension\AuthPlugin;
12 11
 use dokuwiki\Extension\Event;
13 12
 use dokuwiki\Search\FulltextSearch;
14
-use dokuwiki\Search\MetadataIndex;
15 13
 use dokuwiki\Utf8;
16 14
 
17 15
 if (!defined('SEC_EDIT_PATTERN')) {
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
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
  * @param string   $file    path to file
661 661
  * @param string   $mime    mime type
662 662
  * @param bool|int $old_rev revision timestamp or false
663
- * @return bool
663
+ * @return false|null
664 664
  */
665 665
 function media_notify($id,$file,$mime,$old_rev=false,$current_rev=false){
666 666
     global $conf;
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
  * @param string     $image media id
938 938
  * @param string     $ns
939 939
  * @param null|int   $auth  permission level
940
- * @param string|int $rev   revision timestamp or empty string
940
+ * @param boolean $rev   revision timestamp or empty string
941 941
  */
942 942
 function media_tab_view($image, $ns, $auth=null, $rev='') {
943 943
     global $lang;
@@ -1006,7 +1006,7 @@  discard block
 block discarded – undo
1006 1006
  * @param string         $image media id
1007 1007
  * @param int            $auth permission level
1008 1008
  * @param int|string     $rev revision timestamp or empty string
1009
- * @param JpegMeta|bool  $meta
1009
+ * @param JpegMeta  $meta
1010 1010
  *
1011 1011
  * @author Kate Arzamastseva <[email protected]>
1012 1012
  */
@@ -1184,7 +1184,7 @@  discard block
 block discarded – undo
1184 1184
  * @param string        $image image id
1185 1185
  * @param int           $auth  permission level
1186 1186
  * @param string|int    $rev   revision timestamp, or empty string
1187
- * @param bool|JpegMeta $meta  image object, or create one if false
1187
+ * @param JpegMeta $meta  image object, or create one if false
1188 1188
  */
1189 1189
 function media_details($image, $auth, $rev = '', $meta = false) {
1190 1190
     global $lang;
@@ -1798,7 +1798,7 @@  discard block
 block discarded – undo
1798 1798
  * @param string     $amp           separator
1799 1799
  * @param bool       $abs           absolute url?
1800 1800
  * @param bool       $params_array  return the parmeters array?
1801
- * @return string|array - link or link parameters
1801
+ * @return string[] - link or link parameters
1802 1802
  */
1803 1803
 function media_managerURL($params = false, $amp = '&amp;', $abs = false, $params_array = false) {
1804 1804
     global $ID;
Please login to merge, or discard this patch.