Completed
Branch boring_stuff_2 (8c6745)
by Emanuele
10:34
created
sources/ElkArte/UserSettingsLoader.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,6 @@
 block discarded – undo
327 327
 	 * Determines the language to be used.
328 328
 	 * Checks the current user setting, the $_GET['language'], the session and $modSettings
329 329
 	 *
330
-	 * @param mixed[] $user_info
331 330
 	 */
332 331
 	protected function getLanguage()
333 332
 	{
Please login to merge, or discard this patch.
sources/ElkArte/VerificationControls/VerificationControl/Questions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@
 block discarded – undo
292 292
 	 * Prepares the questions coming from the UI to be saved into the database.
293 293
 	 *
294 294
 	 * @param string[] $save_question
295
-	 * @return boolean
295
+	 * @return integer
296 296
 	 */
297 297
 	protected function _saveSettings($save_question, $save_answer, $save_language)
298 298
 	{
Please login to merge, or discard this patch.
sources/ElkArte/XmlArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	 * @param string $path - the path to the element to fetch
103 103
 	 * @param bool $get_elements - whether to include elements
104 104
 	 *
105
-	 * @return bool|string
105
+	 * @return false|string
106 106
 	 */
107 107
 	public function fetch($path, $get_elements = false)
108 108
 	{
Please login to merge, or discard this patch.
sources/ext/ClassLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -367,6 +367,10 @@
 block discarded – undo
367 367
         return $file;
368 368
     }
369 369
 
370
+    /**
371
+     * @param string $class
372
+     * @param string $ext
373
+     */
370 374
     private function findFileWithExtension($class, $ext)
371 375
     {
372 376
         // PSR-4 lookup
Please login to merge, or discard this patch.
sources/ext/markdown/Michelf/MarkdownExtra.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 	 * @param  integer $indent
378 378
 	 * @param  string  $enclosing_tag_re
379 379
 	 * @param  boolean $span
380
-	 * @return array
380
+	 * @return string[]
381 381
 	 */
382 382
 	protected function _hashHTMLBlocks_inMarkdown($text, $indent = 0,
383 383
 										$enclosing_tag_re = '', $span = false)
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 	 * @param  string $text
591 591
 	 * @param  string $hash_method
592 592
 	 * @param  string $md_attr
593
-	 * @return array
593
+	 * @return string[]
594 594
 	 */
595 595
 	protected function _hashHTMLBlocks_inHTML($text, $hash_method, $md_attr) {
596 596
 		if ($text === '') return array('', '');
Please login to merge, or discard this patch.
sources/ext/simple_html_dom.php 1 patch
Doc Comments   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,6 +146,9 @@  discard block
 block discarded – undo
146 146
 }
147 147
 
148 148
 // get html dom from string
149
+/**
150
+ * @param string $target_charset
151
+ */
149 152
 function str_get_html(
150 153
 	$str,
151 154
 	$lowercase = true,
@@ -252,6 +255,7 @@  discard block
 block discarded – undo
252 255
 	 * Construct new node object
253 256
 	 *
254 257
 	 * Adds itself to the list of DOM Nodes {@see simple_html_dom::$nodes}
258
+	 * @param simple_html_dom $dom
255 259
 	 */
256 260
 	function __construct($dom)
257 261
 	{
@@ -2041,7 +2045,7 @@  discard block
 block discarded – undo
2041 2045
 	/**
2042 2046
 	 * Parse HTML content
2043 2047
 	 *
2044
-	 * @return bool True on success
2048
+	 * @return boolean|null True on success
2045 2049
 	 */
2046 2050
 	protected function parse()
2047 2051
 	{
@@ -2470,9 +2474,9 @@  discard block
 block discarded – undo
2470 2474
 	/**
2471 2475
 	 * Parse attribute from current document position
2472 2476
 	 *
2473
-	 * @param object $node Node for the attributes
2477
+	 * @param simple_html_dom_node $node Node for the attributes
2474 2478
 	 * @param string $name Name of the current attribute
2475
-	 * @param array $space Array for spacing information
2479
+	 * @param string[] $space Array for spacing information
2476 2480
 	 * @return void
2477 2481
 	 */
2478 2482
 	protected function parse_attr($node, $name, &$space)
@@ -2524,6 +2528,11 @@  discard block
 block discarded – undo
2524 2528
 	 * @return void
2525 2529
 	 */
2526 2530
 	// link node's parent
2531
+
2532
+	/**
2533
+	 * @param simple_html_dom_node $node
2534
+	 * @param boolean $is_child
2535
+	 */
2527 2536
 	protected function link_nodes(&$node, $is_child)
2528 2537
 	{
2529 2538
 		$node->parent = $this->parent;
Please login to merge, or discard this patch.
sources/Security.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
  * @param string $message = ''
173 173
  * @param boolean $is_fatal = true
174 174
  *
175
- * @return bool
175
+ * @return boolean|null
176 176
  * @throws \ElkArte\Exceptions\Exception
177 177
  */
178 178
 function is_not_guest($message = '', $is_fatal = true)
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
  * @param string $action
990 990
  * @param bool   $is_fatal = true
991 991
  *
992
- * @return bool
992
+ * @return null|boolean
993 993
  * @throws \ElkArte\Exceptions\Exception error_form_already_submitted
994 994
  */
995 995
 function checkSubmitOnce($action, $is_fatal = false)
Please login to merge, or discard this patch.
sources/Subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1868,7 +1868,7 @@
 block discarded – undo
1868 1868
 /**
1869 1869
  * Initialize the URL generator
1870 1870
  *
1871
- * @return object The URL generator object
1871
+ * @return ElkArte\UrlGenerator\UrlGenerator The URL generator object
1872 1872
  */
1873 1873
 function initUrlGenerator()
1874 1874
 {
Please login to merge, or discard this patch.
sources/subs/Attachments.subs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2296,7 +2296,7 @@
 block discarded – undo
2296 2296
  * This function returns the mimeType of a file using the best means available
2297 2297
  *
2298 2298
  * @param string $filename
2299
- * @return bool|mixed|string
2299
+ * @return string
2300 2300
  */
2301 2301
 function get_finfo_mime($filename)
2302 2302
 {
Please login to merge, or discard this patch.