Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Feedback/API.php')
-rw-r--r--plugins/Feedback/API.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Feedback/API.php b/plugins/Feedback/API.php
index 1ab2b6c6da..26dde1ce19 100644
--- a/plugins/Feedback/API.php
+++ b/plugins/Feedback/API.php
@@ -31,11 +31,11 @@ class API extends \Piwik\Plugin\API
* config: "feedback_email_address".
*
* @param string|null $featureName The name of a feature you want to give feedback to.
- * @param int $like Whether you like the feature or not
+ * @param string|null $like Whether you like the feature or not
* @param string|null $choice Multiple choice option chosen
* @param string|null $message A message containing the actual feedback
*/
- public function sendFeedbackForFeature(?string $featureName, int $like, ?string $choice, ?string $message = null)
+ public function sendFeedbackForFeature($featureName, $like = null, $choice = null, $message = null)
{
Piwik::checkUserIsNotAnonymous();
Piwik::checkUserHasSomeViewAccess();
@@ -100,7 +100,7 @@ class API extends \Piwik\Plugin\API
$featureName = $this->getEnglishTranslationForFeatureName($question);
$body = sprintf("Question: %s\n", $featureName);
$feedbackMessage = "";
-
+
if (!empty($message) && $message !== 'undefined') {
$feedbackMessage = sprintf("Answer:\n%s\n", trim($message));
}