Completed
Push — v3.0 ( 23635d...e28df5 )
by Samir
23s
created
web_interface/astpp/system/libraries/font/courierbi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 $name = 'Courier-Oblique';
4 4
 $up = -100;
5 5
 $ut = 50;
6
-for($i=0;$i<=255;$i++)
6
+for ($i = 0; $i <= 255; $i++)
7 7
 	$cw[chr($i)] = 600;
8 8
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/odbc/odbc_forge.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 				$sql .= "\n\t".$this->db->_protect_identifiers($field);
105 105
 
106
-				$sql .=  ' '.$attributes['TYPE'];
106
+				$sql .= ' '.$attributes['TYPE'];
107 107
 
108 108
 				if (array_key_exists('CONSTRAINT', $attributes))
109 109
 				{
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 		if (count($primary_keys) > 0)
146 146
 		{
147 147
 			$primary_keys = $this->db->_protect_identifiers($primary_keys);
148
-			$sql .= ",\n\tPRIMARY KEY (" . implode(', ', $primary_keys) . ")";
148
+			$sql .= ",\n\tPRIMARY KEY (".implode(', ', $primary_keys).")";
149 149
 		}
150 150
 
151 151
 		if (is_array($keys) && count($keys) > 0)
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 					$key = array($this->db->_protect_identifiers($key));
162 162
 				}
163 163
 
164
-				$sql .= ",\n\tFOREIGN KEY (" . implode(', ', $key) . ")";
164
+				$sql .= ",\n\tFOREIGN KEY (".implode(', ', $key).")";
165 165
 			}
166 166
 		}
167 167
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
 		if ($after_field != '')
218 218
 		{
219
-			$sql .= ' AFTER ' . $this->db->_protect_identifiers($after_field);
219
+			$sql .= ' AFTER '.$this->db->_protect_identifiers($after_field);
220 220
 		}
221 221
 
222 222
 		return $sql;
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/odbc/odbc_driver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 		// escape LIKE condition wildcards
294 294
 		if ($like === TRUE)
295 295
 		{
296
-			$str = str_replace(	array('%', '_', $this->_like_escape_chr),
296
+			$str = str_replace(array('%', '_', $this->_like_escape_chr),
297 297
 								array($this->_like_escape_chr.'%', $this->_like_escape_chr.'_', $this->_like_escape_chr.$this->_like_escape_chr),
298 298
 								$str);
299 299
 		}
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 			return 0;
347 347
 		}
348 348
 
349
-		$query = $this->query($this->_count_string . $this->_protect_identifiers('numrows') . " FROM " . $this->_protect_identifiers($table, TRUE, NULL, FALSE));
349
+		$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE));
350 350
 
351 351
 		if ($query->num_rows() == 0)
352 352
 		{
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 
356 356
 		$row = $query->row();
357 357
 		$this->_reset_select();
358
-		return (int) $row->numrows;
358
+		return (int)$row->numrows;
359 359
 	}
360 360
 
361 361
 	// --------------------------------------------------------------------
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
 		{
462 462
 			if (strpos($item, '.'.$id) !== FALSE)
463 463
 			{
464
-				$str = $this->_escape_char. str_replace('.', $this->_escape_char.'.', $item);
464
+				$str = $this->_escape_char.str_replace('.', $this->_escape_char.'.', $item);
465 465
 
466 466
 				// remove duplicates if the user already included the escape
467 467
 				return preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str);
@@ -545,11 +545,11 @@  discard block
 block discarded – undo
545 545
 
546 546
 		$limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
547 547
 
548
-		$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
548
+		$orderby = (count($orderby) >= 1) ? ' ORDER BY '.implode(", ", $orderby) : '';
549 549
 
550 550
 		$sql = "UPDATE ".$table." SET ".implode(', ', $valstr);
551 551
 
552
-		$sql .= ($where != '' AND count($where) >=1) ? " WHERE ".implode(" ", $where) : '';
552
+		$sql .= ($where != '' AND count($where) >= 1) ? " WHERE ".implode(" ", $where) : '';
553 553
 
554 554
 		$sql .= $orderby.$limit;
555 555
 
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/mssql/mssql_forge.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 				$sql .= "\n\t".$this->db->_protect_identifiers($field);
105 105
 
106
-				$sql .=  ' '.$attributes['TYPE'];
106
+				$sql .= ' '.$attributes['TYPE'];
107 107
 
108 108
 				if (array_key_exists('CONSTRAINT', $attributes))
109 109
 				{
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 		if (count($primary_keys) > 0)
146 146
 		{
147 147
 			$primary_keys = $this->db->_protect_identifiers($primary_keys);
148
-			$sql .= ",\n\tPRIMARY KEY (" . implode(', ', $primary_keys) . ")";
148
+			$sql .= ",\n\tPRIMARY KEY (".implode(', ', $primary_keys).")";
149 149
 		}
150 150
 
151 151
 		if (is_array($keys) && count($keys) > 0)
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 					$key = array($this->db->_protect_identifiers($key));
162 162
 				}
163 163
 
164
-				$sql .= ",\n\tFOREIGN KEY (" . implode(', ', $key) . ")";
164
+				$sql .= ",\n\tFOREIGN KEY (".implode(', ', $key).")";
165 165
 			}
