Completed
Pull Request — v3.0 (#136)
by
unknown
25:07
created
web_interface/astpp/system/database/drivers/sqlite/sqlite_driver.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	 * Select the database
120 120
 	 *
121 121
 	 * @access	private called by the base class
122
-	 * @return	resource
122
+	 * @return	boolean
123 123
 	 */
124 124
 	function db_select()
125 125
 	{
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 * @access	public
135 135
 	 * @param	string
136 136
 	 * @param	string
137
-	 * @return	resource
137
+	 * @return	boolean
138 138
 	 */
139 139
 	function db_set_charset($charset, $collation)
140 140
 	{
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
 	 *
338 338
 	 * @access	public
339 339
 	 * @param	string
340
-	 * @return	string
340
+	 * @return	integer
341 341
 	 */
342 342
 	function count_all($table = '')
343 343
 	{
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
 	 *
390 390
 	 * @access	public
391 391
 	 * @param	string	the table name
392
-	 * @return	string
392
+	 * @return	boolean
393 393
 	 */
394 394
 	function _list_columns($table = '')
395 395
 	{
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 	 *
407 407
 	 * @access	public
408 408
 	 * @param	string	the table name
409
-	 * @return	object
409
+	 * @return	string
410 410
 	 */
411 411
 	function _field_data($table)
412 412
 	{
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 	 *
492 492
 	 * @access	public
493 493
 	 * @param	type
494
-	 * @return	type
494
+	 * @return	string
495 495
 	 */
496 496
 	function _from_tables($tables)
497 497
 	{
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/sqlite/sqlite_forge.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 * @param	mixed	primary key(s)
71 71
 	 * @param	mixed	key(s)
72 72
 	 * @param	boolean	should 'IF NOT EXISTS' be added to the SQL
73
-	 * @return	bool
73
+	 * @return	string
74 74
 	 */
75 75
 	function _create_table($table, $fields, $primary_keys, $keys, $if_not_exists)
76 76
 	{
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	 * @param	string	the default value
203 203
 	 * @param	boolean	should 'NOT NULL' be added
204 204
 	 * @param	string	the field after which we should add the new field
205
-	 * @return	object
205
+	 * @return	false|string
206 206
 	 */
207 207
 	function _alter_table($alter_type, $table, $column_name, $column_definition = '', $default_value = '', $null = '', $after_field = '')
208 208
 	{
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/sqlite/sqlite_result.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 	 * result set starts at zero
122 122
 	 *
123 123
 	 * @access	private
124
-	 * @return	array
124
+	 * @return	boolean
125 125
 	 */
126 126
 	function _data_seek($n = 0)
127 127
 	{
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/sqlite/sqlite_utility.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 *
54 54
 	 * @access	private
55 55
 	 * @param	string	the table name
56
-	 * @return	object
56
+	 * @return	boolean
57 57
 	 */
58 58
 	function _optimize_table($table)
59 59
 	{
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 *
70 70
 	 * @access	private
71 71
 	 * @param	string	the table name
72
-	 * @return	object
72
+	 * @return	boolean
73 73
 	 */
74 74
 	function _repair_table($table)
75 75
 	{
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/sqlsrv/sqlsrv_driver.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * @access	public
127 127
 	 * @param	string
128 128
 	 * @param	string
129
-	 * @return	resource
129
+	 * @return	boolean
130 130
 	 */
131 131
 	function db_set_charset($charset, $collation)
132 132
 	{
@@ -141,6 +141,7 @@  discard block
 block discarded – undo
141 141
 	 *
142 142
 	 * @access	private called by the base class
143 143
 	 * @param	string	an SQL query
144
+	 * @param string $sql
144 145
 	 * @return	resource
145 146
 	 */
146 147
 	function _execute($sql)
@@ -299,7 +300,7 @@  discard block
 block discarded – undo
299 300
 	*
300 301
 	* @access private
301 302
 	* @param string $version
302
-	* @return int16 major version number
303
+	* @return string major version number
303 304
 	*/
304 305
 	function _parse_major_version($version)
305 306
 	{
@@ -389,7 +390,7 @@  discard block
 block discarded – undo
389 390
 	 *
390 391
 	 * @access	public
391 392
 	 * @param	string	the table name
392
-	 * @return	object
393
+	 * @return	string
393 394
 	 */
394 395
 	function _field_data($table)
395 396
 	{
@@ -466,7 +467,7 @@  discard block
 block discarded – undo
466 467
 	 *
467 468
 	 * @access	public
468 469
 	 * @param	type
469
-	 * @return	type
470
+	 * @return	string
470 471
 	 */
471 472
 	function _from_tables($tables)
472 473
 	{
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/sqlsrv/sqlsrv_forge.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 *
30 30
 	 * @access	private
31 31
 	 * @param	string	the database name
32
-	 * @return	bool
32
+	 * @return	string
33 33
 	 */
34 34
 	function _create_database($name)
35 35
 	{
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 *
44 44
 	 * @access	private
45 45
 	 * @param	string	the database name
46
-	 * @return	bool
46
+	 * @return	string
47 47
 	 */
48 48
 	function _drop_database($name)
49 49
 	{
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 * Drop Table
57 57
 	 *
58 58
 	 * @access	private
59
-	 * @return	bool
59
+	 * @return	string
60 60
 	 */
61 61
 	function _drop_table($table)
62 62
 	{
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 * @param	mixed	primary key(s)
75 75
 	 * @param	mixed	key(s)
76 76
 	 * @param	boolean	should 'IF NOT EXISTS' be added to the SQL
77
-	 * @return	bool
77
+	 * @return	string
78 78
 	 */
79 79
 	function _create_table($table, $fields, $primary_keys, $keys, $if_not_exists)
80 80
 	{
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	 * @param	string	the default value
187 187
 	 * @param	boolean	should 'NOT NULL' be added
188 188
 	 * @param	string	the field after which we should add the new field
189
-	 * @return	object
189
+	 * @return	string
190 190
 	 */
191 191
 	function _alter_table($alter_type, $table, $column_name, $column_definition = '', $default_value = '', $null = '', $after_field = '')
192 192
 	{
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/sqlsrv/sqlsrv_utility.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * List databases
29 29
 	 *
30 30
 	 * @access	private
31
-	 * @return	bool
31
+	 * @return	string
32 32
 	 */
33 33
 	function _list_databases()
34 34
 	{
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	 *
45 45
 	 * @access	private
46 46
 	 * @param	string	the table name
47
-	 * @return	object
47
+	 * @return	boolean
48 48
 	 */
49 49
 	function _optimize_table($table)
50 50
 	{
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 *
61 61
 	 * @access	private
62 62
 	 * @param	string	the table name
63
-	 * @return	object
63
+	 * @return	boolean
64 64
 	 */
65 65
 	function _repair_table($table)
66 66
 	{
Please login to merge, or discard this patch.
web_interface/astpp/system/helpers/file_helper.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
  */
39 39
 if ( ! function_exists('read_file'))
40 40
 {
41
+	/**
42
+	 * @param string $file
43
+	 */
41 44
 	function read_file($file)
42 45
 	{
43 46
 		if ( ! file_exists($file))
@@ -85,6 +88,10 @@  discard block
 block discarded – undo
85 88
  */
86 89
 if ( ! function_exists('write_file'))
87 90
 {
91
+	/**
92
+	 * @param string $path
93
+	 * @param string $data
94
+	 */
88 95
 	function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE)
89 96
 	{
90 97
 		if ( ! $fp = @fopen($path, $mode))
@@ -278,6 +285,9 @@  discard block
 block discarded – undo
278 285
 */
279 286
 if ( ! function_exists('get_file_info'))
280 287
 {
288
+	/**
289
+	 * @param string $file
290
+	 */
281 291
 	function get_file_info($file, $returned_values = array('name', 'server_path', 'size', 'date'))
282 292
 	{
283 293
 
Please login to merge, or discard this patch.
web_interface/astpp/system/helpers/security_helper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
  */
74 74
 if ( ! function_exists('do_hash'))
75 75
 {
76
+	/**
77
+	 * @param string $str
78
+	 */
76 79
 	function do_hash($str, $type = 'sha1')
77 80
 	{
78 81
 		if ($type == 'sha1')
Please login to merge, or discard this patch.