@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function handle(Application $app, $next) |
| 11 | 11 | { |
| 12 | - if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) { |
|
| 12 | + if (empty($_SERVER['HTTP_X_REQUESTED_WITH'])) { |
|
| 13 | 13 | |
| 14 | 14 | return $app->url->redirectTo('error'); |
| 15 | 15 | } |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | |
| 34 | 34 | if (array_equal($inputs, $allows)) { |
| 35 | 35 | |
| 36 | - $username = $this->request->post('username'); |
|
| 37 | - $password = $this->request->post('password'); |
|
| 36 | + $username = $this->request->post('username'); |
|
| 37 | + $password = $this->request->post('password'); |
|
| 38 | 38 | $remember = false; |
| 39 | 39 | |
| 40 | 40 | if (in_array('remeberme', array_keys($posts))) { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | private function isUserNew($date) |
| 52 | 52 | { |
| 53 | - if (!$date) {return;} |
|
| 53 | + if (!$date) {return; } |
|
| 54 | 54 | |
| 55 | 55 | $register = DateTime::createFromFormat('Y-m-d H:i:s', $date); |
| 56 | 56 | $register_year = $register->format('Y'); |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | |
| 181 | 181 | if ($column !== 'status') { |
| 182 | 182 | |
| 183 | - $msg = null; |
|
| 183 | + $msg = null; |
|
| 184 | 184 | |
| 185 | 185 | $msg['success'] = 'no text'; |
| 186 | 186 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | 'table' => 'users', |
| 58 | 58 | 'user_id_table_name' => 'id', |
| 59 | 59 | 'require' => true, |
| 60 | - 'containJust' => [0,1,2], |
|
| 60 | + 'containJust' => [0, 1, 2], |
|
| 61 | 61 | ], |
| 62 | 62 | 'country' => [ |
| 63 | 63 | 'table' => 'address', |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | ini_set('session.use_only_cookies', 1); |
| 30 | 30 | |
| 31 | - if (! session_id()) { |
|
| 31 | + if (!session_id()) { |
|
| 32 | 32 | |
| 33 | 33 | session_start(); |
| 34 | 34 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param mixed $default |
| 54 | 54 | * @return mixed |
| 55 | 55 | */ |
| 56 | - public function get($key , $default = null) |
|
| 56 | + public function get($key, $default = null) |
|
| 57 | 57 | { |
| 58 | 58 | return array_get($_SESSION, $key, $default); |
| 59 | 59 | } |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | $this->container[$key] = $value; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | - /** |
|
| 140 | + /** |
|
| 141 | 141 | * Get Shared Value |
| 142 | 142 | * |
| 143 | 143 | * @param string $key |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | { |
| 118 | 118 | $controller .= strpos($controller, 'Controller') ? '' : 'Controller'; |
| 119 | 119 | |
| 120 | - $controller = 'App\\Controllers\\'. $controller; |
|
| 120 | + $controller = 'App\\Controllers\\' . $controller; |
|
| 121 | 121 | |
| 122 | 122 | return $controller; |
| 123 | 123 | } |
@@ -273,7 +273,7 @@ |
||
| 273 | 273 | |
| 274 | 274 | $umlauts = explode(",", $umlauts); |
| 275 | 275 | |
| 276 | - foreach($umlauts as $umlaut) { |
|
| 276 | + foreach ($umlauts as $umlaut) { |
|
| 277 | 277 | |
| 278 | 278 | if ((strpos($value, $umlaut) !== false)) { |
| 279 | 279 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | // just to make sure that the passed query string parameter page |
| 64 | 64 | // must be number and should be more or equal than 1 |
| 65 | 65 | |
| 66 | - if (!is_numeric($page) OR $page < 1) { |
|
| 66 | + if (!is_numeric($page) or $page < 1) { |
|
| 67 | 67 | |
| 68 | 68 | $page = 1; |
| 69 | 69 | } |