From 997c2a10eca65b71f5e4ae0f79af3994d66140b7 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 22 Nov 2014 14:56:30 +0100 Subject: [PATCH] Renamed SearchServices directory to Search --- src/Dao/AbstractDao.php | 12 ++++++------ src/Dao/PostDao.php | 4 ++-- src/Dao/TagDao.php | 4 ++-- src/Routes/Comments/GetComments.php | 6 +++--- src/Routes/Comments/GetPostComments.php | 6 +++--- src/Routes/GetHistory.php | 2 +- src/Routes/Posts/GetPosts.php | 2 +- src/Routes/Tags/GetTags.php | 2 +- src/Routes/Users/GetUser.php | 2 +- src/Routes/Users/GetUsers.php | 2 +- .../Filters/BasicFilter.php | 4 ++-- .../Filters/CommentFilter.php | 2 +- .../Filters/IFilter.php | 4 ++-- .../Filters/PostFilter.php | 2 +- .../Filters/SnapshotFilter.php | 2 +- .../Filters/TagFilter.php | 2 +- .../Filters/UserFilter.php | 2 +- .../Parsers/AbstractSearchParser.php | 16 ++++++++-------- .../Parsers/PostSearchParser.php | 14 +++++++------- .../Parsers/SnapshotSearchParser.php | 12 ++++++------ .../Parsers/TagSearchParser.php | 14 +++++++------- .../Parsers/UserSearchParser.php | 10 +++++----- .../Requirements/IRequirementValue.php | 2 +- .../Requirements/Requirement.php | 2 +- .../Requirements/RequirementCompositeValue.php | 2 +- .../Requirements/RequirementRangedValue.php | 2 +- .../Requirements/RequirementSingleValue.php | 2 +- src/{SearchServices => Search}/Result.php | 4 ++-- .../Tokens/NamedSearchToken.php | 2 +- .../Tokens/SearchToken.php | 2 +- src/Services/CommentService.php | 2 +- src/Services/HistoryService.php | 2 +- src/Services/PostHistoryService.php | 6 +++--- src/Services/PostService.php | 10 +++++----- src/Services/TagHistoryService.php | 6 +++--- src/Services/TagService.php | 2 +- src/Services/UserService.php | 2 +- tests/Dao/TagDaoFilterTest.php | 10 +++++----- tests/Dao/UserDaoFilterTest.php | 4 ++-- tests/SearchServices/UserSearchParserTest.php | 4 ++-- 40 files changed, 96 insertions(+), 96 deletions(-) rename src/{SearchServices => Search}/Filters/BasicFilter.php (90%) rename src/{SearchServices => Search}/Filters/CommentFilter.php (83%) rename src/{SearchServices => Search}/Filters/IFilter.php (80%) rename src/{SearchServices => Search}/Filters/PostFilter.php (96%) rename src/{SearchServices => Search}/Filters/SnapshotFilter.php (85%) rename src/{SearchServices => Search}/Filters/TagFilter.php (89%) rename src/{SearchServices => Search}/Filters/UserFilter.php (84%) rename src/{SearchServices => Search}/Parsers/AbstractSearchParser.php (90%) rename src/{SearchServices => Search}/Parsers/PostSearchParser.php (96%) rename src/{SearchServices => Search}/Parsers/SnapshotSearchParser.php (79%) rename src/{SearchServices => Search}/Parsers/TagSearchParser.php (78%) rename src/{SearchServices => Search}/Parsers/UserSearchParser.php (74%) rename src/{SearchServices => Search}/Requirements/IRequirementValue.php (57%) rename src/{SearchServices => Search}/Requirements/Requirement.php (90%) rename src/{SearchServices => Search}/Requirements/RequirementCompositeValue.php (86%) rename src/{SearchServices => Search}/Requirements/RequirementRangedValue.php (90%) rename src/{SearchServices => Search}/Requirements/RequirementSingleValue.php (87%) rename src/{SearchServices => Search}/Result.php (91%) rename src/{SearchServices => Search}/Tokens/NamedSearchToken.php (81%) rename src/{SearchServices => Search}/Tokens/SearchToken.php (88%) diff --git a/src/Dao/AbstractDao.php b/src/Dao/AbstractDao.php index 4a4a0cf5..69226125 100644 --- a/src/Dao/AbstractDao.php +++ b/src/Dao/AbstractDao.php @@ -3,12 +3,12 @@ namespace Szurubooru\Dao; use Szurubooru\Dao\EntityConverters\IEntityConverter; use Szurubooru\DatabaseConnection; use Szurubooru\Entities\Entity; -use Szurubooru\SearchServices\Filters\IFilter; -use Szurubooru\SearchServices\Requirements\Requirement; -use Szurubooru\SearchServices\Requirements\RequirementCompositeValue; -use Szurubooru\SearchServices\Requirements\RequirementRangedValue; -use Szurubooru\SearchServices\Requirements\RequirementSingleValue; -use Szurubooru\SearchServices\Result; +use Szurubooru\Search\Filters\IFilter; +use Szurubooru\Search\Requirements\Requirement; +use Szurubooru\Search\Requirements\RequirementCompositeValue; +use Szurubooru\Search\Requirements\RequirementRangedValue; +use Szurubooru\Search\Requirements\RequirementSingleValue; +use Szurubooru\Search\Result; abstract class AbstractDao implements ICrudDao, IBatchDao { diff --git a/src/Dao/PostDao.php b/src/Dao/PostDao.php index b2a31d7d..55aa96a5 100644 --- a/src/Dao/PostDao.php +++ b/src/Dao/PostDao.php @@ -7,8 +7,8 @@ use Szurubooru\Dao\UserDao; use Szurubooru\DatabaseConnection; use Szurubooru\Entities\Entity; use Szurubooru\Entities\Post; -use Szurubooru\SearchServices\Filters\PostFilter; -use Szurubooru\SearchServices\Requirements\Requirement; +use Szurubooru\Search\Filters\PostFilter; +use Szurubooru\Search\Requirements\Requirement; use Szurubooru\Services\ThumbnailService; class PostDao extends AbstractDao implements ICrudDao diff --git a/src/Dao/TagDao.php b/src/Dao/TagDao.php index dc46ce4a..9d723aaa 100644 --- a/src/Dao/TagDao.php +++ b/src/Dao/TagDao.php @@ -5,8 +5,8 @@ use Szurubooru\Dao\EntityConverters\TagEntityConverter; use Szurubooru\DatabaseConnection; use Szurubooru\Entities\Entity; use Szurubooru\Entities\Tag; -use Szurubooru\SearchServices\Filters\TagFilter; -use Szurubooru\SearchServices\Requirements\Requirement; +use Szurubooru\Search\Filters\TagFilter; +use Szurubooru\Search\Requirements\Requirement; class TagDao extends AbstractDao implements ICrudDao { diff --git a/src/Routes/Comments/GetComments.php b/src/Routes/Comments/GetComments.php index 7458a312..55e86ee9 100644 --- a/src/Routes/Comments/GetComments.php +++ b/src/Routes/Comments/GetComments.php @@ -2,9 +2,9 @@ namespace Szurubooru\Routes\Comments; use Szurubooru\Helpers\InputReader; use Szurubooru\Privilege; -use Szurubooru\SearchServices\Filters\PostFilter; -use Szurubooru\SearchServices\Requirements\Requirement; -use Szurubooru\SearchServices\Requirements\RequirementRangedValue; +use Szurubooru\Search\Filters\PostFilter; +use Szurubooru\Search\Requirements\Requirement; +use Szurubooru\Search\Requirements\RequirementRangedValue; use Szurubooru\Services\CommentService; use Szurubooru\Services\PostService; use Szurubooru\Services\PrivilegeService; diff --git a/src/Routes/Comments/GetPostComments.php b/src/Routes/Comments/GetPostComments.php index df635931..7687d137 100644 --- a/src/Routes/Comments/GetPostComments.php +++ b/src/Routes/Comments/GetPostComments.php @@ -2,9 +2,9 @@ namespace Szurubooru\Routes\Comments; use Szurubooru\Helpers\InputReader; use Szurubooru\Privilege; -use Szurubooru\SearchServices\Filters\CommentFilter; -use Szurubooru\SearchServices\Requirements\Requirement; -use Szurubooru\SearchServices\Requirements\RequirementSingleValue; +use Szurubooru\Search\Filters\CommentFilter; +use Szurubooru\Search\Requirements\Requirement; +use Szurubooru\Search\Requirements\RequirementSingleValue; use Szurubooru\Services\CommentService; use Szurubooru\Services\PostService; use Szurubooru\Services\PrivilegeService; diff --git a/src/Routes/GetHistory.php b/src/Routes/GetHistory.php index 95357470..3604b49b 100644 --- a/src/Routes/GetHistory.php +++ b/src/Routes/GetHistory.php @@ -3,7 +3,7 @@ namespace Szurubooru\Routes; use Szurubooru\Helpers\InputReader; use Szurubooru\Privilege; use Szurubooru\Routes\AbstractRoute; -use Szurubooru\SearchServices\Parsers\SnapshotSearchParser; +use Szurubooru\Search\Parsers\SnapshotSearchParser; use Szurubooru\Services\HistoryService; use Szurubooru\Services\PrivilegeService; use Szurubooru\ViewProxies\SnapshotViewProxy; diff --git a/src/Routes/Posts/GetPosts.php b/src/Routes/Posts/GetPosts.php index 0c4b65d0..8e5ad955 100644 --- a/src/Routes/Posts/GetPosts.php +++ b/src/Routes/Posts/GetPosts.php @@ -3,7 +3,7 @@ namespace Szurubooru\Routes\Posts; use Szurubooru\Config; use Szurubooru\Helpers\InputReader; use Szurubooru\Privilege; -use Szurubooru\SearchServices\Parsers\PostSearchParser; +use Szurubooru\Search\Parsers\PostSearchParser; use Szurubooru\Services\PostService; use Szurubooru\Services\PrivilegeService; use Szurubooru\ViewProxies\PostViewProxy; diff --git a/src/Routes/Tags/GetTags.php b/src/Routes/Tags/GetTags.php index 79e9da20..5a4ec930 100644 --- a/src/Routes/Tags/GetTags.php +++ b/src/Routes/Tags/GetTags.php @@ -2,7 +2,7 @@ namespace Szurubooru\Routes\Tags; use Szurubooru\Helpers\InputReader; use Szurubooru\Privilege; -use Szurubooru\SearchServices\Parsers\TagSearchParser; +use Szurubooru\Search\Parsers\TagSearchParser; use Szurubooru\Services\PrivilegeService; use Szurubooru\Services\TagService; use Szurubooru\ViewProxies\TagViewProxy; diff --git a/src/Routes/Users/GetUser.php b/src/Routes/Users/GetUser.php index 35890e23..c9c4a46b 100644 --- a/src/Routes/Users/GetUser.php +++ b/src/Routes/Users/GetUser.php @@ -1,7 +1,7 @@