@@ -96,12 +96,12 @@ |
||
96 | 96 | { |
97 | 97 | if (!$localId) { |
98 | 98 | |
99 | - $localId = trim($join, 's' ). '_id'; |
|
99 | + $localId = trim($join, 's') . '_id'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | if (!$forginId) { |
103 | 103 | |
104 | - $forginId = 'id'; |
|
104 | + $forginId = 'id'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | $sql = $join . ' ON ' . $this->table . '.' . $localId . ' = ' . $join . '.' . $forginId; |
@@ -358,7 +358,7 @@ |
||
358 | 358 | { |
359 | 359 | $sql = array_shift($bindings); |
360 | 360 | |
361 | - if (count($bindings) == 1 AND is_array($bindings[0])) { |
|
361 | + if (count($bindings) == 1 and is_array($bindings[0])) { |
|
362 | 362 | $bindings = $bindings[0]; |
363 | 363 | } |
364 | 364 |
@@ -143,7 +143,7 @@ |
||
143 | 143 | |
144 | 144 | $valueConfirm = $this->value($input); |
145 | 145 | |
146 | - if ($valuePassword && $valueConfirm ) { |
|
146 | + if ($valuePassword && $valueConfirm) { |
|
147 | 147 | |
148 | 148 | if ($valuePassword !== $valueConfirm) { |
149 | 149 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | $class = strtolower($class); |
85 | 85 | |
86 | - $class = '/' . $class . '/'; |
|
86 | + $class = '/' . $class . '/'; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | $url = $app->request->url(); |
@@ -3,7 +3,8 @@ |
||
3 | 3 | use System\Application; |
4 | 4 | |
5 | 5 | if (!function_exists('pre')) { |
6 | - function pre($var) { |
|
6 | + function pre($var) |
|
7 | + { |
|
7 | 8 | echo '<pre>'; |
8 | 9 | print_r($var); |
9 | 10 | echo '</pre>'; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | $isSecure = true; |
53 | 53 | |
54 | - } elseif ((!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') || (! empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) { |
|
54 | + } elseif ((!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') || (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) { |
|
55 | 55 | $isSecure = true; |
56 | 56 | } |
57 | 57 |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | public function isValidLogin($email, $password) |
14 | 14 | { |
15 | - $user = $this->where('email=?' , $email)->fetch($this->table); |
|
15 | + $user = $this->where('email=?', $email)->fetch($this->table); |
|
16 | 16 | |
17 | - if (! $user) { |
|
17 | + if (!$user) { |
|
18 | 18 | |
19 | 19 | return false; |
20 | 20 | } |