@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @param UserAbstract $user Optional: User template object |
35 | 35 | * @param string $table Optional: Users table name |
36 | 36 | */ |
37 | - public function __construct( \PDO $pdo, UserAbstract $user = null, $table = null ) |
|
37 | + public function __construct(\PDO $pdo, UserAbstract $user = null, $table = null) |
|
38 | 38 | { |
39 | 39 | $this->pdo = $pdo; |
40 | 40 | $this->table = $table ?: $this->table; |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | WHERE U.id = :id |
58 | 58 | AND U.is_active > 0"; |
59 | 59 | |
60 | - $this->stmt = $pdo->prepare( $sql ); |
|
60 | + $this->stmt = $pdo->prepare($sql); |
|
61 | 61 | |
62 | - $this->stmt->setFetchMode( \PDO::FETCH_CLASS, $this->php_users_class ); |
|
62 | + $this->stmt->setFetchMode(\PDO::FETCH_CLASS, $this->php_users_class); |
|
63 | 63 | |
64 | 64 | } |
65 | 65 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | |
75 | 75 | |
76 | - public function has ($id) { |
|
76 | + public function has($id) { |
|
77 | 77 | if (!$this->stmt->execute([ |
78 | 78 | 'id' => $id |
79 | 79 | ])): |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | |
87 | - public function get ($id) { |
|
87 | + public function get($id) { |
|
88 | 88 | if (!$this->stmt->execute([ |
89 | 89 | 'id' => $id |
90 | 90 | ])): |