address Scrutinizer issues with the use of getParams method

This commit is contained in:
El RIDO 2019-05-19 10:13:47 +02:00
parent 1baa1c2b0a
commit 12a9b2ff8e
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -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 = '')
{