@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | * @param LoggerInterface $logger Optional: PSR-3 Logger |
61 | 61 | * @param string $table Optional: Database table name |
62 | 62 | */ |
63 | - public function __construct( \PDO $pdo, LoggerInterface $logger = null, $table = null ) |
|
63 | + public function __construct( \PDO $pdo, LoggerInterface $logger = null, $table = null ) |
|
64 | 64 | { |
65 | 65 | // Setup |
66 | 66 | $this->pdo = $pdo; |
67 | - $this->logger = $logger ?: new NullLogger; |
|
67 | + $this->logger = $logger ?: new NullLogger; |
|
68 | 68 | $this->table = $table ?: $this->table; |
69 | 69 | |
70 | 70 | // Prepare business |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | // Prepare |
88 | 88 | $this->stmt = $this->pdo->prepare( $sql ); |
89 | 89 | |
90 | - } |
|
90 | + } |
|
91 | 91 | |
92 | 92 | |
93 | 93 |
@@ -55,10 +55,10 @@ discard block |
||
55 | 55 | * @param LoggerInterface $logger Optional: PSR-3 Logger |
56 | 56 | * @param string $table Optional: Database table name |
57 | 57 | */ |
58 | - public function __construct( \PDO $pdo, LoggerInterface $logger = null, $table = null ) |
|
58 | + public function __construct( \PDO $pdo, LoggerInterface $logger = null, $table = null ) |
|
59 | 59 | { |
60 | 60 | // Setup |
61 | - $this->logger = $logger ?: new NullLogger; |
|
61 | + $this->logger = $logger ?: new NullLogger; |
|
62 | 62 | $this->table = $table ?: $this->table; |
63 | 63 | |
64 | 64 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $this->stmt = $pdo->prepare( $sql ); |
77 | 77 | |
78 | 78 | |
79 | - } |
|
79 | + } |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * @param int $user_id User ID |
@@ -75,7 +75,7 @@ |
||
75 | 75 | public function __invoke( $user_name ) |
76 | 76 | { |
77 | 77 | $bool = $this->stmt->execute([ |
78 | - 'username' => $user_name |
|
78 | + 'username' => $user_name |
|
79 | 79 | ]); |
80 | 80 | |
81 | 81 | $available = !$this->stmt->fetchColumn(); |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | * @param LoggerInterface $logger Optional: PSR-3 Logger |
54 | 54 | * @param string $table Optional: Database table name |
55 | 55 | */ |
56 | - public function __construct( \PDO $pdo, Callable $random_gen, LoggerInterface $logger = null, $table = null ) |
|
57 | - { |
|
56 | + public function __construct( \PDO $pdo, Callable $random_gen, LoggerInterface $logger = null, $table = null ) |
|
57 | + { |
|
58 | 58 | |
59 | 59 | // Prerequisites |
60 | 60 | $this->table = $table ?: $this->table; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | // Store for later use |
71 | 71 | $this->stmt = $pdo->prepare( $sql ); |
72 | - } |
|
72 | + } |
|
73 | 73 | |
74 | 74 | |
75 | 75 | /** |