Passed
Push — master ( dd1c55...ce4f0a )
by Carsten
05:52
created
Category
src/UserInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
     public function getFullName();
14 14
 
15
-    public function setDisplayName( $name );
15
+    public function setDisplayName($name);
16 16
     public function getDisplayName();
17 17
 
18 18
     public function setFirstName($name);
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
     public function setLoginName($name);
25 25
     public function getLoginName();
26 26
 
27
-    public function setEmail( $email);
27
+    public function setEmail($email);
28 28
     public function getEmail();
29 29
 
30 30
     public function getApiKey();
31
-    public function setApiKey( $key );
31
+    public function setApiKey($key);
32 32
 
33 33
 
34 34
 }
Please login to merge, or discard this patch.
src/Users.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
      * @throws UserNotFoundException
16 16
      * @uses   $users
17 17
      */
18
-    public function get( $id )
18
+    public function get($id)
19 19
     {
20
-        if ($this->has( $id )) {
21
-            return $this->users[ $id ];
20
+        if ($this->has($id)) {
21
+            return $this->users[$id];
22 22
         }
23 23
         throw new UserNotFoundException("Could not find User with ID '$id'");
24 24
     }
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
      * @return boolean
29 29
      * @uses   $users
30 30
      */
31
-    public function has ($id )
31
+    public function has($id)
32 32
     {
33
-        return array_key_exists( $id, $this->users);
33
+        return array_key_exists($id, $this->users);
34 34
     }
35 35
 
36 36
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function getIterator()
43 43
     {
44
-        return new \ArrayIterator( $this->users );
44
+        return new \ArrayIterator($this->users);
45 45
     }
46 46
 
47 47
 
Please login to merge, or discard this patch.
src/UserAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
  * @param  mixed $email
154 154
  * @return self
155 155
  */
156
-    public function setEmail( $email)
156
+    public function setEmail($email)
157 157
     {
158 158
         $this->email = $email;
159 159
         return $this;
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
  * @return self
191 191
  * @uses   $api_key
192 192
  */
193
-    public function setApiKey( $key )
193
+    public function setApiKey($key)
194 194
     {
195 195
         $this->api_key = $key;
196 196
         return $this;
Please login to merge, or discard this patch.
src/PdoAllActiveUsers.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
 
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
         FROM {$this->table}
40 40
         WHERE is_active > 0";
41 41
 
42
-        $stmt = $pdo->prepare( $sql );
42
+        $stmt = $pdo->prepare($sql);
43 43
 
44
-        $stmt->setFetchMode( \PDO::FETCH_CLASS, $user ? get_class($user) : User::class );
44
+        $stmt->setFetchMode(\PDO::FETCH_CLASS, $user ? get_class($user) : User::class);
45 45
 
46 46
         if (!$stmt->execute()):
47 47
             throw new \RuntimeException("Could not retrieve Users from database");
Please login to merge, or discard this patch.
src/PdoUserFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param UserAbstract  $user   Optional: User template object
30 30
      * @param string        $table  Optional: Users table name
31 31
      */
32
-    public function __construct( \PDO $pdo, UserAbstract $user = null, $table = null )
32
+    public function __construct(\PDO $pdo, UserAbstract $user = null, $table = null)
33 33
     {
34 34
         $this->pdo      = $pdo;
35 35
         $this->table    = $table ?: $this->table;
@@ -49,14 +49,14 @@  discard block
 block discarded – undo
49 49
         WHERE U.id = :id
50 50
         AND   U.is_active > 0";
51 51
 
52
-        $this->stmt = $pdo->prepare( $sql );
52
+        $this->stmt = $pdo->prepare($sql);
53 53
 
54
-        $this->stmt->setFetchMode( \PDO::FETCH_CLASS, $user ? get_class($user) : User::class );
54
+        $this->stmt->setFetchMode(\PDO::FETCH_CLASS, $user ? get_class($user) : User::class);
55 55
 
56 56
     }
57 57
 
58 58
 
59
-    public function has ($id) {
59
+    public function has($id) {
60 60
         if (!$this->stmt->execute([
61 61
             'id' => $id
62 62
         ])):
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     }
68 68
 
69 69
 
70
-    public function get ($id) {
70
+    public function get($id) {
71 71
         if (!$this->stmt->execute([
72 72
             'id' => $id
73 73
         ])):
Please login to merge, or discard this patch.