@@ -6,7 +6,7 @@ discard block |
||
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 |
||
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 |
@@ -94,7 +94,9 @@ discard block |
||
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 |
||
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 | } |
@@ -71,7 +71,7 @@ |
||
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 | } |
@@ -16,8 +16,7 @@ |
||
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 | /** |
@@ -4,7 +4,6 @@ |
||
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 | } |
@@ -4,7 +4,6 @@ |
||
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 | } |
@@ -4,7 +4,6 @@ |
||
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 | } |
@@ -16,8 +16,7 @@ |
||
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 | /** |
@@ -16,8 +16,7 @@ |
||
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 | /** |