Completed
Push — master ( 646b8b...a5c38a )
by Angus
08:02
created
application/libraries/MY_Form_validation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 	 */
109 109
 	public function isRuleValid(string $ruleName) : bool {
110 110
 		$isValid = FALSE;
111
-		if(is_string($ruleName) && $this->has_rule($ruleName)){
111
+		if(is_string($ruleName) && $this->has_rule($ruleName)) {
112 112
 			$isValid = !array_key_exists($ruleName, $this->error_array());
113 113
 		}
114 114
 		return $isValid;
Please login to merge, or discard this patch.
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
 	public function valid_password(string $password) : bool {
44 44
 		if(!($isValid = $this->min_length($password, $this->CI->config->item('min_password_length', 'ion_auth')))) {
45 45
 			$this->set_message('valid_password', 'The password is too short!');
46
-		}
47
-		elseif(!($isValid = $this->max_length($password, $this->CI->config->item('max_password_length', 'ion_auth')))) {
46
+		} elseif(!($isValid = $this->max_length($password, $this->CI->config->item('max_password_length', 'ion_auth')))) {
48 47
 			$this->set_message('valid_password', 'The password is too long!');
49 48
 		}
50 49
 		return $isValid;
@@ -108,7 +107,7 @@  discard block
 block discarded – undo
108 107
 	 */
109 108
 	public function isRuleValid(string $ruleName) : bool {
110 109
 		$isValid = FALSE;
111
-		if(is_string($ruleName) && $this->has_rule($ruleName)){
110
+		if(is_string($ruleName) && $this->has_rule($ruleName)) {
112 111
 			$isValid = !array_key_exists($ruleName, $this->error_array());
113 112
 		}
114 113
 		return $isValid;
Please login to merge, or discard this patch.
application/config/production/database.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 include APPPATH.'config/database.php'; //CI doesn't do this by default?
4 4
 
Please login to merge, or discard this patch.
application/core/MY_Security.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 class MY_Security extends CI_Security {
4 4
 	public $verified = TRUE;
Please login to merge, or discard this patch.
application/config/development/database.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 include APPPATH.'config/database.php'; //CI doesn't do this by default?
4 4
 
Please login to merge, or discard this patch.
application/config/testing/database.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 include APPPATH.'config/database.php'; //CI doesn't do this by default?
4 4
 
Please login to merge, or discard this patch.
application/controllers/User/Dashboard.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 class Dashboard extends User_Controller {
4 4
 	public function __construct() {
Please login to merge, or discard this patch.
application/controllers/FrontPage.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,9 @@
 block discarded – undo
9 9
 		$this->header_data['title'] = 'Index';
10 10
 		$this->header_data['page']  = 'index';
11 11
 
12
-		if($this->User->logged_in()) redirect('user/dashboard');
12
+		if($this->User->logged_in()) {
13
+			redirect('user/dashboard');
14
+		}
13 15
 		$this->_render_page('FrontPage');
14 16
 	}
15 17
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 class FrontPage extends User_Controller {
4 4
 	public function __construct() {
Please login to merge, or discard this patch.