Skip to content

Commit

Permalink
fix for modern-phystrix v4
Browse files Browse the repository at this point in the history
  • Loading branch information
yupmin committed Mar 5, 2020
1 parent d0a01f4 commit 6c7f883
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"php": "^7.1.3",
"ext-apcu": "*",
"ext-json": "*",
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0.0",
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0.0",
"yupmin/modern-phystrix": "^3.1"
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0.0|^7.0.0",
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0.0|^7.0.0",
"yupmin/modern-phystrix": "^4.0"
},
"require-dev": {
"dms/phpunit-arraysubset-asserts": "^0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
PEAR standard exists inside the PHP_CodeSniffer install
directory.
-->
<rule ref="PSR2"/>
<rule ref="PSR12"/>

</ruleset>
4 changes: 2 additions & 2 deletions src/Console/Commands/MakePhystrixCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MakePhystrixCommand extends GeneratorCommand
*/
protected function getStub()
{
return __DIR__.'/../stubs/phystrix-command.stub';
return __DIR__ . '/../stubs/phystrix-command.stub';
}

/**
Expand All @@ -44,6 +44,6 @@ protected function getStub()
*/
protected function getDefaultNamespace($rootNamespace)
{
return $rootNamespace.'\Phystrix';
return $rootNamespace . '\Phystrix';
}
}
6 changes: 3 additions & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ServiceProvider extends BaseServiceProvider
*/
public function boot()
{
$source = realpath(__DIR__.'/../config/phystrix.php');
$source = realpath(__DIR__ . '/../config/phystrix.php');
if ($this->app instanceof LaravelApplication) {
$this->publishes([$source => config_path('phystrix.php')]);
}
Expand All @@ -43,7 +43,7 @@ public function register()
/** @var Application $app */
$config = $app['config']['phystrix'];
/** @var Phystrix\StateStorageInterface $stateStorage */
$stateStorage = $app->make('phystrix.state-storage.'.$config['state_storage_type']);
$stateStorage = $app->make('phystrix.state-storage.' . $config['state_storage_type']);

return new Phystrix\CommandFactory(
new Config($config),
Expand All @@ -58,7 +58,7 @@ public function register()
$config = $app['config']['phystrix'];

/** @var Phystrix\MetricsEventStream\MetricsPollerInterface $metricsPoller */
$metricsPoller = $app->make('phystrix.metrics-event-stream.'.$config['state_storage_type'], [
$metricsPoller = $app->make('phystrix.metrics-event-stream.' . $config['state_storage_type'], [
'config' => new Config($config)
]);

Expand Down

0 comments on commit 6c7f883

Please sign in to comment.