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
Pull Request — develop (#145)
by
unknown
09:16 queued 03:08
created
system/libraries/Form_validation.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -60,63 +60,63 @@  discard block
 block discarded – undo
60 60
 	 *
61 61
 	 * @var array
62 62
 	 */
63
-	protected $_field_data		= array();
63
+	protected $_field_data = array();
64 64
 
65 65
 	/**
66 66
 	 * Validation rules for the current form
67 67
 	 *
68 68
 	 * @var array
69 69
 	 */
70
-	protected $_config_rules	= array();
70
+	protected $_config_rules = array();
71 71
 
72 72
 	/**
73 73
 	 * Array of validation errors
74 74
 	 *
75 75
 	 * @var array
76 76
 	 */
77
-	protected $_error_array		= array();
77
+	protected $_error_array = array();
78 78
 
79 79
 	/**
80 80
 	 * Array of custom error messages
81 81
 	 *
82 82
 	 * @var array
83 83
 	 */
84
-	protected $_error_messages	= array();
84
+	protected $_error_messages = array();
85 85
 
86 86
 	/**
87 87
 	 * Start tag for error wrapping
88 88
 	 *
89 89
 	 * @var string
90 90
 	 */
91
-	protected $_error_prefix	= '<p>';
91
+	protected $_error_prefix = '<p>';
92 92
 
93 93
 	/**
94 94
 	 * End tag for error wrapping
95 95
 	 *
96 96
 	 * @var string
97 97
 	 */
98
-	protected $_error_suffix	= '</p>';
98
+	protected $_error_suffix = '</p>';
99 99
 
100 100
 	/**
101 101
 	 * Custom error message
102 102
 	 *
103 103
 	 * @var string
104 104
 	 */
105
-	protected $error_string		= '';
105
+	protected $error_string = '';
106 106
 
107 107
 	/**
108 108
 	 * Whether the form data has been validated as safe
109 109
 	 *
110 110
 	 * @var bool
111 111
 	 */
112
-	protected $_safe_form_data	= FALSE;
112
+	protected $_safe_form_data = FALSE;
113 113
 
114 114
 	/**
115 115
 	 * Custom data to validate
116 116
 	 *
117 117
 	 * @var array
118 118
 	 */
119
-	public $validation_data	= array();
119
+	public $validation_data = array();
120 120
 
121 121
 	/**
122 122
 	 * Initialize Form_Validation class
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 */
127 127
 	public function __construct($rules = array())
128 128
 	{
129
-		$this->CI =& get_instance();
129
+		$this->CI = & get_instance();
130 130
 
131 131
 		// applies delimiters set in config file.
132 132
 		if (isset($rules['error_prefix']))
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
 	{
509 509
 		if (is_array($array) && isset($keys[$i]))
510 510
 		{
511
-			return isset($array[$keys[$i]]) ? $this->_reduce_array($array[$keys[$i]], $keys, ($i+1)) : NULL;
511
+			return isset($array[$keys[$i]]) ? $this->_reduce_array($array[$keys[$i]], $keys, ($i + 1)) : NULL;
512 512
 		}
513 513
 
514 514
 		// NULL must be returned for empty fields
@@ -538,18 +538,18 @@  discard block
 block discarded – undo
538 538
 				else
539 539
 				{
540 540
 					// start with a reference
541
-					$post_ref =& $_POST;
541
+					$post_ref = & $_POST;
542 542
 
543 543
 					// before we assign values, make a reference to the right POST key
544 544
 					if (count($row['keys']) === 1)
545 545
 					{
546
-						$post_ref =& $post_ref[current($row['keys'])];
546
+						$post_ref = & $post_ref[current($row['keys'])];
547 547
 					}
548 548
 					else
549 549
 					{
550 550
 						foreach ($row['keys'] as $val)
551 551
 						{
552
-							$post_ref =& $post_ref[$val];
552
+							$post_ref = & $post_ref[$val];
553 553
 						}
554 554
 					}
555 555
 
Please login to merge, or discard this patch.
system/libraries/Image_lib.php 1 patch
Spacing   +79 added lines, -79 removed lines patch added patch discarded remove patch
@@ -54,105 +54,105 @@  discard block
 block discarded – undo
54 54
 	 *
55 55
 	 * @var string
56 56
 	 */
57
-	public $image_library		= 'gd2';
57
+	public $image_library = 'gd2';
58 58
 
59 59
 	/**
60 60
 	 * Path to the graphic library (if applicable)
61 61
 	 *
62 62
 	 * @var string
63 63
 	 */
64
-	public $library_path		= '';
64
+	public $library_path = '';
65 65
 
66 66
 	/**
67 67
 	 * Whether to send to browser or write to disk
68 68
 	 *
69 69
 	 * @var bool
70 70
 	 */
71
-	public $dynamic_output		= FALSE;
71
+	public $dynamic_output = FALSE;
72 72
 
73 73
 	/**
74 74
 	 * Path to original image
75 75
 	 *
76 76
 	 * @var string
77 77
 	 */
78
-	public $source_image		= '';
78
+	public $source_image = '';
79 79
 
80 80
 	/**
81 81
 	 * Path to the modified image
82 82
 	 *
83 83
 	 * @var string
84 84
 	 */
85
-	public $new_image		= '';
85
+	public $new_image = '';
86 86
 
87 87
 	/**
88 88
 	 * Image width
89 89
 	 *
90 90
 	 * @var int
91 91
 	 */
92
-	public $width			= '';
92
+	public $width = '';
93 93
 
94 94
 	/**
95 95
 	 * Image height
96 96
 	 *
97 97
 	 * @var int
98 98
 	 */
99
-	public $height			= '';
99
+	public $height = '';
100 100
 
101 101
 	/**
102 102
 	 * Quality percentage of new image
103 103
 	 *
104 104
 	 * @var int
105 105
 	 */
106
-	public $quality			= 90;
106
+	public $quality = 90;
107 107
 
108 108
 	/**
109 109
 	 * Whether to create a thumbnail
110 110
 	 *
111 111
 	 * @var bool
112 112
 	 */
113
-	public $create_thumb		= FALSE;
113
+	public $create_thumb = FALSE;
114 114
 
115 115
 	/**
116 116
 	 * String to add to thumbnail version of image
117 117
 	 *
118 118
 	 * @var string
119 119
 	 */
120
-	public $thumb_marker		= '_thumb';
120
+	public $thumb_marker = '_thumb';
121 121
 
122 122
 	/**
123 123
 	 * Whether to maintain aspect ratio when resizing or use hard values
124 124
 	 *
125 125
 	 * @var bool
126 126
 	 */
127
-	public $maintain_ratio		= TRUE;
127
+	public $maintain_ratio = TRUE;
128 128
 
129 129
 	/**
130 130
 	 * auto, height, or width.  Determines what to use as the master dimension
131 131
 	 *
132 132
 	 * @var string
133 133
 	 */
134
-	public $master_dim		= 'auto';
134
+	public $master_dim = 'auto';
135 135
 
136 136
 	/**
137 137
 	 * Angle at to rotate image
138 138
 	 *
139 139
 	 * @var string
140 140
 	 */
141
-	public $rotation_angle		= '';
141
+	public $rotation_angle = '';
142 142
 
143 143
 	/**
144 144
 	 * X Coordinate for manipulation of the current image
145 145
 	 *
146 146
 	 * @var int
147 147
 	 */
148
-	public $x_axis			= '';
148
+	public $x_axis = '';
149 149
 
150 150
 	/**
151 151
 	 * Y Coordinate for manipulation of the current image
152 152
 	 *
153 153
 	 * @var int
154 154
 	 */
155
-	public $y_axis			= '';
155
+	public $y_axis = '';
156 156
 
157 157
 	// --------------------------------------------------------------------------
158 158
 	// Watermark Vars
@@ -163,112 +163,112 @@  discard block
 block discarded – undo
163 163
 	 *
164 164
 	 * @var string
165 165
 	 */
166
-	public $wm_text			= '';
166
+	public $wm_text = '';
167 167
 
168 168
 	/**
169 169
 	 * Type of watermarking.  Options:  text/overlay
170 170
 	 *
171 171
 	 * @var string
172 172
 	 */
173
-	public $wm_type			= 'text';
173
+	public $wm_type = 'text';
174 174
 
175 175
 	/**
176 176
 	 * Default transparency for watermark
177 177
 	 *
178 178
 	 * @var int
179 179
 	 */
180
-	public $wm_x_transp		= 4;
180
+	public $wm_x_transp = 4;
181 181
 
182 182
 	/**
183 183
 	 * Default transparency for watermark
184 184
 	 *
185 185
 	 * @var int
186 186
 	 */
187
-	public $wm_y_transp		= 4;
187
+	public $wm_y_transp = 4;
188 188
 
189 189
 	/**
190 190
 	 * Watermark image path
191 191
 	 *
192 192
 	 * @var string
193 193
 	 */
194
-	public $wm_overlay_path		= '';
194
+	public $wm_overlay_path = '';
195 195
 
196 196
 	/**
197 197
 	 * TT font
198 198
 	 *
199 199
 	 * @var string
200 200
 	 */
201
-	public $wm_font_path		= '';
201
+	public $wm_font_path = '';
202 202
 
203 203
 	/**
204 204
 	 * Font size (different versions of GD will either use points or pixels)
205 205
 	 *
206 206
 	 * @var int
207 207
 	 */
208
-	public $wm_font_size		= 17;
208
+	public $wm_font_size = 17;
209 209
 
210 210
 	/**
211 211
 	 * Vertical alignment:   T M B
212 212
 	 *
213 213
 	 * @var string
214 214
 	 */
215
-	public $wm_vrt_alignment	= 'B';
215
+	public $wm_vrt_alignment = 'B';
216 216
 
217 217
 	/**
218 218
 	 * Horizontal alignment: L R C
219 219
 	 *
220 220
 	 * @var string
221 221
 	 */
222
-	public $wm_hor_alignment	= 'C';
222
+	public $wm_hor_alignment = 'C';
223 223
 
224 224
 	/**
225 225
 	 * Padding around text
226 226
 	 *
227 227
 	 * @var int
228 228
 	 */
229
-	public $wm_padding			= 0;
229
+	public $wm_padding = 0;
230 230
 
231 231
 	/**
232 232
 	 * Lets you push text to the right
233 233
 	 *
234 234
 	 * @var int
235 235
 	 */
236
-	public $wm_hor_offset		= 0;
236
+	public $wm_hor_offset = 0;
237 237
 
238 238
 	/**
239 239
 	 * Lets you push text down
240 240
 	 *
241 241
 	 * @var int
242 242
 	 */
243
-	public $wm_vrt_offset		= 0;
243
+	public $wm_vrt_offset = 0;
244 244
 
245 245
 	/**
246 246
 	 * Text color
247 247
 	 *
248 248
 	 * @var string
249 249
 	 */
250
-	protected $wm_font_color	= '#ffffff';
250
+	protected $wm_font_color = '#ffffff';
251 251
 
252 252
 	/**
253 253
 	 * Dropshadow color
254 254
 	 *
255 255
 	 * @var string
256 256
 	 */
257
-	protected $wm_shadow_color	= '';
257
+	protected $wm_shadow_color = '';
258 258
 
259 259
 	/**
260 260
 	 * Dropshadow distance
261 261
 	 *
262 262
 	 * @var int
263 263
 	 */
264
-	public $wm_shadow_distance	= 2;
264
+	public $wm_shadow_distance = 2;
265 265
 
266 266
 	/**
267 267
 	 * Image opacity: 1 - 100  Only works with image
268 268
 	 *
269 269
 	 * @var int
270 270
 	 */
271
-	public $wm_opacity		= 50;
271
+	public $wm_opacity = 50;
272 272
 
273 273
 	// --------------------------------------------------------------------------
274 274
 	// Private Vars
@@ -279,63 +279,63 @@  discard block
 block discarded – undo
279 279
 	 *
280 280
 	 * @var string
281 281
 	 */
282
-	public $source_folder		= '';
282
+	public $source_folder = '';
283 283
 
284 284
 	/**
285 285
 	 * Destination image folder
286 286
 	 *
287 287
 	 * @var string
288 288
 	 */
289
-	public $dest_folder		= '';
289
+	public $dest_folder = '';
290 290
 
291 291
 	/**
292 292
 	 * Image mime-type
293 293
 	 *
294 294
 	 * @var string
295 295
 	 */
296
-	public $mime_type		= '';
296
+	public $mime_type = '';
297 297
 
298 298
 	/**
299 299
 	 * Original image width
300 300
 	 *
301 301
 	 * @var int
302 302
 	 */
303
-	public $orig_width		= '';
303
+	public $orig_width = '';
304 304
 
305 305
 	/**
306 306
 	 * Original image height
307 307
 	 *
308 308
 	 * @var int
309 309
 	 */
310
-	public $orig_height		= '';
310
+	public $orig_height = '';
311 311
 
312 312
 	/**
313 313
 	 * Image format
314 314
 	 *
315 315
 	 * @var string
316 316
 	 */
317
-	public $image_type		= '';
317
+	public $image_type = '';
318 318
 
319 319
 	/**
320 320
 	 * Size of current image
321 321
 	 *
322 322
 	 * @var string
323 323
 	 */
324
-	public $size_str		= '';
324
+	public $size_str = '';
325 325
 
326 326
 	/**
327 327
 	 * Full path to source image
328 328
 	 *
329 329
 	 * @var string
330 330
 	 */
331
-	public $full_src_path		= '';
331
+	public $full_src_path = '';
332 332
 
333 333
 	/**
334 334
 	 * Full path to destination image
335 335
 	 *
336 336
 	 * @var string
337 337
 	 */
338
-	public $full_dst_path		= '';
338
+	public $full_dst_path = '';
339 339
 
340 340
 	/**
341 341
 	 * File permissions
@@ -349,35 +349,35 @@  discard block
 block discarded – undo
349 349
 	 *
350 350
 	 * @var string
351 351
 	 */
352
-	public $create_fnc		= 'imagecreatetruecolor';
352
+	public $create_fnc = 'imagecreatetruecolor';
353 353
 
354 354
 	/**
355 355
 	 * Name of function to copy image
356 356
 	 *
357 357
 	 * @var string
358 358
 	 */
359
-	public $copy_fnc		= 'imagecopyresampled';
359
+	public $copy_fnc = 'imagecopyresampled';
360 360
 
361 361
 	/**
362 362
 	 * Error messages
363 363
 	 *
364 364
 	 * @var array
365 365
 	 */
366
-	public $error_msg		= array();
366
+	public $error_msg = array();
367 367
 
368 368
 	/**
369 369
 	 * Whether to have a drop shadow on watermark
370 370
 	 *
371 371
 	 * @var bool
372 372
 	 */
373
-	protected $wm_use_drop_shadow	= FALSE;
373
+	protected $wm_use_drop_shadow = FALSE;
374 374
 
375 375
 	/**
376 376
 	 * Whether to use truetype fonts
377 377
 	 *
378 378
 	 * @var bool
379 379
 	 */
380
-	public $wm_use_truetype	= FALSE;
380
+	public $wm_use_truetype = FALSE;
381 381
 
382 382
 	/**
383 383
 	 * Initialize Image Library
@@ -413,30 +413,30 @@  discard block
 block discarded – undo
413 413
 			$this->$val = '';
414 414
 		}
415 415
 
416
-		$this->image_library 		= 'gd2';
417
-		$this->dynamic_output 		= FALSE;
418
-		$this->quality 				= 90;
416
+		$this->image_library = 'gd2';
417
+		$this->dynamic_output = FALSE;
418
+		$this->quality = 90;
419 419
 		$this->create_thumb 		= FALSE;
420 420
 		$this->thumb_marker 		= '_thumb';
421
-		$this->maintain_ratio 		= TRUE;
422
-		$this->master_dim 			= 'auto';
423
-		$this->wm_type 				= 'text';
421
+		$this->maintain_ratio = TRUE;
422
+		$this->master_dim = 'auto';
423
+		$this->wm_type = 'text';
424 424
 		$this->wm_x_transp 			= 4;
425 425
 		$this->wm_y_transp 			= 4;
426 426
 		$this->wm_font_size 		= 17;
427 427
 		$this->wm_vrt_alignment 	= 'B';
428 428
 		$this->wm_hor_alignment 	= 'C';
429
-		$this->wm_padding 			= 0;
429
+		$this->wm_padding = 0;
430 430
 		$this->wm_hor_offset 		= 0;
431 431
 		$this->wm_vrt_offset 		= 0;
432
-		$this->wm_font_color		= '#ffffff';
433
-		$this->wm_shadow_distance 	= 2;
432
+		$this->wm_font_color = '#ffffff';
433
+		$this->wm_shadow_distance = 2;
434 434
 		$this->wm_opacity 			= 50;
435 435
 		$this->create_fnc 			= 'imagecreatetruecolor';
436
-		$this->copy_fnc 			= 'imagecopyresampled';
437
-		$this->error_msg 			= array();
438
-		$this->wm_use_drop_shadow 	= FALSE;
439
-		$this->wm_use_truetype 		= FALSE;
436
+		$this->copy_fnc = 'imagecopyresampled';
437
+		$this->error_msg = array();
438
+		$this->wm_use_drop_shadow = FALSE;
439
+		$this->wm_use_truetype = FALSE;
440 440
 	}
441 441
 
442 442
 	// --------------------------------------------------------------------
@@ -711,13 +711,13 @@  discard block
 block discarded – undo
711 711
 		// Reassign the width and height
712 712
 		if ($this->rotation_angle === 90 OR $this->rotation_angle === 270)
713 713
 		{
714
-			$this->width	= $this->orig_height;
715
-			$this->height	= $this->orig_width;
714
+			$this->width = $this->orig_height;
715
+			$this->height = $this->orig_width;
716 716
 		}
717 717
 		else
718 718
 		{
719
-			$this->width	= $this->orig_width;
720
-			$this->height	= $this->orig_height;
719
+			$this->width = $this->orig_width;
720
+			$this->height = $this->orig_height;
721 721
 		}
722 722
 
723 723
 		// Choose resizing function
@@ -795,13 +795,13 @@  discard block
 block discarded – undo
795 795
 		 */
796 796
 		if ($this->image_library === 'gd2' && function_exists('imagecreatetruecolor'))
797 797
 		{
798
-			$create	= 'imagecreatetruecolor';
799
-			$copy	= 'imagecopyresampled';
798
+			$create = 'imagecreatetruecolor';
799
+			$copy = 'imagecopyresampled';
800 800
 		}
801 801
 		else
802 802
 		{
803
-			$create	= 'imagecreate';
804
-			$copy	= 'imagecopyresized';
803
+			$create = 'imagecreate';
804
+			$copy = 'imagecopyresized';
805 805
 		}
806 806
 
807 807
 		$dst_img = $create($this->width, $this->height);
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
 
863 863
 		if ($action === 'crop')
864 864
 		{
865
-			$cmd .= ' -crop '.$this->width.'x'.$this->height.'+'.$this->x_axis.'+'.$this->y_axis.' "'.$this->full_src_path.'" "'.$this->full_dst_path .'" 2>&1';
865
+			$cmd .= ' -crop '.$this->width.'x'.$this->height.'+'.$this->x_axis.'+'.$this->y_axis.' "'.$this->full_src_path.'" "'.$this->full_dst_path.'" 2>&1';
866 866
 		}
867 867
 		elseif ($action === 'rotate')
868 868
 		{
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
 		}
874 874
 		else // Resize
875 875
 		{
876
-			if($this->maintain_ratio === TRUE)
876
+			if ($this->maintain_ratio === TRUE)
877 877
 			{
878 878
 				$cmd .= ' -resize '.$this->width.'x'.$this->height.' "'.$this->full_src_path.'" "'.$this->full_dst_path.'" 2>&1';
879 879
 			}
@@ -1146,10 +1146,10 @@  discard block
 block discarded – undo
1146 1146
 		$this->get_image_properties();
1147 1147
 
1148 1148
 		// Fetch watermark image properties
1149
-		$props		= $this->get_image_properties($this->wm_overlay_path, TRUE);
1150
-		$wm_img_type	= $props['image_type'];
1151
-		$wm_width	= $props['width'];
1152
-		$wm_height	= $props['height'];
1149
+		$props = $this->get_image_properties($this->wm_overlay_path, TRUE);
1150
+		$wm_img_type = $props['image_type'];
1151
+		$wm_width = $props['width'];
1152
+		$wm_height = $props['height'];
1153 1153
 
1154 1154
 		// Create two image resources
1155 1155
 		$wm_img  = $this->image_create_gd($this->wm_overlay_path, $wm_img_type);
@@ -1589,7 +1589,7 @@  discard block
 block discarded – undo
1589 1589
 		{
1590 1590
 			if ($this->width > 0 && $this->height > 0)
1591 1591
 			{
1592
-				$this->master_dim = ((($this->orig_height/$this->orig_width) - ($this->height/$this->width)) < 0)
1592
+				$this->master_dim = ((($this->orig_height / $this->orig_width) - ($this->height / $this->width)) < 0)
1593 1593
 							? 'width' : 'height';
1594 1594
 			}
1595 1595
 			else
@@ -1605,11 +1605,11 @@  discard block
 block discarded – undo
1605 1605
 
1606 1606
 		if ($this->master_dim === 'width')
1607 1607
 		{
1608
-			$this->height = (int) ceil($this->width*$this->orig_height/$this->orig_width);
1608
+			$this->height = (int) ceil($this->width * $this->orig_height / $this->orig_width);
1609 1609
 		}
1610 1610
 		else
1611 1611
 		{
1612
-			$this->width = (int) ceil($this->orig_width*$this->height/$this->orig_height);
1612
+			$this->width = (int) ceil($this->orig_width * $this->height / $this->orig_height);
1613 1613
 		}
1614 1614
 	}
1615 1615
 
@@ -1656,7 +1656,7 @@  discard block
 block discarded – undo
1656 1656
 		}
1657 1657
 
1658 1658
 		$this->orig_width	= $vals[0];
1659
-		$this->orig_height	= $vals[1];
1659
+		$this->orig_height = $vals[1];
1660 1660
 		$this->image_type	= $vals[2];
1661 1661
 		$this->size_str		= $vals[3];
1662 1662
 		$this->mime_type	= $mime;
@@ -1707,11 +1707,11 @@  discard block
 block discarded – undo
1707 1707
 
1708 1708
 		if ($vals['new_width'] === 0)
1709 1709
 		{
1710
-			$vals['new_width'] = ceil($vals['width']*$vals['new_height']/$vals['height']);
1710
+			$vals['new_width'] = ceil($vals['width'] * $vals['new_height'] / $vals['height']);
1711 1711
 		}
1712 1712
 		elseif ($vals['new_height'] === 0)
1713 1713
 		{
1714
-			$vals['new_height'] = ceil($vals['new_width']*$vals['height']/$vals['width']);
1714
+			$vals['new_height'] = ceil($vals['new_width'] * $vals['height'] / $vals['width']);
1715 1715
 		}
1716 1716
 
1717 1717
 		return $vals;
@@ -1788,7 +1788,7 @@  discard block
 block discarded – undo
1788 1788
 	 */
1789 1789
 	public function set_error($msg)
1790 1790
 	{
1791
-		$CI =& get_instance();
1791
+		$CI = & get_instance();
1792 1792
 		$CI->lang->load('imglib');
1793 1793
 
1794 1794
 		if (is_array($msg))
Please login to merge, or discard this patch.
system/libraries/Javascript.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@
 block discarded – undo
78 78
 
79 79
 		extract($defaults);
80 80
 
81
-		$this->CI =& get_instance();
81
+		$this->CI = & get_instance();
82 82
 
83 83
 		// load the requested js library
84 84
 		$this->CI->load->library('Javascript/'.$js_library_driver, array('autoload' => $autoload));
85 85
 		// make js to refer to current library
86
-		$this->js =& $this->CI->$js_library_driver;
86
+		$this->js = & $this->CI->$js_library_driver;
87 87
 
88 88
 		log_message('info', 'Javascript Class Initialized and loaded. Driver used: '.$js_library_driver);
89 89
 	}
Please login to merge, or discard this patch.
system/libraries/Migration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
 
259 259
 			// Run migrations that are inside the target range
260 260
 			if (
261
-				($method === 'up'   && $number > $current_version && $number <= $target_version) OR
261
+				($method === 'up' && $number > $current_version && $number <= $target_version) OR
262 262
 				($method === 'down' && $number <= $current_version && $number > $target_version)
263 263
 			)
264 264
 			{
Please login to merge, or discard this patch.
system/libraries/Pagination.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 *
56 56
 	 * @var	string
57 57
 	 */
58
-	protected $base_url		= '';
58
+	protected $base_url = '';
59 59
 
60 60
 	/**
61 61
 	 * Prefix
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 	 */
330 330
 	public function __construct($params = array())
331 331
 	{
332
-		$this->CI =& get_instance();
332
+		$this->CI = & get_instance();
333 333
 		$this->CI->load->language('pagination');
334 334
 		foreach (array('first_link', 'next_link', 'prev_link', 'last_link') as $key)
335 335
 		{
@@ -545,13 +545,13 @@  discard block
 block discarded – undo
545 545
 		// to a page number, so we can generate the surrounding number links.
546 546
 		if ( ! $this->use_page_numbers)
547 547
 		{
548
-			$this->cur_page = (int) floor(($this->cur_page/$this->per_page) + 1);
548
+			$this->cur_page = (int) floor(($this->cur_page / $this->per_page) + 1);
549 549
 		}
550 550
 
551 551
 		// Calculate the start and end numbers. These determine
552 552
 		// which number to start and end the digit links with.
553
-		$start	= (($this->cur_page - $this->num_links) > 0) ? $this->cur_page - ($this->num_links - 1) : 1;
554
-		$end	= (($this->cur_page + $this->num_links) < $num_pages) ? $this->cur_page + $this->num_links : $num_pages;
553
+		$start = (($this->cur_page - $this->num_links) > 0) ? $this->cur_page - ($this->num_links - 1) : 1;
554
+		$end = (($this->cur_page + $this->num_links) < $num_pages) ? $this->cur_page + $this->num_links : $num_pages;
555 555
 
556 556
 		// And here we go...
557 557
 		$output = '';
Please login to merge, or discard this patch.
system/libraries/Parser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 	 */
79 79
 	public function __construct()
80 80
 	{
81
-		$this->CI =& get_instance();
81
+		$this->CI = & get_instance();
82 82
 		log_message('info', 'Parser Class Initialized');
83 83
 	}
84 84
 
Please login to merge, or discard this patch.
system/libraries/Profiler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 */
98 98
 	public function __construct($config = array())
99 99
 	{
100
-		$this->CI =& get_instance();
100
+		$this->CI = & get_instance();
101 101
 		$this->CI->load->language('profiler');
102 102
 
103 103
 		// default all sections to display
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 		// Key words we want bolded
239 239
 		$highlight = array('SELECT', 'DISTINCT', 'FROM', 'WHERE', 'AND', 'LEFT&nbsp;JOIN', 'ORDER&nbsp;BY', 'GROUP&nbsp;BY', 'LIMIT', 'INSERT', 'INTO', 'VALUES', 'UPDATE', 'OR&nbsp;', 'HAVING', 'OFFSET', 'NOT&nbsp;IN', 'IN', 'LIKE', 'NOT&nbsp;LIKE', 'COUNT', 'MAX', 'MIN', 'ON', 'AS', 'AVG', 'SUM', '(', ')');
240 240
 
241
-		$output  = "\n\n";
241
+		$output = "\n\n";
242 242
 		$count = 0;
243 243
 
244 244
 		foreach ($dbs as $name => $db)
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 			.'&nbsp;&nbsp;(<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_httpheaders_table\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_show').'\'?\''.$this->CI->lang->line('profiler_section_hide').'\':\''.$this->CI->lang->line('profiler_section_show').'\';">'.$this->CI->lang->line('profiler_section_show')."</span>)</legend>\n\n\n"
464 464
 			.'<table style="width:100%;display:none;" id="ci_profiler_httpheaders_table">'."\n";
465 465
 
466
-		foreach (array('HTTP_ACCEPT', 'HTTP_USER_AGENT', 'HTTP_CONNECTION', 'SERVER_PORT', 'SERVER_NAME', 'REMOTE_ADDR', 'SERVER_SOFTWARE', 'HTTP_ACCEPT_LANGUAGE', 'SCRIPT_NAME', 'REQUEST_METHOD',' HTTP_HOST', 'REMOTE_HOST', 'CONTENT_TYPE', 'SERVER_PROTOCOL', 'QUERY_STRING', 'HTTP_ACCEPT_ENCODING', 'HTTP_X_FORWARDED_FOR', 'HTTP_DNT') as $header)
466
+		foreach (array('HTTP_ACCEPT', 'HTTP_USER_AGENT', 'HTTP_CONNECTION', 'SERVER_PORT', 'SERVER_NAME', 'REMOTE_ADDR', 'SERVER_SOFTWARE', 'HTTP_ACCEPT_LANGUAGE', 'SCRIPT_NAME', 'REQUEST_METHOD', ' HTTP_HOST', 'REMOTE_HOST', 'CONTENT_TYPE', 'SERVER_PROTOCOL', 'QUERY_STRING', 'HTTP_ACCEPT_ENCODING', 'HTTP_X_FORWARDED_FOR', 'HTTP_DNT') as $header)
467 467
 		{
468 468
 			$val = isset($_SERVER[$header]) ? $_SERVER[$header] : '';
469 469
 			$output .= '<tr><td style="vertical-align:top;width:50%;padding:5px;color:#900;background-color:#ddd;">'
Please login to merge, or discard this patch.
system/libraries/Session/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -354,7 +354,7 @@
 block discarded – undo
354 354
 			}
355 355
 		}
356 356
 
357
-		$this->userdata =& $_SESSION;
357
+		$this->userdata = & $_SESSION;
358 358
 	}
359 359
 
360 360
 	// ------------------------------------------------------------------------
Please login to merge, or discard this patch.
system/libraries/Session/Session_driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 	 */
85 85
 	public function __construct(&$params)
86 86
 	{
87
-		$this->_config =& $params;
87
+		$this->_config = & $params;
88 88
 	}
89 89
 
90 90
 	// ------------------------------------------------------------------------
Please login to merge, or discard this patch.