We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91353e7 commit 16398c7Copy full SHA for 16398c7
src/AwsServiceProvider.php
@@ -41,11 +41,10 @@ public function boot()
41
public function register()
42
{
43
$this->app->singleton('aws', function ($app) {
44
- $config = $app['config']->get('aws');
45
- if ( is_null ( $app['config']->get('aws')['credentials']['key'] ) && is_null( $app['config']->get('aws')['credentials']['secret'] ) )
46
- {
47
- unset( $config['credentials'] );
48
- }
+ $config = $app['config']->get('aws');
+ if (is_null($app['config']->get('aws')['credentials']['key']) && is_null($app['config']->get('aws')['credentials']['secret'])) {
+ unset($config['credentials']);
+ }
49
return new Sdk($config);
50
});
51
0 commit comments