@@ -47,7 +47,7 @@ |
||
| 47 | 47 | "submit" => [ |
| 48 | 48 | "type" => "submit", |
| 49 | 49 | "value" => "Create user", |
| 50 | - "callback" => [$this, "callbackSubmit"] |
|
| 50 | + "callback" => [ $this, "callbackSubmit" ] |
|
| 51 | 51 | ], |
| 52 | 52 | ] |
| 53 | 53 | ); |
@@ -26,20 +26,20 @@ discard block |
||
| 26 | 26 | [ |
| 27 | 27 | "id" => [ |
| 28 | 28 | "type" => "text", |
| 29 | - "validation" => ["not_empty"], |
|
| 29 | + "validation" => [ "not_empty" ], |
|
| 30 | 30 | "readonly" => "readonly", |
| 31 | 31 | "value" => $user->id, |
| 32 | 32 | ], |
| 33 | 33 | |
| 34 | 34 | "username" => [ |
| 35 | 35 | "type" => "text", |
| 36 | - "validation" => ["not_empty"], |
|
| 36 | + "validation" => [ "not_empty" ], |
|
| 37 | 37 | "value" => $user->username, |
| 38 | 38 | ], |
| 39 | 39 | |
| 40 | 40 | "password" => [ |
| 41 | 41 | "type" => "password", |
| 42 | - "validation" => ["not_empty"], |
|
| 42 | + "validation" => [ "not_empty" ], |
|
| 43 | 43 | ], |
| 44 | 44 | |
| 45 | 45 | "password-again" => [ |
@@ -51,14 +51,14 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | "email" => [ |
| 53 | 53 | "type" => "email", |
| 54 | - "validation" => ["not_empty"], |
|
| 54 | + "validation" => [ "not_empty" ], |
|
| 55 | 55 | "value" => $user->email, |
| 56 | 56 | ], |
| 57 | 57 | |
| 58 | 58 | "submit" => [ |
| 59 | 59 | "type" => "submit", |
| 60 | 60 | "value" => "Create user", |
| 61 | - "callback" => [$this, "callbackSubmit"] |
|
| 61 | + "callback" => [ $this, "callbackSubmit" ] |
|
| 62 | 62 | ], |
| 63 | 63 | ] |
| 64 | 64 | ); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | return false; |
| 104 | 104 | } |
| 105 | 105 | $user->find("id", $this->form->value("id")); |
| 106 | - $user->username = $username; |
|
| 106 | + $user->username = $username; |
|
| 107 | 107 | $user->password = $this->form->value("password"); |
| 108 | 108 | $user->email = $email; |
| 109 | 109 | $user->save(); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | "submit" => [ |
| 40 | 40 | "type" => "submit", |
| 41 | 41 | "value" => "Login", |
| 42 | - "callback" => [$this, "callbackSubmit"] |
|
| 42 | + "callback" => [ $this, "callbackSubmit" ] |
|
| 43 | 43 | ], |
| 44 | 44 | ] |
| 45 | 45 | ); |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | public function callbackSubmit() |
| 57 | 57 | { |
| 58 | 58 | // Get values from the submitted form |
| 59 | - $username = $this->form->value("username"); |
|
| 60 | - $password = $this->form->value("password"); |
|
| 59 | + $username = $this->form->value("username"); |
|
| 60 | + $password = $this->form->value("password"); |
|
| 61 | 61 | |
| 62 | 62 | // Try to login |
| 63 | 63 | // $db = $this->di->get("dbqb"); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | $items = isset($items) ? $items : null; |
| 12 | 12 | $session = $this->di->get("session"); |
| 13 | 13 | $filter = $this->di->get("textfilter"); |
| 14 | -$tags = []; |
|
| 14 | +$tags = [ ]; |
|
| 15 | 15 | var_dump($res); |
| 16 | 16 | // var_dump($session); |
| 17 | 17 | ?> |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | $size = 90; |
| 6 | 6 | $grav_url = "https://www.gravatar.com/avatar/"; |
| 7 | -$tags = []; |
|
| 7 | +$tags = [ ]; |
|
| 8 | 8 | $counter = 1; |
| 9 | 9 | |
| 10 | 10 | ?> |