@@ -140,6 +140,7 @@ |
||
140 | 140 | /** |
141 | 141 | * Send a specific notification setup in notification_settings |
142 | 142 | * @param type string Notification type |
143 | + * @param string $strType |
|
143 | 144 | * @return bool |
144 | 145 | **/ |
145 | 146 | public function sendNotification($account_id, $strType, $aMailData) { |
@@ -86,7 +86,7 @@ |
||
86 | 86 | /** |
87 | 87 | * Get shares statistics for round block height |
88 | 88 | * @param height int Block Height |
89 | - * @return data array Block information from DB |
|
89 | + * @return null|boolean array Block information from DB |
|
90 | 90 | **/ |
91 | 91 | public function getRoundStatsForAccounts($iHeight=0) { |
92 | 92 | $stmt = $this->mysqli->prepare(" |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * Fetch archive tables name for this class |
14 | 14 | * @param none |
15 | - * @return data string Table name |
|
15 | + * @return string string Table name |
|
16 | 16 | **/ |
17 | 17 | public function getArchiveTableName() { |
18 | 18 | return $this->tableArchive; |
@@ -859,7 +859,7 @@ |
||
859 | 859 | |
860 | 860 | /** |
861 | 861 | * Get current PPS value |
862 | - * @return value double PPS Value |
|
862 | + * @return double double PPS Value |
|
863 | 863 | **/ |
864 | 864 | |
865 | 865 | public function getPPSValue() { |
@@ -7,6 +7,7 @@ discard block |
||
7 | 7 | /** |
8 | 8 | * Return time token was created |
9 | 9 | * @param id int Token ID |
10 | + * @param string $token |
|
10 | 11 | * @param time string Creation timestamp |
11 | 12 | **/ |
12 | 13 | public function getCreationTime($token) { |
@@ -85,7 +86,7 @@ discard block |
||
85 | 86 | * Insert a new token |
86 | 87 | * @param name string Name of the variable |
87 | 88 | * @param value string Variable value |
88 | - * @return mixed Token string on success, false on failure |
|
89 | + * @return string|boolean Token string on success, false on failure |
|
89 | 90 | **/ |
90 | 91 | public function createToken($strType, $account_id=NULL) { |
91 | 92 | if (!$iToken_id = $this->tokentype->getTypeId($strType)) { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * Detect the API to properly extract information |
70 | 70 | * @param url string API URL |
71 | - * @return data string API type |
|
71 | + * @return string|false string API type |
|
72 | 72 | **/ |
73 | 73 | private function getApiType($url) { |
74 | 74 | if (preg_match('/coinchoose.com/', $url)) { |
@@ -93,6 +93,9 @@ |
||
93 | 93 | return $string; |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $string |
|
98 | + */ |
|
96 | 99 | private function getHash($string) { |
97 | 100 | return hash('sha256', $this->salty.$string.$this->salt); |
98 | 101 | } |