Completed
Branch boring_stuff_2 (8c6745)
by Emanuele
10:34
created
install/CommonCode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -684,7 +684,7 @@
 block discarded – undo
684 684
 /**
685 685
  * Check files are writable - make them writable if necessary...
686 686
  *
687
- * @param array $files
687
+ * @param string[] $files
688 688
  */
689 689
 function makeFilesWritable(&$files)
690 690
 {
Please login to merge, or discard this patch.
install/install.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -223,6 +223,9 @@
 block discarded – undo
223 223
 	return saveFileSettings($config_vars, $settingsArray);
224 224
 }
225 225
 
226
+/**
227
+ * @param string $sql_file
228
+ */
226 229
 function parse_sqlLines($sql_file, $replaces)
227 230
 {
228 231
 	global $incontext, $txt, $db_prefix;
Please login to merge, or discard this patch.
sources/ext/bad-behavior/badbehavior-plugin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 /**
29 29
  * Return current time in the format preferred by your database.
30 30
  *
31
- * @return string
31
+ * @return integer
32 32
  */
33 33
 function bb2_db_date()
34 34
 {
Please login to merge, or discard this patch.
sources/ext/GoogleAuthenticator.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@  discard block
 block discarded – undo
160 160
 	/**
161 161
 	 * Helper class to decode base32.
162 162
 	 *
163
-	 * @param $secret
163
+	 * @param string $secret
164 164
 	 *
165
-	 * @return bool|string
165
+	 * @return string|false
166 166
 	 */
167 167
 	protected function _base32Decode($secret)
168 168
 	{
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	/**
208 208
 	 * Get array with all 32 characters for decoding from/encoding to base32.
209 209
 	 *
210
-	 * @return array
210
+	 * @return string[]
211 211
 	 */
212 212
 	protected function _getBase32LookupTable()
213 213
 	{
Please login to merge, or discard this patch.
sources/ext/JSqueeze.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -123,6 +123,7 @@  discard block
 block discarded – undo
123 123
      * Example:
124 124
      * $parser = new JSqueeze;
125 125
      * $squeezed_js = $parser->squeeze($fat_js);
126
+     * @param string $code
126 127
      */
127 128
     public function squeeze($code, $singleLine = true, $keepImportantComments = true, $specialVarRx = false)
128 129
     {
@@ -183,6 +184,9 @@  discard block
 block discarded – undo
183 184
         return $code;
184 185
     }
185 186
 
187
+    /**
188
+     * @param string $f
189
+     */
186 190
     protected function extractStrings($f)
187 191
     {
188 192
         if ($cc_on = false !== strpos($f, '@cc_on')) {
@@ -528,6 +532,9 @@  discard block
 block discarded – undo
528 532
         return array($f, $strings);
529 533
     }
530 534
 
535
+    /**
536
+     * @param string $code
537
+     */
531 538
     protected function extractClosures($code)
532 539
     {
533 540
         $code = ';'.$code;
@@ -613,6 +620,9 @@  discard block
 block discarded – undo
613 620
         return array($f[0], $closures);
614 621
     }
615 622
 
623
+    /**
624
+     * @param string $key
625
+     */
616 626
     protected function makeVars($closure, &$tree, $key)
617 627
     {
618 628
         $tree['code'] = &$closure;
@@ -826,6 +836,9 @@  discard block
 block discarded – undo
826 836
         return str_replace("\nvar ", ',', $m[0]);
827 837
     }
828 838
 
839
+    /**
840
+     * @param boolean $root
841
+     */
829 842
     protected function renameVars(&$tree, $root)
830 843
     {
831 844
         if ($root) {
@@ -1013,6 +1026,9 @@  discard block
 block discarded – undo
1013 1026
         return !(isset($this->reserved[$name]) || isset($exclude[$name])) ? $name : $this->getNextName($exclude, $counter);
1014 1027
     }
1015 1028
 
1029
+    /**
1030
+     * @param string $s
1031
+     */
1016 1032
     protected function restoreCc(&$s, $lf = true)
1017 1033
     {
1018 1034
         $lf && $s = str_replace('@#3', '', $s);
Please login to merge, or discard this patch.
sources/subs/Bans.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
  *
236 236
  * @param mixed[] $triggers
237 237
  *
238
- * @return array
238
+ * @return integer
239 239
  */
240 240
 function validateTriggers(&$triggers)
241 241
 {
Please login to merge, or discard this patch.
sources/subs/Boards.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2121,7 +2121,7 @@
 block discarded – undo
2121 2121
  * Count boards all or specific depending on argument, redirect boards excluded by default.
2122 2122
  *
2123 2123
  * @package Boards
2124
- * @param mixed[]|string $conditions is an associative array that holds the board or the cat IDs
2124
+ * @param string $conditions is an associative array that holds the board or the cat IDs
2125 2125
  *              'categories' => an array of category IDs (it accepts a single ID too)
2126 2126
  *              'boards' => an array of board IDs (it accepts a single ID too)
2127 2127
  *              if conditions is set to 'all' (not an array) all the boards are queried
Please login to merge, or discard this patch.
sources/subs/Mail.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -783,7 +783,7 @@
 block discarded – undo
783 783
  * @param string $encoded_unq_head
784 784
  * @param string $line_break
785 785
  *
786
- * @return mixed|null|string|string[]
786
+ * @return string
787 787
  */
788 788
 function mail_insert_key($message, $unq_head, $encoded_unq_head, $line_break)
789 789
 {
Please login to merge, or discard this patch.
sources/subs/Maintenance.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@
 block discarded – undo
303 303
  *
304 304
  * @param string $column
305 305
  *
306
- * @return bool
306
+ * @return false|null
307 307
  */
308 308
 function resetBoardsCounter($column)
309 309
 {
Please login to merge, or discard this patch.