Completed
Push — master ( 4b7f5b...0cecc1 )
by Carsten
13:09 queued 06:31
created
src/PdoUserFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         ])):
Please login to merge, or discard this patch.