Minor code cleanup suggested by codacy service

This commit is contained in:
Thomas Nilsen
2018-11-25 21:33:18 +01:00
parent b90fab434c
commit c08264f4f7
3 changed files with 15 additions and 15 deletions
+2 -3
View File
@@ -74,7 +74,7 @@ class Notification
// Handle telegram
if ($typeID == 1) {
$this->submit_telegram($userID, $firstname, $token);
$this->submit_telegram($userID, $firstname);
}
// Handle email
@@ -89,10 +89,9 @@ class Notification
* Sends Telegram notification message using their web api.
* @param string $userID The Telegram userid to send to
* @param string $firstname The users firstname
* @param string $uthkey Token used for managing subscription
* @return void
*/
public function submit_telegram($userID, $firstname, $token)
public function submit_telegram($userID, $firstname)
{
// TODO Handle limitations (Max 30 different subscribers per second)
// TODO Error handling