Skip to content

Commit

Permalink
address Scrutinizer issues with the use of getParams method
Browse files Browse the repository at this point in the history
  • Loading branch information
elrido committed May 19, 2019
1 parent 1baa1c2 commit 12a9b2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Request.php
Expand Up @@ -161,10 +161,10 @@ public function getOperation()
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';
Expand All @@ -184,8 +184,8 @@ public function getData()
*
* @access public
* @param string $param
* @param string|array $default
* @return string|array
* @param string $default
* @return string
*/
public function getParam($param, $default = '')
{
Expand Down

0 comments on commit 12a9b2f

Please sign in to comment.