Completed
Push — master ( 53eae5...5a39da )
by Angus
03:43
created
public/index.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -210,10 +210,10 @@
 block discarded – undo
210 210
 {
211 211
 	// Ensure there's a trailing slash
212 212
 	$system_path = strtr(
213
-		               rtrim($system_path, '/\\'),
214
-		               '/\\',
215
-		               DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
216
-	               ).DIRECTORY_SEPARATOR;
213
+					   rtrim($system_path, '/\\'),
214
+					   '/\\',
215
+					   DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
216
+				   ).DIRECTORY_SEPARATOR;
217 217
 }
218 218
 
219 219
 // Is the system path correct?
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 // Maintenance Mode
40 40
 define('MAINTENANCE', FALSE);
41 41
 if(MAINTENANCE && PHP_SAPI !== 'cli') {
42
-	require_once __DIR__ . DIRECTORY_SEPARATOR . '../application/views/common/maintenance.php'; ## call view
42
+	require_once __DIR__.DIRECTORY_SEPARATOR.'../application/views/common/maintenance.php'; ## call view
43 43
 	exit();
44 44
 }
45 45
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
  * Different environments will require different levels of error reporting.
82 82
  * By default development will show errors but testing and live will hide them.
83 83
  */
84
-switch (ENVIRONMENT)
84
+switch(ENVIRONMENT)
85 85
 {
86 86
 	case 'development':
87 87
 		error_reporting(-1);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	case 'testing':
95 95
 	case 'production':
96 96
 		ini_set('display_errors', 0);
97
-		if (version_compare(PHP_VERSION, '5.3', '>='))
97
+		if(version_compare(PHP_VERSION, '5.3', '>='))
98 98
 		{
99 99
 			error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
100 100
 		}
@@ -212,12 +212,12 @@  discard block
 block discarded – undo
212 212
  */
213 213
 
214 214
 // Set the current directory correctly for CLI requests
215
-if (defined('STDIN'))
215
+if(defined('STDIN'))
216 216
 {
217 217
 	chdir(dirname(__FILE__));
218 218
 }
219 219
 
220
-if (($_temp = realpath($system_path)) !== FALSE)
220
+if(($_temp = realpath($system_path)) !== FALSE)
221 221
 {
222 222
 	$system_path = $_temp.DIRECTORY_SEPARATOR;
223 223
 }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 }
233 233
 
234 234
 // Is the system path correct?
235
-if ( ! is_dir($system_path))
235
+if(!is_dir($system_path))
236 236
 {
237 237
 	header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
238 238
 	echo 'Your system folder path does not appear to be set correctly. Please open the following file and correct this: '.pathinfo(__FILE__, PATHINFO_BASENAME);
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
 define('SYSDIR', basename(BASEPATH));
258 258
 
259 259
 // The path to the "application" directory
260
-if (is_dir($application_folder))
260
+if(is_dir($application_folder))
261 261
 {
262
-	if (($_temp = realpath($application_folder)) !== FALSE)
262
+	if(($_temp = realpath($application_folder)) !== FALSE)
263 263
 	{
264 264
 		$application_folder = $_temp;
265 265
 	}
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 		);
273 273
 	}
274 274
 }
275
-elseif (is_dir(BASEPATH.$application_folder.DIRECTORY_SEPARATOR))
275
+elseif(is_dir(BASEPATH.$application_folder.DIRECTORY_SEPARATOR))
276 276
 {
277 277
 	$application_folder = BASEPATH.strtr(
278 278
 			trim($application_folder, '/\\'),
@@ -290,13 +290,13 @@  discard block
 block discarded – undo
290 290
 define('APPPATH', $application_folder.DIRECTORY_SEPARATOR);
291 291
 
292 292
 // The path to the "views" directory
293
-if ( ! isset($view_folder[0]) && is_dir(APPPATH.'views'.DIRECTORY_SEPARATOR))
293
+if(!isset($view_folder[0]) && is_dir(APPPATH.'views'.DIRECTORY_SEPARATOR))
294 294
 {
295 295
 	$view_folder = APPPATH.'views';
296 296
 }
297
-elseif (is_dir($view_folder))
297
+elseif(is_dir($view_folder))
298 298
 {
299
-	if (($_temp = realpath($view_folder)) !== FALSE)
299
+	if(($_temp = realpath($view_folder)) !== FALSE)
300 300
 	{
301 301
 		$view_folder = $_temp;
302 302
 	}
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 		);
310 310
 	}
311 311
 }
