diff options
Diffstat (limited to 'app/class/Flywheel')
-rw-r--r-- | app/class/Flywheel/Formatter/JSON.php | 3 | ||||
-rw-r--r-- | app/class/Flywheel/Predicate.php | 4 | ||||
-rw-r--r-- | app/class/Flywheel/Query.php | 1 | ||||
-rw-r--r-- | app/class/Flywheel/Repository.php | 3 |
4 files changed, 8 insertions, 3 deletions
diff --git a/app/class/Flywheel/Formatter/JSON.php b/app/class/Flywheel/Formatter/JSON.php index 9659fcb..d55c3b6 100644 --- a/app/class/Flywheel/Formatter/JSON.php +++ b/app/class/Flywheel/Formatter/JSON.php @@ -1,4 +1,5 @@ <?php + namespace Wcms\Flywheel\Formatter; class JSON implements \JamesMoss\Flywheel\Formatter\FormatInterface @@ -18,4 +19,4 @@ class JSON implements \JamesMoss\Flywheel\Formatter\FormatInterface $options = defined('JSON_OBJECT_AS_ARRAY') ? JSON_OBJECT_AS_ARRAY : null; return json_decode($data, $options); } -}
\ No newline at end of file +} diff --git a/app/class/Flywheel/Predicate.php b/app/class/Flywheel/Predicate.php index 2922c8d..0fa1a23 100644 --- a/app/class/Flywheel/Predicate.php +++ b/app/class/Flywheel/Predicate.php @@ -1,9 +1,11 @@ <?php + namespace Wcms\Flywheel; class Predicate extends \JamesMoss\Flywheel\Predicate { - public function __construct() { + public function __construct() + { $this->operators = array( '>', '>=', '<', '<=', '==', '===', '!=', '!==', 'IN' ); diff --git a/app/class/Flywheel/Query.php b/app/class/Flywheel/Query.php index f002080..a3ccf36 100644 --- a/app/class/Flywheel/Query.php +++ b/app/class/Flywheel/Query.php @@ -1,4 +1,5 @@ <?php + namespace Wcms\Flywheel; class Query extends \JamesMoss\Flywheel\Query diff --git a/app/class/Flywheel/Repository.php b/app/class/Flywheel/Repository.php index d0b68eb..d34099f 100644 --- a/app/class/Flywheel/Repository.php +++ b/app/class/Flywheel/Repository.php @@ -1,4 +1,5 @@ <?php + namespace Wcms\Flywheel; class Repository extends \JamesMoss\Flywheel\Repository @@ -23,7 +24,7 @@ class Repository extends \JamesMoss\Flywheel\Repository public function getAllIds() { $ext = $this->formatter->getFileExtension(); - return array_map(function($path) use ($ext) { + return array_map(function ($path) use ($ext) { return $this->getIdFromPath($path, $ext); }, $this->getAllFiles()); } |