166 166
 		}
167 167
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
 		if ($after_field != '')
218 218
 		{
219
-			$sql .= ' AFTER ' . $this->db->_protect_identifiers($after_field);
219
+			$sql .= ' AFTER '.$this->db->_protect_identifiers($after_field);
220 220
 		}
221 221
 
222 222
 		return $sql;
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/pdo/pdo_forge.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 				$sql .= "\n\t".$this->db->_protect_identifiers($field);
105 105
 
106
-				$sql .=  ' '.$attributes['TYPE'];
106
+				$sql .= ' '.$attributes['TYPE'];
107 107
 
108 108
 				if (array_key_exists('CONSTRAINT', $attributes))
109 109
 				{
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 		if (count($primary_keys) > 0)
146 146
 		{
147 147
 			$primary_keys = $this->db->_protect_identifiers($primary_keys);
148
-			$sql .= ",\n\tPRIMARY KEY (" . implode(', ', $primary_keys) . ")";
148
+			$sql .= ",\n\tPRIMARY KEY (".implode(', ', $primary_keys).")";
149 149
 		}
150 150
 
151 151
 		if (is_array($keys) && count($keys) > 0)
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 					$key = array($this->db->_protect_identifiers($key));
162 162
 				}
163 163
 
164
-				$sql .= ",\n\tFOREIGN KEY (" . implode(', ', $key) . ")";
164
+				$sql .= ",\n\tFOREIGN KEY (".implode(', ', $key).")";
165 165
 			}
166 166
 		}
167 167
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
 		if ($after_field != '')
218 218
 		{
219
-			$sql .= ' AFTER ' . $this->db->_protect_identifiers($after_field);
219
+			$sql .= ' AFTER '.$this->db->_protect_identifiers($after_field);
220 220
 		}
221 221
 
222 222
 		return $sql;
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/mysql/mysql_result.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@
 block discarded – undo
94 94
 			$F				= new stdClass();
95 95
 			$F->name		= $field->Field;
96 96
 			$F->type		= $type;
97
-			$F->default		= $field->Default;
98
-			$F->max_length	= $length;
99
-			$F->primary_key = ( $field->Key == 'PRI' ? 1 : 0 );
97
+			$F->default = $field->Default;
98
+			$F->max_length = $length;
99
+			$F->primary_key = ($field->Key == 'PRI' ? 1 : 0);
100 100
 
101 101
 			$retval[] = $F;
102 102
 		}
Please login to merge, or discard this patch.
web_interface/astpp/system/database/drivers/mysql/mysql_forge.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
 				if (array_key_exists('TYPE', $attributes))
88 88
 				{
89
-					$sql .=  ' '.$attributes['TYPE'];
89
+					$sql .= ' '.$attributes['TYPE'];
90 90
 				}
91 91
 
92 92
 				if (array_key_exists('CONSTRAINT', $attributes))
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 		{
160 160
 			$key_name = $this->db->_protect_identifiers(implode('_', $primary_keys));
161 161
 			$primary_keys = $this->db->_protect_identifiers($primary_keys);
162
-			$sql .= ",\n\tPRIMARY KEY ".$key_name." (" . implode(', ', $primary_keys) . ")";
162
+			$sql .= ",\n\tPRIMARY KEY ".$key_name." (".implode(', ', $primary_keys).")";
163 163
 		}
164 164
 
165 165
 		if (is_array($keys) && count($keys) > 0)
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 					$key = array($key_name);
178 178
 				}
179 179
 
180
-				$sql .= ",\n\tKEY {$key_name} (" . implode(', ', $key) . ")";
180
+				$sql .= ",\n\tKEY {$key_name} (".implode(', ', $key).")";
181 181
 			}
182 182
 		}
183 183
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
 		if ($after_field != '')
230 230
 		{
231
-			$sql .= ' AFTER ' . $this->db->_protect_identifiers($after_field);
231
+			$sql .= ' AFTER '.$this->db->_protect_identifiers($after_field);
232 232
 		}
233 233
 
234 234
 		return $sql;
Please login to merge, or discard this patch.
web_interface/astpp/system/core/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 {
39 39
 	function byte_format($num, $precision = 1)
40 40
 	{
41
-		$CI =& get_instance();
41
+		$CI = & get_instance();
42 42
 		$CI->lang->load('number');
43 43
 
44 44
 		if ($num >= 1000000000000)
Please login to merge, or discard this patch.
web_interface/astpp/system/helpers/language_helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 {
39 39
 	function byte_format($num, $precision = 1)
40 40
 	{
41
-		$CI =& get_instance();
41
+		$CI = & get_instance();
42 42
 		$CI->lang->load('number');
43 43
 
44 44
 		if ($num >= 1000000000000)
Please login to merge, or discard this patch.