Failed Conditions
Pull Request — master (#2945)
by Michael
10:36 queued 07:45
created
inc/Extension/PluginTrait.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -85,6 +85,7 @@
 block discarded – undo
85 85
 
86 86
     /**
87 87
      * @see PluginInterface::getLang()
88
+     * @param string $id
88 89
      */
89 90
     public function getLang($id)
90 91
     {
Please login to merge, or discard this patch.
lib/plugins/extension/helper/extension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -824,7 +824,7 @@
 block discarded – undo
824 824
      * @param string $url           url to download
825 825
      * @param string $file          path to file or directory where to save
826 826
      * @param string $defaultName   fallback for name of download
827
-     * @return bool|string          if failed false, otherwise true or the name of the file in the given dir
827
+     * @return false|string          if failed false, otherwise true or the name of the file in the given dir
828 828
      */
829 829
     protected function downloadToFile($url,$file,$defaultName=''){
830 830
         global $conf;
Please login to merge, or discard this patch.
inc/parser/metadata.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      * keep track of internal links in $this->meta['relation']['references']
457 457
      *
458 458
      * @param string            $id   page ID to link to. eg. 'wiki:syntax'
459
-     * @param string|array|null $name name for the link, array for media file
459
+     * @param string $name name for the link, array for media file
460 460
      */
461 461
     public function internallink($id, $name = null)
462 462
     {
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
      *
656 656
      * @param string $name
657 657
      *
658
-     * @return mixed|string
658
+     * @return string
659 659
      */
660 660
     public function _simpleTitle($name)
661 661
     {
Please login to merge, or discard this patch.
inc/Debug/PropertyDeprecationHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      * Like property_exists but also check for non-visible private properties and returns which
102 102
      * class in the inheritance chain declared the property.
103 103
      * @param string $property
104
-     * @return string|bool Best guess for the class in which the property is defined.
104
+     * @return string|false Best guess for the class in which the property is defined.
105 105
      */
106 106
     private function deprecationHelperGetPropertyOwner($property)
107 107
     {
Please login to merge, or discard this patch.
inc/PassHash.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@
 block discarded – undo
113 113
      * @param string|null &$salt  The salt, pass null if you want one generated
114 114
      * @param int          $len   The length of the salt
115 115
      * @param bool         $cut   Apply length restriction to existing salt?
116
+     * @param string|null $salt
116 117
      */
117 118
     public function init_salt(&$salt, $len = 32, $cut = true) {
118 119
         if(is_null($salt)) {
Please login to merge, or discard this patch.
inc/Cache/Cache.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
         return $this->_event;
56 56
     }
57 57
 
58
+    /**
59
+     * @param string $event
60
+     */
58 61
     public function setEvent($event)
59 62
     {
60 63
         $this->_event = $event;
Please login to merge, or discard this patch.
inc/Extension/Event.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,6 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * advise all registered AFTER handlers of this event
82 82
      *
83
-     * @param bool $enablePreventDefault
84 83
      * @see advise_before() for details
85 84
      */
86 85
     public function advise_after()
@@ -190,7 +189,7 @@  discard block
 block discarded – undo
190 189
      * @param callable $action (optional, default=NULL) default action, a php callback function
191 190
      * @param bool $canPreventDefault (optional, default=true) can hooks prevent the default action
192 191
      *
193
-     * @return mixed                        the event results value after all event processing is complete
192
+     * @return boolean                        the event results value after all event processing is complete
194 193
      *                                      by default this is the return value of the default action however
195 194
      *                                      it can be set or modified by event handler hooks
196 195
      */
Please login to merge, or discard this patch.
inc/TaskRunner.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use dokuwiki\Extension\Event;
6 6
 use dokuwiki\Sitemap\Mapper;
7 7
 use dokuwiki\Subscriptions\BulkSubscriptionSender;
8
-use Subscription;
9 8
 
10 9
 /**
11 10
  * Class TaskRunner
Please login to merge, or discard this patch.
inc/Utf8/Conversion.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     /**
105 105
      * Decodes numeric HTML entities to their correct UTF-8 characters
106 106
      *
107
-     * @param $ent string A numeric entity
107
+     * @param string $ent string A numeric entity
108 108
      * @return string|false
109 109
      */
110 110
     protected static function decodeNumericEntity($ent)
Please login to merge, or discard this patch.