GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — develop ( e54387...b62a26 )
by Lonnie
10s
created
system/database/drivers/mysqli/mysqli_driver.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
 		if (is_array($this->encrypt))
135 135
 		{
136 136
 			$ssl = array();
137
-			empty($this->encrypt['ssl_key'])    OR $ssl['key']    = $this->encrypt['ssl_key'];
138
-			empty($this->encrypt['ssl_cert'])   OR $ssl['cert']   = $this->encrypt['ssl_cert'];
139
-			empty($this->encrypt['ssl_ca'])     OR $ssl['ca']     = $this->encrypt['ssl_ca'];
137
+			empty($this->encrypt['ssl_key']) OR $ssl['key']    = $this->encrypt['ssl_key'];
138
+			empty($this->encrypt['ssl_cert']) OR $ssl['cert']   = $this->encrypt['ssl_cert'];
139
+			empty($this->encrypt['ssl_ca']) OR $ssl['ca']     = $this->encrypt['ssl_ca'];
140 140
 			empty($this->encrypt['ssl_capath']) OR $ssl['capath'] = $this->encrypt['ssl_capath'];
141 141
 			empty($this->encrypt['ssl_cipher']) OR $ssl['cipher'] = $this->encrypt['ssl_cipher'];
142 142
 
@@ -149,9 +149,9 @@  discard block
 block discarded – undo
149 149
 
150 150
 				$client_flags |= MYSQLI_CLIENT_SSL;
151 151
 				$mysqli->ssl_set(
152
-					isset($ssl['key'])    ? $ssl['key']    : NULL,
153
-					isset($ssl['cert'])   ? $ssl['cert']   : NULL,
154
-					isset($ssl['ca'])     ? $ssl['ca']     : NULL,
152
+					isset($ssl['key']) ? $ssl['key'] : NULL,
153
+					isset($ssl['cert']) ? $ssl['cert'] : NULL,
154
+					isset($ssl['ca']) ? $ssl['ca'] : NULL,
155 155
 					isset($ssl['capath']) ? $ssl['capath'] : NULL,
156 156
 					isset($ssl['cipher']) ? $ssl['cipher'] : NULL
157 157
 				);
@@ -430,16 +430,16 @@  discard block
 block discarded – undo
430 430
 		$retval = array();
431 431
 		for ($i = 0, $c = count($query); $i < $c; $i++)
432 432
 		{
433
-			$retval[$i]			= new stdClass();
434
-			$retval[$i]->name		= $query[$i]->Field;
433
+			$retval[$i] = new stdClass();
434
+			$retval[$i]->name = $query[$i]->Field;
435 435
 
436 436
 			sscanf($query[$i]->Type, '%[a-z](%d)',
437 437
 				$retval[$i]->type,
438 438
 				$retval[$i]->max_length
439 439
 			);
440 440
 
441
-			$retval[$i]->default		= $query[$i]->Default;
442
-			$retval[$i]->primary_key	= (int) ($query[$i]->Key === 'PRI');
441
+			$retval[$i]->default = $query[$i]->Default;
442
+			$retval[$i]->primary_key = (int) ($query[$i]->Key === 'PRI');
443 443
 		}
444 444
 
445 445
 		return $retval;
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,8 +104,7 @@  discard block
 block discarded – undo
104 104
 			empty($this->database) OR $this->dsn .= ';dbname='.$this->database;
105 105
 			empty($this->char_set) OR $this->dsn .= ';charset='.$this->char_set;
106 106
 			empty($this->appname) OR $this->dsn .= ';appname='.$this->appname;
107
-		}
108
-		else
107
+		} else
109 108
 		{
110 109
 			if ( ! empty($this->char_set) && strpos($this->dsn, 'charset=', 6) === FALSE)
111 110
 			{
@@ -282,8 +281,7 @@  discard block
 block discarded – undo
282 281
 			if (count($this->qb_select) === 0)
283 282
 			{
284 283
 				$select = '*'; // Inevitable
285
-			}
286
-			else
284
+			} else
287 285
 			{
288 286
 				// Use only field names and their aliases, everything else is out of our scope.
289 287
 				$select = array();
Please login to merge, or discard this patch.
system/database/drivers/mysqli/mysqli_forge.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 *
54 54
 	 * @var	string
55 55
 	 */
56
-	protected $_create_database	= 'CREATE DATABASE %s CHARACTER SET %s COLLATE %s';
56
+	protected $_create_database = 'CREATE DATABASE %s CHARACTER SET %s COLLATE %s';
57 57
 
58 58
 	/**
59 59
 	 * CREATE TABLE keys flag
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @var	bool
65 65
 	 */
66
-	protected $_create_table_keys	= TRUE;
66
+	protected $_create_table_keys = TRUE;
67 67
 
68 68
 	/**
69 69
 	 * UNSIGNED support
70 70
 	 *
71 71
 	 * @var	array
72 72
 	 */
73
-	protected $_unsigned		= array(
73
+	protected $_unsigned = array(
74 74
 		'TINYINT',
75 75
 		'SMALLINT',
76 76
 		'MEDIUMINT',
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -162,14 +162,12 @@  discard block
 block discarded – undo
162 162
 				$field[$i] = ($alter_type === 'ADD')
163 163
 						? "\n\tADD ".$field[$i]['_literal']
164 164
 						: "\n\tMODIFY ".$field[$i]['_literal'];
165
-			}
166
-			else
165
+			} else
167 166
 			{
168 167
 				if ($alter_type === 'ADD')
169 168
 				{
170 169
 					$field[$i]['_literal'] = "\n\tADD ";
171
-				}
172
-				else
170
+				} else
173 171
 				{
174 172
 					$field[$i]['_literal'] = empty($field[$i]['new_name']) ? "\n\tMODIFY " : "\n\tCHANGE ";
175 173
 				}
@@ -235,8 +233,7 @@  discard block
 block discarded – undo
235 233
 						continue;
236 234
 					}
237 235
 				}
