Skip to content

Commit

Permalink
Fix naming issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Oct 17, 2023
1 parent 95ea27a commit e527b72
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 18 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4

[*.{js,vue}]
indent_size = 4
17 changes: 7 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
},
"autoload": {
"psr-4": {
"StatamicRadPack\\meilisearch\\": "src"
"StatamicRadPack\\Meilisearch\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"StatamicRadPack\\meilisearch\\Tests\\": "tests"
"StatamicRadPack\\Meilisearch\\Tests\\": "tests"
}
},
"scripts": {
Expand All @@ -56,17 +56,14 @@
}
},
"extra": {
"statamic": {
"name": "meilisearch",
"description": "meilisearch search driver for Statamic"
},
"laravel": {
"providers": [
"StatamicRadPack\\meilisearch\\ServiceProvider"
"StatamicRadPack\\Meilisearch\\ServiceProvider"
]
},
"statamic": {
"name": "Meilisearch",
"description": "Meilisearch search driver for Statamic"
}
},
"conflict": {
"elvenstar/statamic-meilisearch": "*"
}
}
7 changes: 3 additions & 4 deletions src/Mellisearch/Index.php → src/Meilisearch/Index.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php

namespace StatamicRadPack\meilisearch\meilisearch;
namespace StatamicRadPack\Meilisearch\Meilisearch;

use Illuminate\Support\Str;
use meilisearch\Client;
use meilisearch\Exceptions\ApiException;
use Meilisearch\Client;
use Meilisearch\Exceptions\ApiException;
use Statamic\Contracts\Search\Searchable;
use Statamic\Entries\Entry;
use Statamic\Search\Documents;
use Statamic\Search\Index as BaseIndex;

Expand Down
2 changes: 1 addition & 1 deletion src/Mellisearch/Query.php → src/Meilisearch/Query.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace StatamicRadPack\meilisearch\meilisearch;
namespace StatamicRadPack\Meilisearch\Meilisearch;

use Statamic\Search\QueryBuilder;

Expand Down
6 changes: 3 additions & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace StatamicRadPack\meilisearch;
namespace StatamicRadPack\Meilisearch;

use Illuminate\Foundation\Application;
use meilisearch\Client;
use Meilisearch\Client;
use Statamic\Facades\Search;
use Statamic\Providers\AddonServiceProvider;

Expand All @@ -17,7 +17,7 @@ public function bootAddon()
'apiKey' => $config['credentials']['secret'],
]);

return $app->makeWith(meilisearch\Index::class, [
return $app->makeWith(Meilisearch\Index::class, [
'client' => $client,
'name' => $name,
'config' => $config,
Expand Down

0 comments on commit e527b72

Please sign in to comment.