From 12a9b2ff8e7acb7c8f98fd29156f5ca502ec3e94 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 19 May 2019 10:13:47 +0200 Subject: [PATCH] address Scrutinizer issues with the use of getParams method --- lib/Request.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Request.php b/lib/Request.php index 9978ce5..080ba7f 100644 --- a/lib/Request.php +++ b/lib/Request.php @@ -161,10 +161,10 @@ class Request public function getData() { $data = array( - 'adata' => $this->getParam('adata', array()), + 'adata' => $this->getParam('adata'), ); $required_keys = array('v', 'ct'); - $meta = $this->getParam('meta', array()); + $meta = $this->getParam('meta'); if (empty($meta)) { $required_keys[] = 'pasteid'; $required_keys[] = 'parentid'; @@ -184,8 +184,8 @@ class Request * * @access public * @param string $param - * @param string|array $default - * @return string|array + * @param string $default + * @return string */ public function getParam($param, $default = '') {