238
-			}
239
-			elseif ( ! isset($this->fields[$this->keys[$i]]))
236
+			} elseif ( ! isset($this->fields[$this->keys[$i]]))
240 237
 			{
241 238
 				unset($this->keys[$i]);
242 239
 				continue;
Please login to merge, or discard this patch.
system/database/drivers/mysqli/mysqli_result.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,12 +110,12 @@
 block discarded – undo
110 110
 		$field_data = $this->result_id->fetch_fields();
111 111
 		for ($i = 0, $c = count($field_data); $i < $c; $i++)
112 112
 		{
113
-			$retval[$i]			= new stdClass();
113
+			$retval[$i] = new stdClass();
114 114
 			$retval[$i]->name		= $field_data[$i]->name;
115 115
 			$retval[$i]->type		= $field_data[$i]->type;
116 116
 			$retval[$i]->max_length		= $field_data[$i]->max_length;
117 117
 			$retval[$i]->primary_key	= (int) ($field_data[$i]->flags & 2);
118
-			$retval[$i]->default		= $field_data[$i]->def;
118
+			$retval[$i]->default = $field_data[$i]->def;
119 119
 		}
120 120
 
121 121
 		return $retval;
Please login to merge, or discard this patch.
system/database/drivers/mysqli/mysqli_utility.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,21 +53,21 @@  discard block
 block discarded – undo
53 53
 	 *
54 54
 	 * @var	string
55 55
 	 */
56
-	protected $_list_databases	= 'SHOW DATABASES';
56
+	protected $_list_databases = 'SHOW DATABASES';
57 57
 
58 58
 	/**
59 59
 	 * OPTIMIZE TABLE statement
60 60
 	 *
61 61
 	 * @var	string
62 62
 	 */
63
-	protected $_optimize_table	= 'OPTIMIZE TABLE %s';
63
+	protected $_optimize_table = 'OPTIMIZE TABLE %s';
64 64
 
65 65
 	/**
66 66
 	 * REPAIR TABLE statement
67 67
 	 *
68 68
 	 * @var	string
69 69
 	 */
70
-	protected $_repair_table	= 'REPAIR TABLE %s';
70
+	protected $_repair_table = 'REPAIR TABLE %s';
71 71
 
72 72
 	// --------------------------------------------------------------------
73 73
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 			$output .= 'SET foreign_key_checks = 0;'.$newline;
97 97
 		}
