Completed
Push — develop ( 4a4b5c...62a102 )
by Maxim
16s
created
install/functions.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -33,6 +33,10 @@
 block discarded – undo
33 33
 }
34 34
 
35 35
 if( ! function_exists('parse')) {
36
+
37
+    /**
38
+     * @param string $src
39
+     */
36 40
     function parse($src, $ph, $left = '[+', $right = '+]')
37 41
     {
38 42
         foreach ($ph as $k => $v) {
Please login to merge, or discard this patch.
manager/actions/mutate_settings/functions.inc.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@
 block discarded – undo
18 18
 /**
19 19
  * get_langs_by_key
20 20
  *
21
+ * @param string $key
21 22
  * @return array of languages that define the key in their file
22 23
  */
23 24
 function get_langs_by_key($key) {
Please login to merge, or discard this patch.
manager/includes/document.parser.class.inc.php 1 patch
Doc Comments   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      * MODX_MANAGER_PATH."includes/extenders/ex_{$extname}.inc.php"
253 253
      * $extname - extension name in lowercase
254 254
      *
255
-     * @param $extname
255
+     * @param string $extname
256 256
      * @param bool $reload
257 257
      * @return bool
258 258
      */
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      * @param int $count_attempts
296 296
      * @param string $type $type
297 297
      * @param string $responseCode
298
-     * @return bool
298
+     * @return false|null
299 299
      * @global string $base_url
300 300
      * @global string $site_url
301 301
      */
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
     }
996 996
 
997 997
     /**
998
-     * @param $contents
998
+     * @param string $contents
999 999
      * @return mixed
1000 1000
      */
1001 1001
     public function RecoveryEscapedTags($contents)
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
     }
1020 1020
 
1021 1021
     /**
1022
-     * @param $tstart
1022
+     * @param double $tstart
1023 1023
      * @return array
1024 1024
      */
1025 1025
     public function getTimerStats($tstart)
@@ -1771,7 +1771,7 @@  discard block
 block discarded – undo
1771 1771
 
1772 1772
     /**
1773 1773
      * Remove Comment-Tags from output like <!--@- Comment -@-->
1774
-     * @param $content
1774
+     * @param string $content
1775 1775
      * @param string $left
1776 1776
      * @param string $right
1777 1777
      * @return mixed
@@ -1944,7 +1944,7 @@  discard block
 block discarded – undo
1944 1944
     /**
1945 1945
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
1946 1946
      *
1947
-     * @param $content
1947
+     * @param string $content
1948 1948
      * @return string
1949 1949
      * @internal param string $documentSource
1950 1950
      */
@@ -2977,7 +2977,7 @@  discard block
 block discarded – undo
2977 2977
 
2978 2978
     /**
2979 2979
      * @param $templateID
2980
-     * @return mixed
2980
+     * @return string
2981 2981
      */
2982 2982
     public function _getTemplateCodeFromDB($templateID)
2983 2983
     {
@@ -3018,9 +3018,9 @@  discard block
 block discarded – undo
3018 3018
     }
3019 3019
 
3020 3020
     /**
3021
-     * @param $id
3021
+     * @param integer $id
3022 3022
      * @param int $top
3023
-     * @return mixed
3023
+     * @return string
3024 3024
      */
3025 3025
     public function getUltimateParentId($id, $top = 0)
3026 3026
     {
@@ -3351,7 +3351,7 @@  discard block
 block discarded – undo
3351 3351
      *
3352 3352
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3353 3353
      * @param int $id Element- / Resource-id
3354
-     * @return bool
3354
+     * @return false|null
3355 3355
      */
3356 3356
     public function lockElement($type, $id)
3357 3357
     {
@@ -3373,7 +3373,7 @@  discard block
 block discarded – undo
3373 3373
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3374 3374
      * @param int $id Element- / Resource-id
3375 3375
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3376
-     * @return bool
3376
+     * @return false|null
3377 3377
      */
3378 3378
     public function unlockElement($type, $id, $includeAllUsers = false)
3379 3379
     {
@@ -3481,7 +3481,7 @@  discard block
 block discarded – undo
3481 3481
      * @param array $params
3482 3482
      * @param string $msg
3483 3483
      * @param array $files
3484
-     * @return mixed
3484
+     * @return boolean
3485 3485
      */
3486 3486
     public function sendmail($params = array(), $msg = '', $files = array())
3487 3487
     {
@@ -3977,7 +3977,7 @@  discard block
 block discarded – undo
3977 3977
      *
3978 3978
      * @param string $type
3979 3979
      * @param bool $report
3980
-     * @return bool
3980
+     * @return boolean|null
3981 3981
      */
3982 3982
     public function clearCache($type = '', $report = false)
3983 3983
     {
@@ -5322,7 +5322,7 @@  discard block
 block discarded – undo
5322 5322
      * Remove event listener - only for use within the current execution cycle
5323 5323
      *
5324 5324
      * @param string $evtName
5325
-     * @return boolean
5325
+     * @return false|null
5326 5326
      */
5327 5327
     public function removeEventListener($evtName)
5328 5328
     {
@@ -5346,7 +5346,7 @@  discard block
 block discarded – undo
5346 5346
      *
5347 5347
      * @param string $evtName
5348 5348
      * @param array $extParams Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value.
5349
-     * @return boolean|array
5349
+     * @return false|null
5350 5350
      */
5351 5351
     public function invokeEvent($evtName, $extParams = array())
5352 5352
     {
@@ -5767,7 +5767,7 @@  discard block
 block discarded – undo
5767 5767
 
5768 5768
     /**
5769 5769
      * @param string $string
5770
-     * @return mixed|string
5770
+     * @return string
5771 5771
      */
5772 5772
     public function removeSanitizeSeed($string = '')
5773 5773
     {
@@ -5782,7 +5782,7 @@  discard block
 block discarded – undo
5782 5782
 
5783 5783
     /**
5784 5784
      * @param string $content
5785
-     * @return mixed|string
5785
+     * @return string
5786 5786
      */
5787 5787
     public function cleanUpMODXTags($content = '')
5788 5788
     {
@@ -5945,7 +5945,7 @@  discard block
 block discarded – undo
5945 5945
 
5946 5946
     /**
5947 5947
      * @param string $str
5948
-     * @return bool|mixed|string
5948
+     * @return string
5949 5949
      */
5950 5950
     public function atBindFileContent($str = '')
5951 5951
     {
@@ -5996,8 +5996,8 @@  discard block
 block discarded – undo
5996 5996
     }
5997 5997
 
5998 5998
     /**
5999
-     * @param $str
6000
-     * @return bool|string
5999
+     * @param string $str
6000
+     * @return false|string
6001 6001
      */
6002 6002
     public function getExtFromFilename($str)
6003 6003
     {
@@ -6025,7 +6025,7 @@  discard block
 block discarded – undo
6025 6025
      * @param string $text Error message
6026 6026
      * @param string $file File where the error was detected
6027 6027
      * @param string $line Line number within $file
6028
-     * @return boolean
6028
+     * @return boolean|null
6029 6029
      */
6030 6030
     public function phpError($nr, $text, $file, $line)
6031 6031
     {
@@ -6077,7 +6077,7 @@  discard block
 block discarded – undo
6077 6077
      * @param string $text
6078 6078
      * @param string $line
6079 6079
      * @param string $output
6080
-     * @return bool
6080
+     * @return null|boolean
6081 6081
      */
6082 6082
     public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '')
6083 6083
     {
@@ -6499,7 +6499,7 @@  discard block
 block discarded – undo
6499 6499
 
6500 6500
     /**
6501 6501
      * @param string $str
6502
-     * @return bool|mixed|string
6502
+     * @return string
6503 6503
      */
6504 6504
     public function atBindInclude($str = '')
6505 6505
     {
@@ -6550,7 +6550,7 @@  discard block
 block discarded – undo
6550 6550
      * @param $str
6551 6551
      * @param int $flags
6552 6552
      * @param string $encode
6553
-     * @return mixed
6553
+     * @return string
6554 6554
      */
6555 6555
     public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '')
6556 6556
     {
@@ -6559,7 +6559,7 @@  discard block
 block discarded – undo
6559 6559
     }
6560 6560
 
6561 6561
     /**
6562
-     * @param $string
6562
+     * @param string $string
6563 6563
      * @param bool $returnData
6564 6564
      * @return bool|mixed
6565 6565
      */
Please login to merge, or discard this patch.