From bd4dee0f3e20f41f46dbff30559b866bb1ca0051 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 10 May 2019 21:52:14 +0200 Subject: [PATCH] fixing copy/paste errors --- lib/Data/Database.php | 4 ++-- lib/Data/Filesystem.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Data/Database.php b/lib/Data/Database.php index 1e0169e..b6957e1 100644 --- a/lib/Data/Database.php +++ b/lib/Data/Database.php @@ -430,7 +430,7 @@ class Database extends AbstractData * @param int $batchsize * @return array */ - protected function _getExpiredPastes(int $batchsize) + protected function _getExpiredPastes($batchsize) { $pastes = array(); $rows = self::_select( @@ -494,7 +494,7 @@ class Database extends AbstractData * @param int $version * @return array */ - private static function _getVersionedKeys(int $version) + private static function _getVersionedKeys($version) { if ($version === 1) { return array('postdate', 'vizhash'); diff --git a/lib/Data/Filesystem.php b/lib/Data/Filesystem.php index 736b61d..b084d7f 100644 --- a/lib/Data/Filesystem.php +++ b/lib/Data/Filesystem.php @@ -121,7 +121,7 @@ class Filesystem extends AbstractData * @param string $pasteid * @return bool */ - public functio(($pasteid) + public function exists($pasteid) { $basePath = self::_dataid2path($pasteid) . $pasteid; $pastePath = $basePath . '.php'; @@ -230,7 +230,7 @@ class Filesystem extends AbstractData * @param int $batchsize * @return array */ - protected function _getExpiredPastes(int $batchsize) + protected function _getExpiredPastes($batchsize) { $pastes = array(); $mainpath = DataStore::getPath();