apply StyleCI patch
This commit is contained in:
parent
632d70412a
commit
1e44902340
9 changed files with 51 additions and 54 deletions
|
@ -486,7 +486,6 @@ class Database extends AbstractData
|
|||
return $result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* get version dependent key names
|
||||
*
|
||||
|
|
|
@ -177,6 +177,5 @@ abstract class AbstractModel
|
|||
*/
|
||||
protected function _validate(array $data)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue