@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * @param UserAbstract|null $user Optional: UserInterface instance |
42 | 42 | * @param [type] $table Optional: table name |
43 | 43 | */ |
44 | - public function __construct( \PDO $pdo, UuidFactoryInterface $uuid_factory, UserAbstract $user = null, $table = null ) |
|
44 | + public function __construct(\PDO $pdo, UuidFactoryInterface $uuid_factory, UserAbstract $user = null, $table = null) |
|
45 | 45 | { |
46 | 46 | $this->pdo = $pdo; |
47 | 47 | $this->uuid_factory = $uuid_factory; |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | WHERE U.uuid = UNHEX( REPLACE( :uuid, '-','') ) |
67 | 67 | AND U.is_active > 0"; |
68 | 68 | |
69 | - $this->stmt = $pdo->prepare( $sql ); |
|
69 | + $this->stmt = $pdo->prepare($sql); |
|
70 | 70 | |
71 | - $this->stmt->setFetchMode( \PDO::FETCH_CLASS, $this->php_users_class ); |
|
71 | + $this->stmt->setFetchMode(\PDO::FETCH_CLASS, $this->php_users_class); |
|
72 | 72 | |
73 | 73 | } |
74 | 74 | |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | |
83 | 83 | |
84 | 84 | |
85 | - public function has ($uuid) { |
|
86 | - $uuid = $this->assertUUID( $uuid ); |
|
85 | + public function has($uuid) { |
|
86 | + $uuid = $this->assertUUID($uuid); |
|
87 | 87 | if (!$this->stmt->execute([ |
88 | 88 | 'uuid' => $uuid |
89 | 89 | ])): |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | |
97 | - public function get ($uuid) { |
|
98 | - $uuid = $this->assertUUID( $uuid ); |
|
97 | + public function get($uuid) { |
|
98 | + $uuid = $this->assertUUID($uuid); |
|
99 | 99 | if (!$this->stmt->execute([ |
100 | 100 | 'uuid' => $uuid |
101 | 101 | ])): |
@@ -119,10 +119,10 @@ discard block |
||
119 | 119 | * |
120 | 120 | * @throws Ramsey\Uuid\Exception\InvalidUuidStringException |
121 | 121 | */ |
122 | - protected function assertUUID( $uuid ) |
|
122 | + protected function assertUUID($uuid) |
|
123 | 123 | { |
124 | - if (is_string( $uuid )): |
|
125 | - $uuid = $this->uuid_factory->fromString( $uuid ); |
|
124 | + if (is_string($uuid)): |
|
125 | + $uuid = $this->uuid_factory->fromString($uuid); |
|
126 | 126 | elseif (!$uuid instanceOf UuidInterface): |
127 | 127 | throw new \InvalidArgumentException("UuidInterface or UUID string expected"); |
128 | 128 | endif; |