Completed
Push — develop ( 923a1c...1e9876 )
by Maxim
47s queued 29s
created
manager/includes/controls/phpmailer/POP3.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
      * Connect to a POP3 server.
210 210
      *
211 211
      * @param string   $host
212
-     * @param int|bool $port
212
+     * @param integer $port
213 213
      * @param int      $tval
214 214
      *
215 215
      * @return bool
Please login to merge, or discard this patch.
manager/includes/controls/phpmailer/SMTP.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1314,7 +1314,7 @@
 block discarded – undo
1314 1314
      * If no reply has been received yet, it will return null.
1315 1315
      * If no pattern was matched, it will return false.
1316 1316
      *
1317
-     * @return bool|null|string
1317
+     * @return string
1318 1318
      *
1319 1319
      * @see recordLastTransactionID()
1320 1320
      */
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
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      * MODX_MANAGER_PATH."includes/extenders/ex_{$extname}.inc.php"
178 178
      * $extname - extension name in lowercase
179 179
      *
180
-     * @param $extname
180
+     * @param string $extname
181 181
      * @param bool $reload
182 182
      * @return bool
183 183
      */
@@ -218,9 +218,9 @@  discard block
 block discarded – undo
218 218
      *
219 219
      * @param string $url
220 220
      * @param int $count_attempts
221
-     * @param string|type $type $type
222
-     * @param string|type $responseCode
223
-     * @return bool
221
+     * @param string $type $type
222
+     * @param string $responseCode
223
+     * @return false|null
224 224
      * @global string $base_url
225 225
      * @global string $site_url
226 226
      */
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
     }
916 916
 
917 917
     /**
918
-     * @param $contents
918
+     * @param string $contents
919 919
      * @return mixed
920 920
      */
921 921
     function RecoveryEscapedTags($contents)
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
     }
940 940
 
941 941
     /**
942
-     * @param $tstart
942
+     * @param double $tstart
943 943
      * @return array
944 944
      */
945 945
     function getTimerStats($tstart)
@@ -1692,7 +1692,7 @@  discard block
 block discarded – undo
1692 1692
 
1693 1693
     /**
1694 1694
      * Remove Comment-Tags from output like <!--@- Comment -@-->
1695
-     * @param $content
1695
+     * @param string $content
1696 1696
      * @param string $left
1697 1697
      * @param string $right
1698 1698
      * @return mixed
@@ -1862,7 +1862,7 @@  discard block
 block discarded – undo
1862 1862
     /**
1863 1863
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
1864 1864
      *
1865
-     * @param $content
1865
+     * @param string $content
1866 1866
      * @return string
1867 1867
      * @internal param string $documentSource
1868 1868
      */
@@ -2901,7 +2901,7 @@  discard block
 block discarded – undo
2901 2901
 
2902 2902
     /**
2903 2903
      * @param $templateID
2904
-     * @return mixed
2904
+     * @return string
2905 2905
      */
2906 2906
     function _getTemplateCodeFromDB($templateID)
2907 2907
     {
@@ -2942,9 +2942,9 @@  discard block
 block discarded – undo
2942 2942
     }
2943 2943
 
2944 2944
     /**
2945
-     * @param $id
2945
+     * @param integer $id
2946 2946
      * @param int $top
2947
-     * @return mixed
2947
+     * @return string
2948 2948
      */
2949 2949
     function getUltimateParentId($id, $top = 0)