312
-elseif (is_dir(APPPATH.$view_folder.DIRECTORY_SEPARATOR))
312
+elseif(is_dir(APPPATH.$view_folder.DIRECTORY_SEPARATOR))
313 313
 {
314 314
 	$view_folder = APPPATH.strtr(
315 315
 			trim($view_folder, '/\\'),
Please login to merge, or discard this patch.
application/views/User/Forgot_Password.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 			<div class="row">
21 21
 				<div class="col-xs-12 col-md-12">
22
-					<?=form_submit($form_submit);?>
22
+					<?=form_submit($form_submit); ?>
23 23
 				</div>
24 24
 			</div>
25 25
 		</form>
Please login to merge, or discard this patch.
application/views/User/Login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
 				<div class="row">
27 27
 					<div class="col-xs-6 col-sm-6 col-md-6">
28
-						<?=form_submit($form_submit);?>
28
+						<?=form_submit($form_submit); ?>
29 29
 					</div>
30 30
 					<div class="col-xs-6 col-sm-6 col-md-6">
31 31
 						<a href="<?=base_url('user/signup')?>" class="btn btn-lg btn-primary btn-block">Create an account</a>
Please login to merge, or discard this patch.
application/views/errors/html/error_php.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
 <p>Filename: <?php echo $filepath; ?></p>
12 12
 <p>Line Number: <?php echo $line; ?></p>
13 13
 
14
-<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
14
+<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
15 15
 
16 16
 	<p>Backtrace:</p>
17
-	<?php foreach (debug_backtrace() as $error): ?>
17
+	<?php foreach(debug_backtrace() as $error): ?>
18 18
 
19
-		<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
19
+		<?php if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
20 20
 
21 21
 			<p style="margin-left:10px">
22 22
 			File: <?php echo $error['file'] ?><br />
Please login to merge, or discard this patch.
application/views/errors/html/error_exception.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
 <p>Filename: <?php echo $exception->getFile(); ?></p>
12 12
 <p>Line Number: <?php echo $exception->getLine(); ?></p>
13 13
 
14
-<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
14
+<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
15 15
 
16 16
 	<p>Backtrace:</p>
17
-	<?php foreach ($exception->getTrace() as $error): ?>
17
+	<?php foreach($exception->getTrace() as $error): ?>
18 18
 
19
-		<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
19
+		<?php if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
20 20
 
21 21
 			<p style="margin-left:10px">
22 22
 			File: <?php echo $error['file']; ?><br />
Please login to merge, or discard this patch.
application/views/errors/cli/error_php.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
 Filename:    <?php echo $filepath, "\n"; ?>
8 8
 Line Number: <?php echo $line; ?>
9 9
 
10
-<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
10
+<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
11 11
 
12 12
 Backtrace:
13
-<?php	foreach (debug_backtrace() as $error): ?>
14
-<?php		if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
13
+<?php	foreach(debug_backtrace() as $error): ?>
14
+<?php		if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
15 15
 	File: <?php echo $error['file'], "\n"; ?>
16 16
 	Line: <?php echo $error['line'], "\n"; ?>
17 17
 	Function: <?php echo $error['function'], "\n\n"; ?>
Please login to merge, or discard this patch.
application/views/errors/cli/error_exception.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
 Filename:    <?php echo $exception->getFile(), "\n"; ?>
8 8
 Line Number: <?php echo $exception->getLine(); ?>
9 9
 
10
-<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
10
+<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
11 11
 
12 12
 Backtrace:
13
-<?php	foreach ($exception->getTrace() as $error): ?>
14
-<?php		if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
13
+<?php	foreach($exception->getTrace() as $error): ?>
14
+<?php		if(isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
15 15
 	File: <?php echo $error['file'], "\n"; ?>
16 16
 	Line: <?php echo $error['line'], "\n"; ?>
17 17
 	Function: <?php echo $error['function'], "\n\n"; ?>
Please login to merge, or discard this patch.
application/config/mimes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 	'jpeg'	=>	array('image/jpeg', 'image/pjpeg'),
77 77
 	'jpg'	=>	array('image/jpeg', 'image/pjpeg'),
78 78
 	'jpe'	=>	array('image/jpeg', 'image/pjpeg'),
79
-	'png'	=>	array('image/png',  'image/x-png'),
79
+	'png'	=>	array('image/png', 'image/x-png'),
80 80
 	'tiff'	=>	'image/tiff',
81 81
 	'tif'	=>	'image/tiff',
82 82
 	'css'	=>	array('text/css', 'text/plain'),
Please login to merge, or discard this patch.
application/config/smileys.php 1 patch
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -17,48 +17,48 @@
 block discarded – undo
17 17
 
18 18
 //	smiley			image name						width	height	alt
19 19
 
20
-	':-)'			=>	array('grin.gif',			'19',	'19',	'grin'),
21
-	':lol:'			=>	array('lol.gif',			'19',	'19',	'LOL'),
22
-	':cheese:'		=>	array('cheese.gif',			'19',	'19',	'cheese'),
23
-	':)'			=>	array('smile.gif',			'19',	'19',	'smile'),
24
-	';-)'			=>	array('wink.gif',			'19',	'19',	'wink'),
25
-	';)'			=>	array('wink.gif',			'19',	'19',	'wink'),
26
-	':smirk:'		=>	array('smirk.gif',			'19',	'19',	'smirk'),
27
-	':roll:'		=>	array('rolleyes.gif',		'19',	'19',	'rolleyes'),
28
-	':-S'			=>	array('confused.gif',		'19',	'19',	'confused'),
29
-	':wow:'			=>	array('surprise.gif',		'19',	'19',	'surprised'),
30
-	':bug:'			=>	array('bigsurprise.gif',	'19',	'19',	'big surprise'),
31
-	':-P'			=>	array('tongue_laugh.gif',	'19',	'19',	'tongue laugh'),
32
-	'%-P'			=>	array('tongue_rolleye.gif',	'19',	'19',	'tongue rolleye'),
33
-	';-P'			=>	array('tongue_wink.gif',	'19',	'19',	'tongue wink'),
34
-	':P'			=>	array('raspberry.gif',		'19',	'19',	'raspberry'),
35
-	':blank:'		=>	array('blank.gif',			'19',	'19',	'blank stare'),
36
-	':long:'		=>	array('longface.gif',		'19',	'19',	'long face'),
37
-	':ohh:'			=>	array('ohh.gif',			'19',	'19',	'ohh'),
38
-	':grrr:'		=>	array('grrr.gif',			'19',	'19',	'grrr'),
39
-	':gulp:'		=>	array('gulp.gif',			'19',	'19',	'gulp'),
40
-	'8-/'			=>	array('ohoh.gif',			'19',	'19',	'oh oh'),
41
-	':down:'		=>	array('downer.gif',			'19',	'19',	'downer'),
42
-	':red:'			=>	array('embarrassed.gif',	'19',	'19',	'red face'),
43
-	':sick:'		=>	array('sick.gif',			'19',	'19',	'sick'),
44
-	':shut:'		=>	array('shuteye.gif',		'19',	'19',	'shut eye'),
45
-	':-/'			=>	array('hmm.gif',			'19',	'19',	'hmmm'),
46
-	'>:('			=>	array('mad.gif',			'19',	'19',	'mad'),
47
-	':mad:'			=>	array('mad.gif',			'19',	'19',	'mad'),
48
-	'>:-('			=>	array('angry.gif',			'19',	'19',	'angry'),
49
-	':angry:'		=>	array('angry.gif',			'19',	'19',	'angry'),
50
-	':zip:'			=>	array('zip.gif',			'19',	'19',	'zipper'),
51
-	':kiss:'		=>	array('kiss.gif',			'19',	'19',	'kiss'),
52
-	':ahhh:'		=>	array('shock.gif',			'19',	'19',	'shock'),
53
-	':coolsmile:'	=>	array('shade_smile.gif',	'19',	'19',	'cool smile'),
54
-	':coolsmirk:'	=>	array('shade_smirk.gif',	'19',	'19',	'cool smirk'),
55
-	':coolgrin:'	=>	array('shade_grin.gif',		'19',	'19',	'cool grin'),
56
-	':coolhmm:'		=>	array('shade_hmm.gif',		'19',	'19',	'cool hmm'),
57
-	':coolmad:'		=>	array('shade_mad.gif',		'19',	'19',	'cool mad'),
58
-	':coolcheese:'	=>	array('shade_cheese.gif',	'19',	'19',	'cool cheese'),
59
-	':vampire:'		=>	array('vampire.gif',		'19',	'19',	'vampire'),
60
-	':snake:'		=>	array('snake.gif',			'19',	'19',	'snake'),
61
-	':exclaim:'		=>	array('exclaim.gif',		'19',	'19',	'exclaim'),
62
-	':question:'	=>	array('question.gif',		'19',	'19',	'question')
20
+	':-)'			=>	array('grin.gif', '19', '19', 'grin'),
21
+	':lol:'			=>	array('lol.gif', '19', '19', 'LOL'),
22
+	':cheese:'		=>	array('cheese.gif', '19', '19', 'cheese'),
23
+	':)'			=>	array('smile.gif', '19', '19', 'smile'),
24
+	';-)'			=>	array('wink.gif', '19', '19', 'wink'),
25
+	';)'			=>	array('wink.gif', '19', '19', 'wink'),
26
+	':smirk:'		=>	array('smirk.gif', '19', '19', 'smirk'),
27
+	':roll:'		=>	array('rolleyes.gif', '19', '19', 'rolleyes'),
28
+	':-S'			=>	array('confused.gif', '19', '19', 'confused'),
29
+	':wow:'			=>	array('surprise.gif', '19', '19', 'surprised'),
30
+	':bug:'			=>	array('bigsurprise.gif', '19', '19', 'big surprise'),
31
+	':-P'			=>	array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
32
+	'%-P'			=>	array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
33
+	';-P'			=>	array('tongue_wink.gif', '19', '19', 'tongue wink'),
34
+	':P'			=>	array('raspberry.gif', '19', '19', 'raspberry'),
35
+	':blank:'		=>	array('blank.gif', '19', '19', 'blank stare'),
36
+	':long:'		=>	array('longface.gif', '19', '19', 'long face'),
37
+	':ohh:'			=>	array('ohh.gif', '19', '19', 'ohh'),
38
+	':grrr:'		=>	array('grrr.gif', '19', '19', 'grrr'),
39
+	':gulp:'		=>	array('gulp.gif', '19', '19', 'gulp'),
40
+	'8-/'			=>	array('ohoh.gif', '19', '19', 'oh oh'),
41
+	':down:'		=>	array('downer.gif', '19', '19', 'downer'),
42
+	':red:'			=>	array('embarrassed.gif', '19', '19', 'red face'),
43
+	':sick:'		=>	array('sick.gif', '19', '19', 'sick'),
44
+	':shut:'		=>	array('shuteye.gif', '19', '19', 'shut eye'),
45
+	':-/'			=>	array('hmm.gif', '19', '19', 'hmmm'),
46
+	'>:('			=>	array('mad.gif', '19', '19', 'mad'),
47
+	':mad:'			=>	array('mad.gif', '19', '19', 'mad'),
48
+	'>:-('			=>	array('angry.gif', '19', '19', 'angry'),
49
+	':angry:'		=>	array('angry.gif', '19', '19', 'angry'),
50
+	':zip:'			=>	array('zip.gif', '19', '19', 'zipper'),
51
+	':kiss:'		=>	array('kiss.gif', '19', '19', 'kiss'),
52
+	':ahhh:'		=>	array('shock.gif', '19', '19', 'shock'),
53
+	':coolsmile:'	=>	array('shade_smile.gif', '19', '19', 'cool smile'),
54
+	':coolsmirk:'	=>	array('shade_smirk.gif', '19', '19', 'cool smirk'),
55
+	':coolgrin:'	=>	array('shade_grin.gif', '19', '19', 'cool grin'),
56
+	':coolhmm:'		=>	array('shade_hmm.gif', '19', '19', 'cool hmm'),
57
+	':coolmad:'		=>	array('shade_mad.gif', '19', '19', 'cool mad'),
58
+	':coolcheese:'	=>	array('shade_cheese.gif', '19', '19', 'cool cheese'),
59
+	':vampire:'		=>	array('vampire.gif', '19', '19', 'vampire'),
60
+	':snake:'		=>	array('snake.gif', '19', '19', 'snake'),
61
+	':exclaim:'		=>	array('exclaim.gif', '19', '19', 'exclaim'),
62
+	':question:'	=>	array('question.gif', '19', '19', 'question')
63 63
 
64 64
 );
Please login to merge, or discard this patch.