Completed
Push — master ( 8658f8...9553e2 )
by Angus
03:01
created
application/core/MY_Controller.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 	protected $footer_data = array();
7 7
 	public    $global_data = array();
8 8
 
9
-	public function __construct(){
9
+	public function __construct() {
10 10
 		parent::__construct();
11 11
 
12 12
 		//FIXME: This is pretty much a phpUnit hack. Without it phpUnit fails here. We need a proper way to fake user/admin testing.
@@ -80,7 +80,9 @@  discard block
 block discarded – undo
80 80
 	public function __construct() {
81 81
 		parent::__construct();
82 82
 
83
-		if($this->ion_auth->logged_in()) redirect('/');
83
+		if($this->ion_auth->logged_in()) {
84
+			redirect('/');
85
+		}
84 86
 	}
85 87
 }
86 88
 
Please login to merge, or discard this patch.
application/models/User_Options_Model.php 1 patch
Braces   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,9 @@  discard block
 block discarded – undo
94 94
 			}
95 95
 
96 96
 			//Overall fallback method.
97
-			if(!isset($value)) $value = $this->options[$option]['default'];
97
+			if(!isset($value)) {
98
+				$value = $this->options[$option]['default'];
99
+			}
98 100
 		} else {
99 101
 			$value = FALSE;
100 102
 		}
@@ -165,7 +167,10 @@  discard block
 block discarded – undo
165 167
 				//This should never happen.
166 168
 				break;
167 169
 		}
168
-		if(!isset($value)) $value = FALSE; //FIXME: This won't play nice with BOOL type false?
170
+		if(!isset($value)) {
171
+			$value = FALSE;
172
+		}
173
+		//FIXME: This won't play nice with BOOL type false?
169 174
 
170 175
 		return $value;
171 176
 	}
Please login to merge, or discard this patch.
application/models/User_Model.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 			if($query->num_rows() > 0) {
72 72
 				//username exists, grab email
73 73
 				$email = $query->row('email');
74
-			}else{
74
+			} else {
75 75
 				//username doesn't exist, return FALSE
76 76
 				$email = FALSE;
77 77
 			}
Please login to merge, or discard this patch.
application/tests_codeception/_support/UnitTester.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
  *
17 17
  * @SuppressWarnings(PHPMD)
18 18
 */
19
-class UnitTester extends \Codeception\Actor
20
-{
19
+class UnitTester extends \Codeception\Actor {
21 20
     use _generated\UnitTesterActions;
22 21
 
23 22
    /**
Please login to merge, or discard this patch.
application/tests_codeception/_support/Helper/Functional.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 // here you can define custom actions
5 5
 // all public methods declared in helper class will be available in $I
6 6
 
7
-class Functional extends \Codeception\Module
8
-{
7
+class Functional extends \Codeception\Module {
9 8
 
10 9
 }
Please login to merge, or discard this patch.
application/tests_codeception/_support/Helper/Unit.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 // here you can define custom actions
5 5
 // all public methods declared in helper class will be available in $I
6 6
 
7
-class Unit extends \Codeception\Module
8
-{
7
+class Unit extends \Codeception\Module {
9 8
 
10 9
 }
Please login to merge, or discard this patch.
application/tests_codeception/_support/Helper/Acceptance.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 // here you can define custom actions
5 5
 // all public methods declared in helper class will be available in $I
6 6
 
7
-class Acceptance extends \Codeception\Module
8
-{
7
+class Acceptance extends \Codeception\Module {
9 8
 
10 9
 }
Please login to merge, or discard this patch.
application/tests_codeception/_support/AcceptanceTester.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
  *
17 17
  * @SuppressWarnings(PHPMD)
18 18
 */
19
-class AcceptanceTester extends \Codeception\Actor
20
-{
19
+class AcceptanceTester extends \Codeception\Actor {
21 20
     use _generated\AcceptanceTesterActions;
22 21
 
23 22
    /**
Please login to merge, or discard this patch.
application/tests_codeception/_support/FunctionalTester.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
  *
17 17
  * @SuppressWarnings(PHPMD)
18 18
 */
19
-class FunctionalTester extends \Codeception\Actor
20
-{
19
+class FunctionalTester extends \Codeception\Actor {
21 20
     use _generated\FunctionalTesterActions;
22 21
 
23 22
    /**
Please login to merge, or discard this patch.