Completed
Pull Request — master (#460)
by Richard
12:51
created
htdocs/xoops_lib/Xoops/Core/Request.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *                        information see Xoops\Core\FilterInput::clean().
81 81
      * @param int    $mask    Filter mask for the variable
82 82
      *
83
-     * @return mixed  Requested variable
83
+     * @return string|null  Requested variable
84 84
      */
85 85
     public static function getVar($name, $default = null, $hash = 'default', $type = 'none', $mask = 0)
86 86
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * @param int    $default Default value if the variable does not exist
143 143
      * @param string $hash    Where the var should come from (POST, GET, FILES, COOKIE, METHOD)
144 144
      *
145
-     * @return int    Requested variable
145
+     * @return string|null    Requested variable
146 146
      */
147 147
     public static function getInt($name, $default = 0, $hash = 'default')
148 148
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param float  $default Default value if the variable does not exist
161 161
      * @param string $hash    Where the var should come from (POST, GET, FILES, COOKIE, METHOD)
162 162
      *
163
-     * @return float  Requested variable
163
+     * @return string|null  Requested variable
164 164
      */
165 165
     public static function getFloat($name, $default = 0.0, $hash = 'default')
166 166
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      * @param bool   $default Default value if the variable does not exist
179 179
      * @param string $hash    Where the var should come from (POST, GET, FILES, COOKIE, METHOD)
180 180
      *
181
-     * @return bool Requested variable
181
+     * @return string|null Requested variable
182 182
      */
183 183
     public static function getBool($name, $default = false, $hash = 'default')
184 184
     {
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      * @param mixed  $default Default value if the variable does not exist
249 249
      * @param string $hash    Where the var should come from (POST, GET, FILES, COOKIE, METHOD)
250 250
      *
251
-     * @return array
251
+     * @return string|null
252 252
      */
253 253
     public static function getArray($name, $default = array(), $hash = 'default')
254 254
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Core/Service/Provider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     /**
113 113
      * getRegistered - access list of registered providers
114 114
      *
115
-     * @return array of registered providers managed by this instance
115
+     * @return AbstractContract[] of registered providers managed by this instance
116 116
      */
117 117
     public function &getRegistered()
118 118
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Core/Session/RememberMe.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     /**
90 90
      * Recall a user id from the "remember me" cookie.
91 91
      *
92
-     * @return integer|false user id, or false if non-exisiting or invalid cookie
92
+     * @return integer user id, or false if non-exisiting or invalid cookie
93 93
      */
94 94
     public function recall()
95 95
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Core/Text/Sanitizer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
      *
550 550
      * @param string $name extension name
551 551
      *
552
-     * @return mixed
552
+     * @return string
553 553
      */
554 554
     public function executeFilter($name)
555 555
     {
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
      * @param string   $default     default value is no match
592 592
      * @param bool     $firstLetter match first letter only
593 593
      *
594
-     * @return mixed matched string, or default if no match
594
+     * @return string matched string, or default if no match
595 595
      */
596 596
     public function cleanEnum($text, $enumSet, $default = '', $firstLetter = false)
597 597
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Core/Text/Sanitizer/Extensions/Embed.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *
40 40
      * @param string $text text string to filter
41 41
      *
42
-     * @return mixed
42
+     * @return string
43 43
      */
44 44
     public function applyFilter($text)
45 45
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Core/Yaml.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @param integer $inline   Nesting level where you switch to inline YAML
105 105
      * @param integer $indent   Number of spaces to indent for nested nodes
106 106
      *
107
-     * @return integer|boolean number of bytes written, or false on error
107
+     * @return null|false number of bytes written, or false on error
108 108
      */
109 109
     public static function save($var, $yamlFile, $inline = 4, $indent = 4)
110 110
     {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param integer $inline Nesting level where you switch to inline YAML
131 131
      * @param integer $indent Number of spaces to indent for nested nodes
132 132
      *
133
-     * @return string|boolean YAML string or false on error
133
+     * @return string|false YAML string or false on error
134 134
      */
135 135
     public static function dumpWrapped($var, $inline = 4, $indent = 4)
136 136
     {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      * @param integer $inline   Nesting level where you switch to inline YAML
208 208
      * @param integer $indent   Number of spaces to indent for nested nodes
209 209
      *
210
-     * @return integer|boolean number of bytes written, or false on error
210
+     * @return null|false number of bytes written, or false on error
211 211
      */
212 212
     public static function saveWrapped($var, $yamlFile, $inline = 4, $indent = 4)
213 213
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Form/DhtmlTextArea.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@
 block discarded – undo
321 321
     /**
322 322
      * renderValidationJS
323 323
      *
324
-     * @return bool|string
324
+     * @return string|false
325 325
      */
326 326
     public function renderValidationJS()
327 327
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Form/TabTray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * __construct
28 28
      *
29
-     * @param string|array $caption Caption or array of all attributes
29
+     * @param string $caption Caption or array of all attributes
30 30
      * @param string       $name    Unique identifier for this tray
31 31
      */
32 32
     public function __construct($caption, $name = null)
Please login to merge, or discard this patch.
htdocs/xoops_lib/Xoops/Html/Attributes.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     /**
73 73
      * Add attributes to the render suppression list
74 74
      *
75
-     * @param string|string[] $names attributes to suppress
75
+     * @param string[] $names attributes to suppress
76 76
      *
77 77
      * @return void
78 78
      */
Please login to merge, or discard this patch.