Test Failed
Pull Request — develop (#30)
by Michiel
07:02
created
library/tiqr/Tiqr/UserSecretStorage/Encryption/Mcrypt.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     }
58 58
     
59 59
     /**
60
-      * Decrypts the given data.
60
+     * Decrypts the given data.
61 61
      *
62 62
      * @param String $data Data to decrypt.
63 63
      *
Please login to merge, or discard this patch.
library/tiqr/Tiqr/UserSecretStorage/Encryption/Dummy.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     }
58 58
     
59 59
     /**
60
-      * Decrypts the given data.
60
+     * Decrypts the given data.
61 61
      *
62 62
      * @param String $data Data to decrypt.
63 63
      *
Please login to merge, or discard this patch.
library/tiqr/Tiqr/UserSecretStorage/Pdo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     private function getUserSecret($userId)
84 84
     {
85 85
         $sth = $this->handle->prepare("SELECT secret FROM ".$this->tableName." WHERE userid = ?");
86
-        if($sth->execute(array($userId))) {
86
+        if ($sth->execute(array($userId))) {
87 87
             return $sth->fetchColumn();
88 88
         }
89 89
         $this->logger->error('Unable to retrieve user secret from user secret storage (PDO)');
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         } else {
103 103
             $sth = $this->handle->prepare("INSERT INTO ".$this->tableName." (secret,userid) VALUES (?,?)");
104 104
         }
105
-        if (!$sth->execute(array($secret,$userId))) {
105
+        if (!$sth->execute(array($secret, $userId))) {
106 106
             $this->logger->error('Unable to persist user secret in user secret storage (PDO)');
107 107
         }
108 108
     }
Please login to merge, or discard this patch.