Completed
Pull Request — development (#2476)
by Sebastian
10:50
created
include/classes/template.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -161,6 +161,9 @@
 block discarded – undo
161 161
       return $templates;
162 162
   }
163 163
 
164
+    /**
165
+     * @param string $path
166
+     */
164 167
     private function _getTemplatesTreeRecursive($path)
165 168
     {
166 169
         if (!is_dir($path)) {
Please login to merge, or discard this patch.
include/classes/token.class.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,7 @@  discard block
 block discarded – undo
10 10
    * Return time token was created.
11 11
    *
12 12
    * @param id int Token ID
13
+   * @param string $token
13 14
    * @param time string Creation timestamp
14 15
    **/
15 16
   public function getCreationTime($token)
@@ -111,7 +112,7 @@  discard block
 block discarded – undo
111 112
    * @param name string Name of the variable
112 113
    * @param value string Variable value
113 114
    *
114
-   * @return mixed Token string on success, false on failure
115
+   * @return string|boolean Token string on success, false on failure
115 116
    **/
116 117
   public function createToken($strType, $account_id = null)
117 118
   {
Please login to merge, or discard this patch.
include/classes/tools.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
    *
81 81
    * @param url string API URL
82 82
    *
83
-   * @return data string API type
83
+   * @return string|false string API type
84 84
    **/
85 85
   private function getApiType($url)
86 86
   {
Please login to merge, or discard this patch.
include/classes/transaction.class.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -453,6 +453,10 @@
 block discarded – undo
453 453
     {
454 454
         return $this->createDebitRecord($account_id, $coin_address, $amount, 'Debit_AP');
455 455
     }
456
+
457
+    /**
458
+     * @param string $type
459
+     */
456 460
     private function createDebitRecord($account_id, $coin_address, $amount, $type)
457 461
     {
458 462
         // Calculate and deduct txfee from amount
Please login to merge, or discard this patch.
include/classes/user.class.php 1 patch
Doc Comments   +30 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,10 @@  discard block
 block discarded – undo
42 42
     {
43 43
         return $this->getSingle($id, 'is_anonymous', 'id');
44 44
     }
45
+
46
+    /**
47
+     * @param string $email
48
+     */
45 49
     public function getUserNameByEmail($email)
46 50
     {
47 51
         return $this->getSingle($email, 'username', 'email', 's');
@@ -58,6 +62,10 @@  discard block
 block discarded – undo
58 62
     {
59 63
         return $this->getSingle($username, 'email', 'username', 's', $lower);
60 64
     }
65
+
66
+    /**
67
+     * @param integer $id
68
+     */
61 69
     public function getUserEmailById($id)
62 70
     {
63 71
         return $this->getSingle($id, 'email', 'id', 'i');
@@ -66,6 +74,10 @@  discard block
 block discarded – undo
66 74
     {
67 75
         return $this->getSingle($id, 'pass', 'id', 'i');
68 76
     }
77
+
78
+    /**
79
+     * @param integer $id
80
+     */
69 81
     public function getUserPinHashById($id)
70 82
     {
71 83
         return $this->getSingle($id, 'pin', 'id', 'i');
@@ -94,6 +106,10 @@  discard block
 block discarded – undo
94 106
     {
95 107
         return $this->getSingle($id, 'last_login', 'id');
96 108
     }
109
+
110
+    /**
111
+     * @param string $email
112
+     */
97 113
     public function getEmail($email)
98 114
     {
99 115
         return $this->getSingle($email, 'email', 'email', 's');
@@ -129,6 +145,10 @@  discard block
 block discarded – undo
129 145
 
130 146
         return $this->updateSingle($id, $field);
131 147
     }
148
+
149
+    /**
150
+     * @param integer $value
151
+     */
132 152
     public function setLocked($id, $value)
133 153
     {
134 154
         $field = array('name' => 'is_locked', 'type' => 'i', 'value' => $value);
@@ -149,6 +169,11 @@  discard block
 block discarded – undo
149 169
 
150 170
         return $this->updateSingle($id, $field);
151 171
     }
172
+
173
+    /**
174
+     * @param integer $id
175
+     * @param integer $value
176
+     */
152 177
     public function setUserPinFailed($id, $value)
153 178
     {
154 179
         $field = array('name' => 'failed_pins', 'type' => 'i', 'value' => $value);
@@ -161,6 +186,10 @@  discard block
 block discarded – undo
161 186
 
162 187
         return $this->updateSingle($id, $field);
163 188
     }
189
+
190
+    /**
191
+     * @param integer $id
192
+     */
164 193
     private function incUserPinFailed($id)
165 194
     {
166 195
         $field = array('name' => 'failed_pins', 'type' => 'i', 'value' => $this->getUserPinFailed($id) + 1);
@@ -834,7 +863,7 @@  discard block
 block discarded – undo
834 863
   /**
835 864
    * Fetch this classes table name.
836 865
    *
837
-   * @return table string This classes table name
866
+   * @return string string This classes table name
838 867
    **/
839 868
   public function getTableName()
840 869
   {
Please login to merge, or discard this patch.