Completed
Push — develop ( 75b835...a38a21 )
by Maxim
09:33 queued 04:23
created
manager/actions/files.dynamic.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -565,6 +565,9 @@  discard block
 block discarded – undo
565 565
 
566 566
 }
567 567
 
568
+/**
569
+ * @param string $file
570
+ */
568 571
 function determineIcon($file, $selFile, $mode)
569 572
 {
570 573
     $icons = array(
@@ -709,6 +712,9 @@  discard block
 block discarded – undo
709 712
     return $path;
710 713
 }
711 714
 
715
+/**
716
+ * @param string $string
717
+ */
712 718
 function getExtension($string)
713 719
 {
714 720
     $pos = strrpos($string, '.');
@@ -744,6 +750,9 @@  discard block
 block discarded – undo
744 750
     return @mkdir($strPath);
745 751
 }
746 752
 
753
+/**
754
+ * @param string $type
755
+ */
747 756
 function logFileChange($type, $filename)
748 757
 {
749 758
     //global $_lang;
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -733,7 +733,8 @@  discard block
 block discarded – undo
733 733
 }
734 734
 
735 735
 function mkdirs($strPath, $mode)
736
-{ // recursive mkdir function
736
+{
737
+// recursive mkdir function
737 738
     if (is_dir($strPath)) {
738 739
         return true;
739 740
     }
@@ -838,7 +839,9 @@  discard block
 block discarded – undo
838 839
     global $modx, $_lang, $startpath, $filemanager_path, $uploadablefiles, $new_file_permissions;
839 840
     $msg = '';
840 841
     foreach ($_FILES['userfile']['name'] as $i => $name) {
841
-        if (empty($_FILES['userfile']['tmp_name'][$i])) continue;
842
+        if (empty($_FILES['userfile']['tmp_name'][$i])) {
843
+            continue;
844
+        }
842 845
         $userfile= array();
843 846
 
844 847
         $userfile['tmp_name'] = $_FILES['userfile']['tmp_name'][$i];
Please login to merge, or discard this patch.
manager/actions/import_site.static.php 2 patches
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -160,6 +160,11 @@  discard block
 block discarded – undo
160 160
 	return $output;
161 161
 }
162 162
 
163
+/**
164
+ * @param integer $parent
165
+ * @param string $filedir
166
+ * @param string $mode
167
+ */
163 168
 function importFiles($parent, $filedir, $files, $mode) {
164 169
 	global $modx;
165 170
 	global $_lang, $allowedfiles;
@@ -302,6 +307,9 @@  discard block
 block discarded – undo
302 307
 	}
303 308
 }
304 309
 
310
+/**
311
+ * @param string $directory
312
+ */
305 313
 function getFiles($directory, $listing = array(), $count = 0) {
306 314
 	global $_lang;
307 315
 	global $filesfound;
@@ -326,6 +334,9 @@  discard block
 block discarded – undo
326 334
 	return ($listing);
327 335
 }
328 336
 
337
+/**
338
+ * @param string $filepath
339
+ */
329 340
 function getFileContent($filepath) {
330 341
 	global $_lang;
331 342
 	// get the file
@@ -353,6 +364,9 @@  discard block
 block discarded – undo
353 364
 	return $new_array;
354 365
 }
355 366
 
367
+/**
368
+ * @param null|string $src
369
+ */
356 370
 function treatContent($src, $filename, $alias) {
357 371
 	global $modx;
358 372
 
Please login to merge, or discard this patch.
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -101,7 +101,8 @@  discard block
 block discarded – undo
101 101
 	</div>
102 102
 
103 103
 <?php
104
-function run() {
104
+function run()
105
+{
105 106
 	global $modx, $_lang;
106 107
 
107 108
 	$tbl_site_content = $modx->getFullTableName('site_content');
@@ -162,7 +163,8 @@  discard block
 block discarded – undo
162 163
 	return $output;
163 164
 }
164 165
 
165
-function importFiles($parent, $filedir, $files, $mode) {
166
+function importFiles($parent, $filedir, $files, $mode)
167
+{
166 168
 	global $modx;
167 169
 	global $_lang, $allowedfiles;
168 170
 	global $search_default, $cache_default, $publish_default;
@@ -303,7 +305,8 @@  discard block
 block discarded – undo
303 305
 	}
304 306
 }
305 307
 
306
-function getFiles($directory, $listing = array(), $count = 0) {
308
+function getFiles($directory, $listing = array(), $count = 0)
309
+{
307 310
 	global $_lang;
308 311
 	global $filesfound;
309 312
 	$dummy = $count;
@@ -327,7 +330,8 @@  discard block
 block discarded – undo
327 330
 	return ($listing);
328 331
 }
329 332
 
330
-function getFileContent($filepath) {
333
+function getFileContent($filepath)
334
+{
331 335
 	global $_lang;
332 336
 	// get the file
333 337
 	if(!$buffer = file_get_contents($filepath)) {
@@ -337,7 +341,8 @@  discard block
 block discarded – undo
337 341
 	}
338 342
 }
339 343
 
340
-function pop_index($array) {
344
+function pop_index($array)
345
+{
341 346
 	$new_array = array();
342 347
 	foreach($array as $k => $v) {
343 348
 		if($v !== 'index.html' && $v !== 'index.htm') {
@@ -354,7 +359,8 @@  discard block
 block discarded – undo
354 359
 	return $new_array;
355 360
 }
356 361
 
357
-function treatContent($src, $filename, $alias) {
362
+function treatContent($src, $filename, $alias)
363
+{
358 364
 	global $modx;
359 365
 
360 366
 	$src = mb_convert_encoding($src, $modx->config['modx_charset'], 'UTF-8,SJIS-win,eucJP-win,SJIS,EUC-JP,ASCII');
@@ -395,7 +401,8 @@  discard block
 block discarded – undo
395 401
 	);
396 402
 }
397 403
 
398
-function convertLink() {
404
+function convertLink()
405
+{
399 406
 	global $modx;
400 407
 	$tbl_site_content = $modx->getFullTableName('site_content');
401 408
 
Please login to merge, or discard this patch.
manager/frames/nodes.functions.inc.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -504,6 +504,9 @@
 block discarded – undo
504 504
 	return $iconsPrivate;
505 505
 }
506 506
 
507
+/**
508
+ * @return string
509
+ */
507 510
 function getNodeTitle($nodeNameSource, $row) {
508 511
 	global $modx;
509 512
 
Please login to merge, or discard this patch.
Braces   +22 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@  discard block
 block discarded – undo
10 10
  * @param $theme
11 11
  * @param string $hereid
12 12
  */
13
-function makeHTML($indent, $parent, $expandAll, $theme, $hereid = '') {
13
+function makeHTML($indent, $parent, $expandAll, $theme, $hereid = '')
14
+{
14 15
 	global $modx;
15 16
 	global $icons, $iconsPrivate, $_style;
16 17
 	global $_lang, $opened, $opened2, $closed2; //added global vars
@@ -450,7 +451,8 @@  discard block
 block discarded – undo
450 451
 	return $output;
451 452
 }
452 453
 
453
-function getIconInfo($_style) {
454
+function getIconInfo($_style)
455
+{
454 456
 	if(!isset($_style['tree_page_gif'])) {
455 457
 		$_style['tree_page_gif'] = $_style['tree_page'];
456 458
 	}
@@ -477,7 +479,8 @@  discard block
 block discarded – undo
477 479
 	return $icons;
478 480
 }
479 481
 
480
-function getPrivateIconInfo($_style) {
482
+function getPrivateIconInfo($_style)
483
+{
481 484
 	if(!isset($_style['tree_page_gif_secure'])) {
482 485
 		$_style['tree_page_gif_secure'] = $_style['tree_page_secure'];
483 486
 	}
@@ -504,7 +507,8 @@  discard block
 block discarded – undo
504 507
 	return $iconsPrivate;
505 508
 }
506 509
 
507
-function getNodeTitle($nodeNameSource, $row) {
510
+function getNodeTitle($nodeNameSource, $row)
511
+{
508 512
 	global $modx;
509 513
 
510 514
 	switch($nodeNameSource) {
@@ -550,7 +554,8 @@  discard block
 block discarded – undo
550 554
 	return $nodetitle;
551 555
 }
552 556
 
553
-function isDateNode($nodeNameSource) {
557
+function isDateNode($nodeNameSource)
558
+{
554 559
 	switch($nodeNameSource) {
555 560
 		case 'createdon':
556 561
 		case 'editedon':
@@ -563,13 +568,15 @@  discard block
 block discarded – undo
563 568
 	}
564 569
 }
565 570
 
566
-function checkIsFolder($parent = 0, $isfolder = 1) {
571
+function checkIsFolder($parent = 0, $isfolder = 1)
572
+{
567 573
 	global $modx;
568 574
 
569 575
 	return (int) $modx->db->getValue($modx->db->query('SELECT count(*) FROM ' . $modx->getFullTableName('site_content') . ' WHERE parent=' . $parent . ' AND isfolder=' . $isfolder . ' '));
570 576
 }
571 577
 
572
-function _htmlentities($array) {
578
+function _htmlentities($array)
579
+{
573 580
 	global $modx;
574 581
 
575 582
 	$array = json_encode($array, JSON_UNESCAPED_UNICODE);
@@ -578,7 +585,8 @@  discard block
 block discarded – undo
578 585
 	return $array;
579 586
 }
580 587
 
581
-function getTplSingleNode() {
588
+function getTplSingleNode()
589
+{
582 590
 	return '<div id="node[+id+]"><a class="[+treeNodeClass+]"
583 591
         onclick="modx.tree.treeAction(event,[+id+]);"
584 592
         oncontextmenu="modx.tree.showPopup(event,[+id+],\'[+nodetitle_esc+]\');"
@@ -602,7 +610,8 @@  discard block
 block discarded – undo
602 610
         title="[+title+]">[+nodetitleDisplay+][+weblinkDisplay+]</span>[+pageIdDisplay+]</a></div>';
603 611
 }
604 612
 
605
-function getTplFolderNode() {
613
+function getTplFolderNode()
614
+{
606 615
 	return '<div id="node[+id+]"><a class="[+treeNodeClass+]"
607 616
         onclick="modx.tree.treeAction(event,[+id+]);"
608 617
         oncontextmenu="modx.tree.showPopup(event,[+id+],\'[+nodetitle_esc+]\');"
@@ -638,7 +647,8 @@  discard block
 block discarded – undo
638 647
         title="[+title+]">[+nodetitleDisplay+][+weblinkDisplay+]</span>[+pageIdDisplay+]</a><div>';
639 648
 }
640 649
 
641
-function getTplFolderNodeNotChildren() {
650
+function getTplFolderNodeNotChildren()
651
+{
642 652
 	return '<div id="node[+id+]"><a class="[+treeNodeClass+]"
643 653
         onclick="modx.tree.treeAction(event,[+id+]);"
644 654
         oncontextmenu="modx.tree.showPopup(event,[+id+],\'[+nodetitle_esc+]\');"
@@ -670,7 +680,8 @@  discard block
 block discarded – undo
670 680
         title="[+title+]">[+nodetitleDisplay+][+weblinkDisplay+]</span>[+pageIdDisplay+]</a><div>';
671 681
 }
672 682
 
673
-function dbug($str, $flag = false) {
683
+function dbug($str, $flag = false)
684
+{
674 685
 	print('<pre>');
675 686
 	print_r($str);
676 687
 	print('</pre>');
Please login to merge, or discard this patch.
manager/includes/categories.inc.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -3,6 +3,9 @@
 block discarded – undo
3 3
 //Kyle Jaebker - 08/07/06
4 4
 
5 5
 //Create a new category
6
+/**
7
+ * @param string $newCat
8
+ */
6 9
 function newCategory($newCat) {
7 10
     global $modx;
8 11
     $useTable = $modx->getFullTableName('categories');
Please login to merge, or discard this patch.
Braces   +16 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,18 +3,22 @@  discard block
 block discarded – undo
3 3
 //Kyle Jaebker - 08/07/06
4 4
 
5 5
 //Create a new category
6
-function newCategory($newCat) {
6
+function newCategory($newCat)
7
+{
7 8
     global $modx;
8 9
     $useTable = $modx->getFullTableName('categories');
9 10
     $categoryId = $modx->db->insert(
10 11
         array(
11 12
             'category' => $modx->db->escape($newCat),
12 13
         ), $useTable);
13
-    if (!$categoryId) $categoryId = 0;
14
+    if (!$categoryId) {
15
+        $categoryId = 0;
16
+    }
14 17
     return $categoryId;
15 18
 }
16 19
 //check if new category already exists
17
-function checkCategory($newCat = '') {
20
+function checkCategory($newCat = '')
21
+{
18 22
     global $modx;
19 23
     $useTable = $modx->getFullTableName('categories');
20 24
     $newCat = $modx->db->escape($newCat);
@@ -25,13 +29,17 @@  discard block
 block discarded – undo
25 29
     return 0;
26 30
 }
27 31
 //Check for category, create new if not exists
28
-function getCategory($category='') {
32
+function getCategory($category='')
33
+{
29 34
     $categoryId = checkCategory($category);
30
-    if(!$categoryId) $categoryId = newCategory($category);
35
+    if(!$categoryId) {
36
+        $categoryId = newCategory($category);
37
+    }
31 38
     return $categoryId;
32 39
 }
33 40
 //Get all categories
34
-function getCategories() {
41
+function getCategories()
42
+{
35 43
     global $modx;
36 44
     $useTable = $modx->getFullTableName('categories');
37 45
     $cats = $modx->db->select('id, category', $modx->getFullTableName('categories'), '', 'category');
@@ -43,7 +51,8 @@  discard block
 block discarded – undo
43 51
     return $resourceArray;
44 52
 }
45 53
 //Delete category & associations
46
-function deleteCategory($catId=0) {
54
+function deleteCategory($catId=0)
55
+{
47 56
     global $modx;
48 57
     if ($catId) {
49 58
         $resetTables = array('site_plugins', 'site_snippets', 'site_htmlsnippets', 'site_templates', 'site_tmplvars', 'site_modules');
Please login to merge, or discard this patch.
manager/includes/controls/datagrid.class.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
 	var $selPageClass;
53 53
 	var $noRecordMsg = "No records found.";
54 54
 
55
+	/**
56
+	 * @param string $id
57
+	 */
55 58
 	function __construct($id, $ds, $pageSize = 20, $pageNumber = -1) {
56 59
 		global $__DataGridCnt;
57 60
 
@@ -187,6 +190,9 @@  discard block
 block discarded – undo
187 190
 
188 191
 	// format column values
189 192
 
193
+	/**
194
+	 * @param integer $n
195
+	 */
190 196
 	function RenderRowFnc($n, $row) {
191 197
 		if($this->_alt == 0) {
192 198
 			$Style = $this->_itemStyle;
Please login to merge, or discard this patch.
Braces   +15 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@  discard block
 block discarded – undo
10 10
 
11 11
 $__DataGridCnt = 0;
12 12
 
13
-class DataGrid {
13
+class DataGrid
14
+{
14 15
 
15 16
 	var $ds; // datasource
16 17
 	var $id;
@@ -52,7 +53,8 @@  discard block
 block discarded – undo
52 53
 	var $selPageClass;
53 54
 	var $noRecordMsg = "No records found.";
54 55
 
55
-	function __construct($id, $ds, $pageSize = 20, $pageNumber = -1) {
56
+	function __construct($id, $ds, $pageSize = 20, $pageNumber = -1)
57
+	{
56 58
 		global $__DataGridCnt;
57 59
 
58 60
 		// set id
@@ -68,11 +70,13 @@  discard block
 block discarded – undo
68 70
 		$this->pagerLocation = 'top-right';
69 71
 	}
70 72
 
71
-	function setDataSource($ds) {
73
+	function setDataSource($ds)
74
+	{
72 75
 		$this->ds = $ds;
73 76
 	}
74 77
 
75
-	function render() {
78
+	function render()
79
+	{
76 80
 		global $modx;
77 81
 		$columnHeaderStyle = ($this->columnHeaderStyle) ? "style='" . $this->columnHeaderStyle . "'" : '';
78 82
 		$columnHeaderClass = ($this->columnHeaderClass) ? "class='" . $this->columnHeaderClass . "'" : "";
@@ -107,7 +111,9 @@  discard block
 block discarded – undo
107 111
 
108 112
 		if($this->_isDataset && !$this->columns) {
109 113
 			$cols = $modx->db->numFields($this->ds);
110
-			for($i = 0; $i < $cols; $i++) $this->columns .= ($i ? "," : "") . $modx->db->fieldName($this->ds, $i);
114
+			for($i = 0; $i < $cols; $i++) {
115
+			    $this->columns .= ($i ? "," : "") . $modx->db->fieldName($this->ds, $i);
116
+			}
111 117
 		}
112 118
 
113 119
 		// start grid
@@ -187,7 +193,8 @@  discard block
 block discarded – undo
187 193
 
188 194
 	// format column values
189 195
 
190
-	function RenderRowFnc($n, $row) {
196
+	function RenderRowFnc($n, $row)
197
+	{
191 198
 		if($this->_alt == 0) {
192 199
 			$Style = $this->_itemStyle;
193 200
 			$Class = $this->_itemClass;
@@ -217,7 +224,8 @@  discard block
 block discarded – undo
217 224
 		return $o;
218 225
 	}
219 226
 
220
-	function formatColumnValue($row, $value, $type, &$align) {
227
+	function formatColumnValue($row, $value, $type, &$align)
228
+	{
221 229
 		if(strpos($type, ":") !== false) {
222 230
 			list($type, $type_format) = explode(":", $type, 2);
223 231
 		}
Please login to merge, or discard this patch.
manager/includes/controls/datasetpager.class.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
 		$this->pageSize = $ps;
74 74
 	}
75 75
 
76
+	/**
77
+	 * @param DataGrid $fncName
78
+	 */
76 79
 	function setRenderRowFnc($fncName, $args = "") {
77 80
 		$this->renderRowFnc = &$fncName;
78 81
 		$this->renderRowFncArgs = $args;    // extra agruments
Please login to merge, or discard this patch.
Braces   +21 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@  discard block
 block discarded – undo
10 10
 
11 11
 $__DataSetPagerCnt = 0;
12 12
 
13
-class DataSetPager {
13
+class DataSetPager
14
+{
14 15
 
15 16
 	var $ds; // datasource
16 17
 	var $pageSize;
@@ -27,7 +28,8 @@  discard block
 block discarded – undo
27 28
 	var $selPageStyle;
28 29
 	var $selPageClass;
29 30
 
30
-	function __construct($id, $ds, $pageSize = 10, $pageNumber = -1) {
31
+	function __construct($id, $ds, $pageSize = 10, $pageNumber = -1)
32
+	{
31 33
 		global $_PAGE; // use view state object
32 34
 
33 35
 		global $__DataSetPagerCnt;
@@ -57,35 +59,42 @@  discard block
 block discarded – undo
57 59
 		$this->pager = '';
58 60
 	}
59 61
 
60
-	function getRenderedPager() {
62
+	function getRenderedPager()
63
+	{
61 64
 		return $this->pager;
62 65
 	}
63 66
 
64
-	function getRenderedRows() {
67
+	function getRenderedRows()
68
+	{
65 69
 		return $this->rows;
66 70
 	}
67 71
 
68
-	function setDataSource($ds) {
72
+	function setDataSource($ds)
73
+	{
69 74
 		$this->ds = $ds;
70 75
 	}
71 76
 
72
-	function setPageSize($ps) {
77
+	function setPageSize($ps)
78
+	{
73 79
 		$this->pageSize = $ps;
74 80
 	}
75 81
 
76
-	function setRenderRowFnc($fncName, $args = "") {
82
+	function setRenderRowFnc($fncName, $args = "")
83
+	{
77 84
 		$this->renderRowFnc = &$fncName;
78 85
 		$this->renderRowFncArgs = $args;    // extra agruments
79 86
 
80 87
 
81 88
 	}
82 89
 
83
-	function setRenderPagerFnc($fncName, $args = "") {
90
+	function setRenderPagerFnc($fncName, $args = "")
91
+	{
84 92
 		$this->renderPagerFnc = $fncName;
85 93
 		$this->renderPagerFncArgs = $args;    // extra agruments
86 94
 	}
87 95
 
88
-	function render() {
96
+	function render()
97
+	{
89 98
 		global $modx, $_PAGE;
90 99
 
91 100
 		$isDataset = $modx->db->isResult($this->ds);
@@ -137,8 +146,10 @@  discard block
 block discarded – undo
137 146
 					$url = $_SERVER['PHP_SELF'] . '?';
138 147
 				}
139 148
 				$i = 0;
140
-				foreach($_GET as $n => $v) if($n != 'dpgn' . $this->id) {
149
+				foreach($_GET as $n => $v) {
150
+				    if($n != 'dpgn' . $this->id) {
141 151
 					$i++;
152
+				}
142 153
 					$url .= (($i > 1) ? "&" : "") . "$n=$v";
143 154
 				}
144 155
 				if($i >= 1) {
Please login to merge, or discard this patch.
manager/includes/controls/phpmailer/PHPMailer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3968,7 +3968,7 @@
 block discarded – undo
3968 3968
      * @param int|string $options Either a PATHINFO_* constant,
3969 3969
      *                            or a string name to return only the specified piece
3970 3970
      *
3971
-     * @return string|array
3971
+     * @return string
3972 3972
      */
3973 3973
     public static function mb_pathinfo($path, $options = null)
3974 3974
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2059,7 +2059,8 @@  discard block
 block discarded – undo
2059 2059
      */
2060 2060
     public function addrFormat($addr)
2061 2061
     {
2062
-        if (empty($addr[1])) { // No name provided
2062
+        if (empty($addr[1])) {
2063
+// No name provided
2063 2064
             return $this->secureHeader($addr[0]);
2064 2065
         }
2065 2066
 
@@ -3425,7 +3426,7 @@  discard block
 block discarded – undo
3425 3426
     {
3426 3427
         $this->RecipientsQueue = array_filter(
3427 3428
             $this->RecipientsQueue,
3428
-            function ($params) use ($kind) {
3429
+            function ($params) use ($kind){
3429 3430
                 return $params[0] != $kind;
3430 3431
             }
3431 3432
         );
Please login to merge, or discard this patch.
manager/includes/controls/phpmailer/POP3.php 2 patches
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.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -344,7 +344,8 @@
 block discarded – undo
344 344
     protected function sendString($string)
345 345
     {
346 346
         if ($this->pop_conn) {
347
-            if ($this->do_debug >= 2) { //Show client messages when debug >= 2
347
+            if ($this->do_debug >= 2) {
348
+//Show client messages when debug >= 2
348 349
                 echo 'Client -> Server: ', $string;
349 350
             }
350 351
 
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.