Completed
Push — master ( 0789c7...4b7f5b )
by Carsten
10:22 queued 04:56
created
src/PdoAllUsers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param UserAbstract  $user   Optional: User template object
22 22
      * @param string        $table  Optional: Users table name
23 23
      */
24
-    public function __construct( \PDO $pdo, UserAbstract $user = null, $table = null  )
24
+    public function __construct(\PDO $pdo, UserAbstract $user = null, $table = null)
25 25
     {
26 26
         $this->table = $table ?: $this->table;
27 27
 
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 
43 43
         FROM {$this->table}";
44 44
 
45
-        $stmt = $pdo->prepare( $sql );
45
+        $stmt = $pdo->prepare($sql);
46 46
 
47
-        $stmt->setFetchMode( \PDO::FETCH_CLASS, $user ? get_class($user) : User::class );
47
+        $stmt->setFetchMode(\PDO::FETCH_CLASS, $user ? get_class($user) : User::class);
48 48
 
49 49
         if (!$stmt->execute()):
50 50
             throw new \RuntimeException("Could not retrieve Users from database");
Please login to merge, or discard this patch.