Created
February 23, 2019 11:24
-
-
Save tristanlins/d915dc357dd1f174295276d1a6abaff4 to your computer and use it in GitHub Desktop.
Programmierstil / Der schreibfaule Hacker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class UserDao { | |
| public function findByLoginFromRequest(Request $r) { | |
| $s = $this->c->prepare('SELECT user FROM users WHERE login=?'); | |
| $s->bindValue(1, $r->request->get('login')); | |
| return $s->execute() ? $s->fetch(\PDO::FETCH_ASSOC) : false; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment