apply StyleCI patch

This commit is contained in:
El RIDO 2019-05-10 21:45:34 +02:00
parent 632d70412a
commit 1e44902340
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
9 changed files with 51 additions and 54 deletions

View file

@ -486,7 +486,6 @@ class Database extends AbstractData
return $result;
}
/**
* get version dependent key names
*

View file

@ -177,6 +177,5 @@ abstract class AbstractModel
*/
protected function _validate(array $data)
{
return;
}
}

View file

@ -195,10 +195,9 @@ class Paste extends AbstractModel
if (!array_key_exists('adata', $this->_data) && !array_key_exists('data', $this->_data)) {
$this->get();
}
return (
return
(array_key_exists('adata', $this->_data) && $this->_data['adata'][3] === 1) ||
(array_key_exists('burnafterreading', $this->_data['meta']) && $this->_data['meta']['burnafterreading'])
);
(array_key_exists('burnafterreading', $this->_data['meta']) && $this->_data['meta']['burnafterreading']);
}
/**
@ -213,10 +212,9 @@ class Paste extends AbstractModel
if (!array_key_exists('adata', $this->_data) && !array_key_exists('data', $this->_data)) {
$this->get();
}
return (
return
(array_key_exists('adata', $this->_data) && $this->_data['adata'][2] === 1) ||
(array_key_exists('opendiscussion', $this->_data['meta']) && $this->_data['meta']['opendiscussion'])
);
(array_key_exists('opendiscussion', $this->_data['meta']) && $this->_data['meta']['opendiscussion']);
}
/**

View file

@ -161,7 +161,7 @@ class Request
public function getData()
{
$data = array(
'adata' => json_decode($this->getParam('adata', '[]'), true)
'adata' => json_decode($this->getParam('adata', '[]'), true),
);
$required_keys = array('v', 'ct');
$meta = $this->getParam('meta');

View file

@ -66,7 +66,7 @@ class Helper
),
'plaintext',
1,
0
0,
),
'meta' => array(
'expire' => '5min',
@ -159,6 +159,7 @@ class Helper
$example['meta'] = array('expire' => $example['meta']['expire']);
return $example;
}
/**
* get example paste, as received via POST by the user
*