@@ -77,12 +77,12 @@ public function set_client($config) {
7777 return ;
7878 }
7979
80- $ this ->client = \Aws \S3 \S3Client::factory (array (
81- 'credentials ' => array ( 'key ' => $ config ->do_key , 'secret ' => $ config ->do_secret ) ,
80+ $ this ->client = \Aws \S3 \S3Client::factory ([
81+ 'credentials ' => [ 'key ' => $ config ->do_key , 'secret ' => $ config ->do_secret ] ,
8282 'region ' => $ config ->do_region ,
8383 'endpoint ' => 'https:// ' . $ config ->do_region . '.digitaloceanspaces.com ' ,
84- 'version ' => AWS_API_VERSION
85- ) );
84+ 'version ' => AWS_API_VERSION ,
85+ ] );
8686 }
8787
8888 /**
@@ -93,13 +93,13 @@ public function set_client($config) {
9393 */
9494 public function define_client_section ($ settings , $ config ) {
9595
96- $ regionoptions = array (
96+ $ regionoptions = [
9797 'sfo2 ' => 'sfo2 (San Fransisco) ' ,
9898 'nyc3 ' => 'nyc3 (New York City) ' ,
9999 'ams3 ' => 'ams3 (Amsterdam) ' ,
100100 'sgp1 ' => 'spg1 (Singapore) ' ,
101101 'fra1 ' => 'fra1 (Frankfurt) ' ,
102- ) ;
102+ ] ;
103103
104104 $ settings ->add (new \admin_setting_heading ('tool_objectfs/do ' ,
105105 new \lang_string ('settings:do:header ' , 'tool_objectfs ' ), '' ));
0 commit comments