Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Renovate #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}
14 changes: 7 additions & 7 deletions src/CloudFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CloudFront implements CloudFrontInterface
/**
* Construct converter.
*
* @param \Aws\CloudFront\CloudFrontClient $client
* @param \Aws\CloudFront\CloudFrontClient $client
*/
public function __construct(CloudFrontClient $client)
{
Expand All @@ -45,8 +45,8 @@ public function getClient(): CloudFrontClient
/**
* Bust an item/s in CloudFront's cache.
*
* @param array|string $paths
* @param string|null $distributionId
* @param array|string $paths
* @param string|null $distributionId
* @return \Aws\Result
*/
public function invalidate($paths, string $distributionId = null)
Expand All @@ -73,7 +73,7 @@ public function invalidate($paths, string $distributionId = null)
/**
* Remove every item out of your CloudFront distribution.
*
* @param string|null $distributionId
* @param string|null $distributionId
* @return \Aws\Result
*/
public function reset(string $distributionId = null)
Expand All @@ -84,8 +84,8 @@ public function reset(string $distributionId = null)
/**
* Get a cache "invalidation".
*
* @param string $invalidationId
* @param string|null $distributionId
* @param string $invalidationId
* @param string|null $distributionId
* @return string
*/
public function getInvalidation(string $invalidationId, string $distributionId = null)
Expand Down Expand Up @@ -117,7 +117,7 @@ public function getInvalidation(string $invalidationId, string $distributionId =
/**
* List all of the cache invalidations.
*
* @param string|null $distributionId
* @param string|null $distributionId
* @return array
*/
public function listInvalidations(string $distributionId = null)
Expand Down
9 changes: 5 additions & 4 deletions src/CloudFrontManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CloudFrontManager extends Manager
/**
* Get a driver instance.
*
* @param string|null $name
* @param string|null $name
* @return mixed
*/
public function engine($name = null)
Expand All @@ -24,6 +24,7 @@ public function engine($name = null)
* Create an Amazon CloudFront instance.
*
* @return \Meema\CloudFront\CloudFront
*
* @throws \Exception
*/
public function createCloudFrontDriver(): CloudFront
Expand All @@ -42,8 +43,8 @@ public function createCloudFrontDriver(): CloudFront
/**
* Sets the polly client.
*
* @param array $config
* @param Credentials $credentials
* @param array $config
* @param Credentials $credentials
* @return \Aws\CloudFront\CloudFrontClient
*/
protected function setCloudFrontClient(array $config, Credentials $credentials): CloudFrontClient
Expand All @@ -58,7 +59,7 @@ protected function setCloudFrontClient(array $config, Credentials $credentials):
/**
* Get credentials of AWS.
*
* @param array $credentials
* @param array $credentials
* @return \Aws\Credentials\Credentials
*/
protected function getCredentials(array $credentials): Credentials
Expand Down
12 changes: 6 additions & 6 deletions src/Contracts/CloudFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@ interface CloudFront
/**
* Delete items in your CloudFront cache .
*
* @param array|string $paths
* @param string|null $distributionId
* @param array|string $paths
* @param string|null $distributionId
* @return \Aws\Result
*/
public function invalidate($paths, string $distributionId = null);

/**
* Delete everything in your CloudFront cache .
*
* @param string|null $distributionId
* @param string|null $distributionId
* @return \Aws\Result
*/
public function reset(string $distributionId = null);

/**
* Delete items in your CloudFront cache .
*
* @param string $invalidationId
* @param string|null $distributionId
* @param string $invalidationId
* @param string|null $distributionId
* @return \Aws\Result
*/
public function getInvalidation(string $invalidationId, string $distributionId = null);

/**
* Delete items in your CloudFront cache .
*
* @param string|null $distributionId
* @param string|null $distributionId
* @return \Aws\Result
*/
public function listInvalidations(string $distributionId = null);
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/InvalidateCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class InvalidateCache implements ShouldQueue
/**
* Create a new job instance.
*
* @param string|array $paths
* @param string|array $paths
*/
public function __construct($paths, $distributionId = null)
{
Expand Down