2950 2950
     {
@@ -3275,7 +3275,7 @@  discard block
 block discarded – undo
3275 3275
      *
3276 3276
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3277 3277
      * @param int $id Element- / Resource-id
3278
-     * @return bool
3278
+     * @return false|null
3279 3279
      */
3280 3280
     function lockElement($type, $id)
3281 3281
     {
@@ -3297,7 +3297,7 @@  discard block
 block discarded – undo
3297 3297
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3298 3298
      * @param int $id Element- / Resource-id
3299 3299
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3300
-     * @return bool
3300
+     * @return false|null
3301 3301
      */
3302 3302
     function unlockElement($type, $id, $includeAllUsers = false)
3303 3303
     {
@@ -3909,7 +3909,7 @@  discard block
 block discarded – undo
3909 3909
      *
3910 3910
      * @param string $type
3911 3911
      * @param bool $report
3912
-     * @return bool
3912
+     * @return boolean|null
3913 3913
      */
3914 3914
     function clearCache($type = '', $report = false)
3915 3915
     {
@@ -5256,7 +5256,7 @@  discard block
 block discarded – undo
5256 5256
      * Remove event listener - only for use within the current execution cycle
5257 5257
      *
5258 5258
      * @param string $evtName
5259
-     * @return boolean
5259
+     * @return false|null
5260 5260
      */
5261 5261
     function removeEventListener($evtName)
5262 5262
     {
@@ -5280,7 +5280,7 @@  discard block
 block discarded – undo
5280 5280
      *
5281 5281
      * @param string $evtName
5282 5282
      * @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.
5283
-     * @return boolean|array
5283
+     * @return false|null
5284 5284
      */
5285 5285
     function invokeEvent($evtName, $extParams = array())
5286 5286
     {
@@ -5701,7 +5701,7 @@  discard block
 block discarded – undo
5701 5701
 
5702 5702
     /**
5703 5703
      * @param string $string
5704
-     * @return mixed|string
5704
+     * @return string
5705 5705
      */
5706 5706
     function removeSanitizeSeed($string = '')
5707 5707
     {
@@ -5716,7 +5716,7 @@  discard block
 block discarded – undo
5716 5716
 
5717 5717
     /**
5718 5718
      * @param string $content
5719
-     * @return mixed|string
5719
+     * @return string
5720 5720
      */
5721 5721
     function cleanUpMODXTags($content = '')
5722 5722
     {
@@ -5879,7 +5879,7 @@  discard block
 block discarded – undo
5879 5879
 
5880 5880
     /**
5881 5881
      * @param string $str
5882
-     * @return bool|mixed|string
5882
+     * @return string
5883 5883
      */
5884 5884
     function atBindFileContent($str = '')
5885 5885
     {
@@ -5930,8 +5930,8 @@  discard block
 block discarded – undo
5930 5930
     }
5931 5931
 
5932 5932
     /**
5933
-     * @param $str
5934
-     * @return bool|string
5933
+     * @param string $str
5934
+     * @return false|string
5935 5935
      */
5936 5936
     function getExtFromFilename($str)
5937 5937
     {
@@ -5959,7 +5959,7 @@  discard block
 block discarded – undo
5959 5959
      * @param string $text Error message
5960 5960
      * @param string $file File where the error was detected
5961 5961
      * @param string $line Line number within $file
5962
-     * @return boolean
5962
+     * @return boolean|null
5963 5963
      */
5964 5964
     function phpError($nr, $text, $file, $line)
5965 5965
     {
@@ -6011,7 +6011,7 @@  discard block
 block discarded – undo
6011 6011
      * @param string $text
6012 6012
      * @param string $line
6013 6013
      * @param string $output
6014
-     * @return bool
6014
+     * @return null|boolean
6015 6015
      */
6016 6016
     function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '')
6017 6017
     {
@@ -6434,7 +6434,7 @@  discard block
 block discarded – undo
6434 6434
 
6435 6435
     /**
6436 6436
      * @param string $str
6437
-     * @return bool|mixed|string
6437
+     * @return string
6438 6438
      */
6439 6439
     function atBindInclude($str = '')
6440 6440
     {
@@ -6493,7 +6493,7 @@  discard block
 block discarded – undo
6493 6493
     }
6494 6494
 
6495 6495
     /**
6496
-     * @param $string
6496
+     * @param string $string
6497 6497
      * @param bool $returnData
6498 6498
      * @return bool|mixed
6499 6499
      */
Please login to merge, or discard this patch.
manager/includes/extenders/dbapi.mysql.class.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -618,6 +618,9 @@  discard block
 block discarded – undo
618 618
     return mysql_data_seek($result, $row_number);
619 619
   }
620 620
   
621
+    /**
622
+     * @return string
623
+     */
621 624
     function _getFieldsStringFromArray($fields=array()) {
622 625
         
623 626
         if(empty($fields)) return '*';
@@ -630,6 +633,9 @@  discard block
 block discarded – undo
630 633
         return join(',', $_);
631 634
     }
632 635
     
636
+    /**
637
+     * @return string
638
+     */
633 639
     function _getFromStringFromArray($tables=array()) {
634 640
         $_ = array();
635 641
         foreach($tables as $k=>$v) {
Please login to merge, or discard this patch.
manager/includes/extenders/dbapi.mysqli.class.inc.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -375,6 +375,9 @@  discard block
 block discarded – undo
375 375
 		return $rsArray;
376 376
 	}
377 377
 
378
+	/**
379
+	 * @return string
380
+	 */
378 381
 	function getVersion() {
379 382
 		return $this->conn->server_info;
380 383
 	}
@@ -410,6 +413,9 @@  discard block
 block discarded – undo
410 413
 		return $result->data_seek($row_number);
411 414
 	}
412 415
 	
416
+    /**
417
+     * @return string
418
+     */
413 419
     function _getFieldsStringFromArray($fields=array()) {
414 420
         
415 421
         if(empty($fields)) return '*';
@@ -422,6 +428,9 @@  discard block
 block discarded – undo
422 428
         return join(',', $_);
423 429
     }
424 430
     
431
+    /**
432
+     * @return string
433
+     */
425 434
     function _getFromStringFromArray($tables=array()) {
426 435
         $_ = array();
427 436
         foreach($tables as $k=>$v) {
Please login to merge, or discard this patch.
manager/includes/extenders/export.class.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
 		return $rs;
103 103
 	}
104 104
 
105
+	/**
106
+	 * @param string $filepath
107
+	 */
105 108
 	function makeFile($docid, $filepath)
106 109
 	{
107 110
 		global  $modx,$_lang;
@@ -250,6 +253,9 @@  discard block
 block discarded – undo
250 253
 		return implode("\n", $this->output);
251 254
 	}
252 255
 	
256
+    /**
257
+     * @param string $url
258
+     */
253 259
     function curl_get_contents($url, $timeout = 30 )
254 260
     {
255 261
     	if(!function_exists('curl_init')) return @file_get_contents($url);
Please login to merge, or discard this patch.
manager/includes/extenders/manager.api.class.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -192,6 +192,9 @@
 block discarded – undo
192 192
 		return $_;
193 193
 	}
194 194
 
195
+	/**
196
+	 * @param string $checksum
197
+	 */
195 198
 	function setSystemChecksum($checksum) {
196 199
 		global $modx;
197 200
 		$tbl_system_settings = $modx->getFullTableName('system_settings');
Please login to merge, or discard this patch.
manager/includes/extenders/modifiers.class.inc.php 1 patch
Doc Comments   +30 added lines patch added patch discarded remove patch
@@ -45,6 +45,10 @@  discard block
 block discarded – undo
45 45
         return $value;
46 46
     }
47 47
     
48
+    /**
49
+     * @param string $mode
50
+     * @param string $modifiers
51
+     */
48 52
     function _getDelim($mode,$modifiers) {
49 53
         $c = substr($modifiers,0,1);
50 54
         if(!in_array($c, array('"', "'", '`')) ) return false;
@@ -56,6 +60,11 @@  discard block
 block discarded – undo
56 60
         return  $c;
57 61
     }
58 62
     
63
+    /**
64
+     * @param string $mode
65
+     * @param false|string $delim
66
+     * @param string $modifiers
67
+     */
59 68
     function _getOpt($mode,$delim,$modifiers) {
60 69
         if($delim) {
61 70
             if($mode=='(') return substr($modifiers,1,strpos($modifiers, $delim . ')' )-1);
@@ -74,6 +83,14 @@  discard block
 block discarded – undo
74 83
             return $opt;
75 84
         }
76 85
     }
86
+
87
+    /**
88
+     * @param string $mode
89
+     * @param false|string $delim
90
+     * @param string $modifiers
91
+     *
92
+     * @return string
93
+     */
77 94
     function _getRemainModifiers($mode,$delim,$modifiers) {
78 95
         if($delim) {
79 96
             if($mode=='(')
@@ -101,6 +118,9 @@  discard block
 block discarded – undo
101 118
         return substr($string,strpos($string, $delim)+$len);
102 119
     }
103 120
     
121
+    /**
122
+     * @param string $modifiers
123
+     */
104 124
     function splitEachModifiers($modifiers) {
105 125
         global $modx;
106 126
         
@@ -234,6 +254,9 @@  discard block
 block discarded – undo
234 254
         else                  return true;
235 255
     }
236 256
     
257
+    /**
258
+     * @param string $cmd
259
+     */
237 260
     function getValueFromPreset($key, $value, $cmd, $opt)
238 261
     {
239 262
         global $modx;
@@ -920,6 +943,9 @@  discard block
 block discarded – undo
920 943
         return $value;
921 944
     }
922 945
 
946
+    /**
947
+     * @param string $cmd
948
+     */
923 949
     function includeMdfFile($cmd) {
924 950
         global $modx;
925 951
         $key = $this->key;
@@ -1075,6 +1101,10 @@  discard block
 block discarded – undo
1075 1101
     }
1076 1102
     
1077 1103
     // Sets a placeholder variable which can only be access by Modifiers
1104
+
1105
+    /**
1106
+     * @param string $value
1107
+     */
1078 1108
     function setModifiersVariable($key, $value) {
1079 1109
         if ($key != 'phx' && $key != 'dummy') $this->placeholders[$key] = $value;
1080 1110
     }
Please login to merge, or discard this patch.
manager/includes/extenders/modxmailer.class.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      * @param string $header The message headers
143 143
      * @param string $body   The message body
144 144
      * 
145
-     * @return bool
145
+     * @return boolean|null
146 146
      */
147 147
     public function MailSend($header, $body)
148 148
     {
Please login to merge, or discard this patch.