98 98
 
99
-		foreach ( (array) $tables as $table)
99
+		foreach ((array) $tables as $table)
100 100
 		{
101 101
 			// Is the table in the "ignore" list?
102 102
 			if (in_array($table, (array) $ignore, TRUE))
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 			}
166 166
 
167 167
 			// Trim off the end comma
168
-			$field_str = preg_replace('/, $/' , '', $field_str);
168
+			$field_str = preg_replace('/, $/', '', $field_str);
169 169
 
170 170
 			// Build the insert string
171 171
 			foreach ($query->result_array() as $row)
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 				}
193 193
 
194 194
 				// Remove the comma at the end of the string
195
-				$val_str = preg_replace('/, $/' , '', $val_str);
195
+				$val_str = preg_replace('/, $/', '', $val_str);
196 196
 
197 197
 				// Build the INSERT string
198 198
 				$output .= 'INSERT INTO '.$this->db->protect_identifiers($table).' ('.$field_str.') VALUES ('.$val_str.');'.$newline;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,8 +179,7 @@
 block discarded – undo
179 179
 					if ($v === NULL)
180 180
 					{
181 181
 						$val_str .= 'NULL';
182
-					}
183
-					else
182
+					} else
184 183
 					{
185 184
 						// Escape the data if it's not an integer
186 185
 						$val_str .= ($is_int[$i] === FALSE) ? $this->db->escape($v) : $v;
Please login to merge, or discard this patch.
system/database/drivers/oci8/oci8_forge.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,28 +51,28 @@
 block discarded – undo
51 51
 	 *
52 52
 	 * @var	string
53 53
 	 */
54
-	protected $_create_database	= FALSE;
54
+	protected $_create_database = FALSE;
55 55
 
56 56
 	/**
57 57
 	 * DROP DATABASE statement
58 58
 	 *
59 59
 	 * @var	string
60 60
 	 */
61
-	protected $_drop_database	= FALSE;
61
+	protected $_drop_database = FALSE;
62 62
 
63 63
 	/**
64 64
 	 * DROP TABLE IF statement
65 65
 	 *
66 66
 	 * @var	string
67 67
 	 */
68
-	protected $_drop_table_if	= FALSE;
68
+	protected $_drop_table_if = FALSE;
69 69
 
70 70
 	/**
71 71
 	 * UNSIGNED support
72 72
 	 *
73 73
 	 * @var	bool|array
74 74
 	 */
75
-	protected $_unsigned		= FALSE;
75
+	protected $_unsigned = FALSE;
76 76
 
77 77
 	// --------------------------------------------------------------------
78 78
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@  discard block
 block discarded – undo
89 89
 		if ($alter_type === 'DROP')
90 90
 		{
91 91
 			return parent::_alter_table($alter_type, $table, $field);
92
-		}
93
-		elseif ($alter_type === 'CHANGE')
92
+		} elseif ($alter_type === 'CHANGE')
94 93
 		{
95 94
 			$alter_type = 'MODIFY';
96 95
 		}
@@ -102,8 +101,7 @@  discard block
 block discarded – undo
102 101
 			if ($field[$i]['_literal'] !== FALSE)
103 102
 			{
104 103
 				$field[$i] = "\n\t".$field[$i]['_literal'];
105
-			}
106
-			else
104
+			} else
107 105
 			{
108 106
 				$field[$i]['_literal'] = "\n\t".$this->_process_column($field[$i]);
109 107
 
Please login to merge, or discard this patch.
system/database/drivers/oci8/oci8_result.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 		$this->stmt_id = $driver_object->stmt_id;
92 92
 		$this->curs_id = $driver_object->curs_id;
93 93
 		$this->limit_used = $driver_object->limit_used;
94
-		$this->commit_mode =& $driver_object->commit_mode;
94
+		$this->commit_mode = & $driver_object->commit_mode;
95 95
 		$driver_object->stmt_id = FALSE;
96 96
 	}
97 97
 
@@ -143,10 +143,10 @@  discard block
 block discarded – undo
143 143
 		$retval = array();
144 144
 		for ($c = 1, $fieldCount = $this->num_fields(); $c <= $fieldCount; $c++)
