Skip to content

Commit 524716d

Browse files
committed
Call static functions static.
1 parent c0408d2 commit 524716d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Deployer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function upload_files( string $processed_site_path ) : void {
9292
}
9393
}
9494

95-
public function s3_client() : \Aws\S3\S3Client {
95+
public static function s3_client() : \Aws\S3\S3Client {
9696
$client_options = [
9797
'version' => 'latest',
9898
'region' => Controller::getValue( 's3Region' ),
@@ -124,7 +124,7 @@ public function s3_client() : \Aws\S3\S3Client {
124124
return new \Aws\S3\S3Client( $client_options );
125125
}
126126

127-
public function cloudfront_client() : \Aws\CloudFront\CloudFrontClient {
127+
public static function cloudfront_client() : \Aws\CloudFront\CloudFrontClient {
128128
/*
129129
If no credentials option, SDK attempts to load credentials from
130130
your environment in the following order:
@@ -191,7 +191,7 @@ public static function create_invalidation( string $distribution_id, array $item
191191
);
192192
}
193193

194-
public function cloudfront_invalidate_all_items() : void {
194+
public static function cloudfront_invalidate_all_items() : void {
195195
if ( ! Controller::getValue( 'cfDistributionID' ) ) {
196196
return;
197197
}

0 commit comments

Comments
 (0)