Skip to content

Commit

Permalink
Merge pull request #197 from matchish/analysis-2QkZRZ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
matchish authored Mar 26, 2022
2 parents 5f8a7ed + 4490c7b commit 8f0fffc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/ElasticSearch/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
class Config
{
/**
* @param string $method
* @param array $parameters
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call(string $method, array $parameters)
Expand All @@ -18,8 +18,8 @@ public function __call(string $method, array $parameters)
}

/**
* @param string $method
* @param array $parameters
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic(string $method, array $parameters)
Expand Down
8 changes: 4 additions & 4 deletions src/ElasticSearch/Config/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ class Storage
protected string $config;

/**
* @param string $config
* @param string $config
*/
private function __construct(string $config)
{
$this->config = $config;
}

/**
* @param string $config
* @param string $config
* @return Storage
*/
public static function load(string $config): Storage
Expand All @@ -32,7 +32,7 @@ public function hosts(): array
}

/**
* @param string $path
* @param string $path
* @return mixed
*/
private function loadConfig(string $path): mixed
Expand All @@ -41,7 +41,7 @@ private function loadConfig(string $path): mixed
}

/**
* @param string $path
* @param string $path
* @return string
*/
private function getKey(string $path): string
Expand Down
4 changes: 2 additions & 2 deletions src/ElasticSearchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class ElasticSearchServiceProvider extends ServiceProvider
*/
public function register(): void
{
$this->mergeConfigFrom(__DIR__ . '/../config/elasticsearch.php', 'elasticsearch');
$this->mergeConfigFrom(__DIR__.'/../config/elasticsearch.php', 'elasticsearch');

$this->app->bind(Client::class, function () {
return ClientBuilder::create()->setHosts(Config::hosts())->build();
Expand All @@ -34,7 +34,7 @@ public function register(): void
public function boot(): void
{
$this->publishes([
__DIR__ . '/../config/elasticsearch.php' => config_path('elasticsearch.php'),
__DIR__.'/../config/elasticsearch.php' => config_path('elasticsearch.php'),
], 'config');
}

Expand Down

0 comments on commit 8f0fffc

Please sign in to comment.