Convert to PSR-2 coding style (using phpcs-fixer)
This commit is contained in:
@@ -55,7 +55,9 @@ class model
|
||||
public function getPaste($pasteId = null)
|
||||
{
|
||||
$paste = new paste($this->_conf, $this->_getStore());
|
||||
if ($pasteId !== null) $paste->setId($pasteId);
|
||||
if ($pasteId !== null) {
|
||||
$paste->setId($pasteId);
|
||||
}
|
||||
return $paste;
|
||||
}
|
||||
|
||||
@@ -67,8 +69,7 @@ class model
|
||||
public function purge()
|
||||
{
|
||||
purgelimiter::setConfiguration($this->_conf);
|
||||
if (purgelimiter::canPurge())
|
||||
{
|
||||
if (purgelimiter::canPurge()) {
|
||||
$this->_getStore()->purge($this->_conf->getKey('batchsize', 'purge'));
|
||||
}
|
||||
}
|
||||
@@ -80,8 +81,7 @@ class model
|
||||
*/
|
||||
private function _getStore()
|
||||
{
|
||||
if ($this->_store === null)
|
||||
{
|
||||
if ($this->_store === null) {
|
||||
$this->_store = forward_static_call(
|
||||
array($this->_conf->getKey('class', 'model'), 'getInstance'),
|
||||
$this->_conf->getSection('model_options')
|
||||
|
||||
Reference in New Issue
Block a user