Failed Conditions
Pull Request — master (#2943)
by Andreas
03:19
created
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/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.
inc/JpegMeta.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2545,7 +2545,7 @@  discard block
 block discarded – undo
2545 2545
      * @param string $header
2546 2546
      * @param mixed $value
2547 2547
      *
2548
-     * @return int|mixed
2548
+     * @return integer
2549 2549
      */
2550 2550
     function _write8BIM(&$data, $pos, $type, $header, &$value) {
2551 2551
         $signature = "8BIM";
@@ -2613,7 +2613,7 @@  discard block
 block discarded – undo
2613 2613
      * @param string $type
2614 2614
      * @param mixed $value
2615 2615
      *
2616
-     * @return int|mixed
2616
+     * @return integer
2617 2617
      */
2618 2618
     function _writeIPTCEntry(&$data, $pos, $type, &$value) {
2619 2619
         $pos = $this->_putShort($data, $pos, 0x1C02);
@@ -2775,6 +2775,10 @@  discard block
 block discarded – undo
2775 2775
     }
2776 2776
 
2777 2777
     /*************************************************************/
2778
+
2779
+    /**
2780
+     * @param string $mode
2781
+     */
2778 2782
     function _exifTagTypes($mode) {
2779 2783
         $tags = array();
2780 2784
 
@@ -2925,6 +2929,10 @@  discard block
 block discarded – undo
2925 2929
     }
2926 2930
 
2927 2931
     /*************************************************************/
2932
+
2933
+    /**
2934
+     * @param string $mode
2935
+     */
2928 2936
     function _exifNameTags($mode) {
2929 2937
         $tags = $this->_exifTagNames($mode);
2930 2938
         return $this->_names2Tags($tags);
@@ -3005,6 +3013,10 @@  discard block
 block discarded – undo
3005 3013
     }
3006 3014
 
3007 3015
     /*************************************************************/
3016
+
3017
+    /**
3018
+     * @param integer $pos
3019
+     */
3008 3020
     function _getShort(&$data, $pos, $bigEndian = true) {
3009 3021
         if ($bigEndian) {
3010 3022
             return (ord($data[$pos]) << 8)
Please login to merge, or discard this patch.
inc/IXR_Library.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     var $capabilities;
388 388
 
389 389
     /**
390
-     * @param array|bool $callbacks
390
+     * @param boolean $callbacks
391 391
      * @param bool $data
392 392
      * @param bool $wait
393 393
      */
@@ -1088,7 +1088,7 @@  discard block
 block discarded – undo
1088 1088
 
1089 1089
     /**
1090 1090
      * @param string $method
1091
-     * @return mixed
1091
+     * @return string
1092 1092
      */
1093 1093
     function methodHelp($method) {
1094 1094
         return $this->help[$method];
Please login to merge, or discard this patch.
inc/Subscriptions/MediaSubscriptionSender.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * @param string   $template        Mail template ('uploadmail', ...)
17 17
      * @param string   $id              Media file for which the notification is
18 18
      * @param int|bool $rev             Old revision if any
19
-     * @param int|bool $current_rev     New revision if any
19
+     * @param boolean $current_rev     New revision if any
20 20
      */
21 21
     public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false)
22 22
     {
Please login to merge, or discard this patch.
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/Debug/PropertyDeprecationHelper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *   call it in the constructor.
48 48
      *
49 49
      * @param string $property The name of the property.
50
-     * @param null $class name of the class defining the property
50
+     * @param string $class name of the class defining the property
51 51
      * @see DebugHelper::dbgDeprecatedProperty
52 52
      */
53 53
     protected function deprecatePublicProperty(
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * Like property_exists but also check for non-visible private properties and returns which
100 100
      * class in the inheritance chain declared the property.
101 101
      * @param string $property
102
-     * @return string|bool Best guess for the class in which the property is defined.
102
+     * @return string|false Best guess for the class in which the property is defined.
103 103
      */
104 104
     private function deprecationHelperGetPropertyOwner($property)
105 105
     {
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.