145 145
 		{
146
-			$F		= new stdClass();
146
+			$F = new stdClass();
147 147
 			$F->name	= oci_field_name($this->stmt_id, $c);
148 148
 			$F->type	= oci_field_type($this->stmt_id, $c);
149
-			$F->max_length	= oci_field_size($this->stmt_id, $c);
149
+			$F->max_length = oci_field_size($this->stmt_id, $c);
150 150
 
151 151
 			$retval[] = $F;
152 152
 		}
Please login to merge, or discard this patch.
system/database/drivers/oci8/oci8_utility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 *
52 52
 	 * @var	string
53 53
 	 */
54
-	protected $_list_databases	= 'SELECT username FROM dba_users'; // Schemas are actual usernames
54
+	protected $_list_databases = 'SELECT username FROM dba_users'; // Schemas are actual usernames
55 55
 
56 56
 	/**
57 57
 	 * Export
Please login to merge, or discard this patch.
system/database/drivers/odbc/odbc_forge.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,21 +53,21 @@
 block discarded – undo
53 53
 	 *
54 54
 	 * @var	string
55 55
 	 */
56
-	protected $_create_table_if	= FALSE;
56
+	protected $_create_table_if = FALSE;
57 57
 
58 58
 	/**
59 59
 	 * DROP TABLE IF statement
60 60
 	 *
61 61
 	 * @var	string
62 62
 	 */
63
-	protected $_drop_table_if	= FALSE;
63
+	protected $_drop_table_if = FALSE;
64 64
 
65 65
 	/**
66 66
 	 * UNSIGNED support
67 67
 	 *
68 68
 	 * @var	bool|array
69 69
 	 */
70
-	protected $_unsigned		= FALSE;
70
+	protected $_unsigned = FALSE;
71 71
 
72 72
 	// --------------------------------------------------------------------
73 73
 
Please login to merge, or discard this patch.
system/database/drivers/odbc/odbc_result.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
 		$retval = array();
131 131
 		for ($i = 0, $odbc_index = 1, $c = $this->num_fields(); $i < $c; $i++, $odbc_index++)
132 132
 		{
133
-			$retval[$i]			= new stdClass();
133
+			$retval[$i] = new stdClass();
134 134
 			$retval[$i]->name		= odbc_field_name($this->result_id, $odbc_index);
135 135
 			$retval[$i]->type		= odbc_field_type($this->result_id, $odbc_index);
136 136
 			$retval[$i]->max_length		= odbc_field_len($this->result_id, $odbc_index);
137 137
 			$retval[$i]->primary_key	= 0;
138
-			$retval[$i]->default		= '';
138
+			$retval[$i]->default = '';
139 139
 		}
140 140
 
141 141
 		return $retval;
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 		$rs_assoc = array();
227 227
 		foreach ($rs as $k => $v)
228 228
 		{
229
-			$field_name = odbc_field_name($result, $k+1);
229
+			$field_name = odbc_field_name($result, $k + 1);
230 230
 			$rs_assoc[$field_name] = $v;
231 231
 		}
232 232
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 		$rs_object = new stdClass();
260 260
 		foreach ($rs as $k => $v)
261 261
 		{
262
-			$field_name = odbc_field_name($result, $k+1);
262
+			$field_name = odbc_field_name($result, $k + 1);
263 263
 			$rs_object->$field_name = $v;
264 264
 		}
265 265
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
 		if (is_int($this->num_rows))
61 61
 		{
62 62
 			return $this->num_rows;
63
-		}
64
-		elseif (($this->num_rows = odbc_num_rows($this->result_id)) !== -1)
63
+		} elseif (($this->num_rows = odbc_num_rows($this->result_id)) !== -1)
65 64
 		{
66 65
 			return $this->num_rows;
67 66
 		}
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
 		if (count($this->result_array) > 0)
71 70
 		{
72 71
 			return $this->num_rows = count($this->result_array);
73
-		}
74
-		elseif (count($this->result_object) > 0)
72
+		} elseif (count($this->result_object) > 0)
75 73
 		{
76 74
 			return $this->num_rows = count($this->result_object);
77 75
 		}
Please login to merge, or discard this patch.