From e802d5204b96d645ec3d40b81b4a8bdc6e0ee675 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 4 Nov 2019 23:31:31 +0100 Subject: refactor: switch to psr-4 autoloading --- app/class/wflywheel/formatter/json.php | 21 --------------------- app/class/wflywheel/predicate.php | 11 ----------- app/class/wflywheel/query.php | 16 ---------------- app/class/wflywheel/repository.php | 30 ------------------------------ 4 files changed, 78 deletions(-) delete mode 100644 app/class/wflywheel/formatter/json.php delete mode 100644 app/class/wflywheel/predicate.php delete mode 100644 app/class/wflywheel/query.php delete mode 100644 app/class/wflywheel/repository.php (limited to 'app/class/wflywheel') diff --git a/app/class/wflywheel/formatter/json.php b/app/class/wflywheel/formatter/json.php deleted file mode 100644 index d015cc1..0000000 --- a/app/class/wflywheel/formatter/json.php +++ /dev/null @@ -1,21 +0,0 @@ -operators = array( - '>', '>=', '<', '<=', '==', '===', '!=', '!==', 'IN' - ); - } -} diff --git a/app/class/wflywheel/query.php b/app/class/wflywheel/query.php deleted file mode 100644 index 49aff16..0000000 --- a/app/class/wflywheel/query.php +++ /dev/null @@ -1,16 +0,0 @@ -predicate = new Predicate(); - } -} diff --git a/app/class/wflywheel/repository.php b/app/class/wflywheel/repository.php deleted file mode 100644 index baad42e..0000000 --- a/app/class/wflywheel/repository.php +++ /dev/null @@ -1,30 +0,0 @@ -formatter->getFileExtension(); - $files = glob($this->path . DIRECTORY_SEPARATOR . '*.' . $ext); - return $files; - } - - /** - * Get an array containing the id of all files in this repository - * - * @return array An array, item is a id - */ - public function getAllIds() - { - $ext = $this->formatter->getFileExtension(); - return array_map(function($path) use ($ext) { - return $this->getIdFromPath($path, $ext); - }, $this->getAllFiles()); - } -} -- cgit v1.2.3