also looking at this
Apply fixes from StyleCI
#5
4 files
+19
-18
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -19,7 +19,7 @@ class CloudFront implements CloudFrontInterface | ||
| 19 | 19 | /** |
| 20 | 20 | * Construct converter. |
| 21 | 21 | * |
| 22 | * @param \Aws\CloudFront\CloudFrontClient $client | |
| 22 | * @param \Aws\CloudFront\CloudFrontClient $client | |
| 23 | 23 | */ |
| 24 | 24 | public function __construct(CloudFrontClient $client) |
| 25 | 25 | { |
| @@ -45,8 +45,8 @@ class CloudFront implements CloudFrontInterface | ||
| 45 | 45 | /** |
| 46 | 46 | * Bust an item/s in CloudFront's cache. |
| 47 | 47 | * |
| 48 | * @param array|string $paths | |
| 49 | * @param string|null $distributionId | |
| 48 | * @param array|string $paths | |
| 49 | * @param string|null $distributionId | |
| 50 | 50 | * @return \Aws\Result |
| 51 | 51 | */ |
| 52 | 52 | public function invalidate($paths, string $distributionId = null) |
| @@ -73,7 +73,7 @@ class CloudFront implements CloudFrontInterface | ||
| 73 | 73 | /** |
| 74 | 74 | * Remove every item out of your CloudFront distribution. |
| 75 | 75 | * |
| 76 | * @param string|null $distributionId | |
| 76 | * @param string|null $distributionId | |
| 77 | 77 | * @return \Aws\Result |
| 78 | 78 | */ |
| 79 | 79 | public function reset(string $distributionId = null) |
| @@ -84,8 +84,8 @@ class CloudFront implements CloudFrontInterface | ||
| 84 | 84 | /** |
| 85 | 85 | * Get a cache "invalidation". |
| 86 | 86 | * |
| 87 | * @param string $invalidationId | |
| 88 | * @param string|null $distributionId | |
| 87 | * @param string $invalidationId | |
| 88 | * @param string|null $distributionId | |
| 89 | 89 | * @return string |
| 90 | 90 | */ |
| 91 | 91 | public function getInvalidation(string $invalidationId, string $distributionId = null) |
| @@ -117,7 +117,7 @@ class CloudFront implements CloudFrontInterface | ||
| 117 | 117 | /** |
| 118 | 118 | * List all of the cache invalidations. |
| 119 | 119 | * |
| 120 | * @param string|null $distributionId | |
| 120 | * @param string|null $distributionId | |
| 121 | 121 | * @return array |
| 122 | 122 | */ |
| 123 | 123 | public function listInvalidations(string $distributionId = null) |
| @@ -12,7 +12,7 @@ class CloudFrontManager extends Manager formatting only | ||
| 12 | 12 | /** |
| 13 | 13 | * Get a driver instance. |
| 14 | 14 | * |
| 15 | * @param string|null $name | |
| 15 | * @param string|null $name | |
| 16 | 16 | * @return mixed |
| 17 | 17 | */ |
| 18 | 18 | public function engine($name = null) |
| @@ -24,6 +24,7 @@ class CloudFrontManager extends Manager | ||
| 24 | 24 | * Create an Amazon CloudFront instance. |
| 25 | 25 | * |
| 26 | 26 | * @return \Meema\CloudFront\CloudFront |
| 27 | * | |
| 27 | 28 | * @throws \Exception |
| 28 | 29 | */ |
| 29 | 30 | public function createCloudFrontDriver(): CloudFront |
| @@ -42,8 +43,8 @@ class CloudFrontManager extends Manager formatting only | ||
| 42 | 43 | /** |
| 43 | 44 | * Sets the polly client. |
| 44 | 45 | * |
| 45 | * @param array $config | |
| 46 | * @param Credentials $credentials | |
| 46 | * @param array $config | |
| 47 | * @param Credentials $credentials | |
| 47 | 48 | * @return \Aws\CloudFront\CloudFrontClient |
| 48 | 49 | */ |
| 49 | 50 | protected function setCloudFrontClient(array $config, Credentials $credentials): CloudFrontClient |
| @@ -58,7 +59,7 @@ class CloudFrontManager extends Manager formatting only | ||
| 58 | 59 | /** |
| 59 | 60 | * Get credentials of AWS. |
| 60 | 61 | * |
| 61 | * @param array $credentials | |
| 62 | * @param array $credentials | |
| 62 | 63 | * @return \Aws\Credentials\Credentials |
| 63 | 64 | */ |
| 64 | 65 | protected function getCredentials(array $credentials): Credentials |
| @@ -7,8 +7,8 @@ interface CloudFront | ||
| 7 | 7 | /** |
| 8 | 8 | * Delete items in your CloudFront cache . |
| 9 | 9 | * |
| 10 | * @param array|string $paths | |
| 11 | * @param string|null $distributionId | |
| 10 | * @param array|string $paths | |
| 11 | * @param string|null $distributionId | |
| 12 | 12 | * @return \Aws\Result |
| 13 | 13 | */ |
| 14 | 14 | public function invalidate($paths, string $distributionId = null); |
| @@ -16,7 +16,7 @@ interface CloudFront | ||
| 16 | 16 | /** |
| 17 | 17 | * Delete everything in your CloudFront cache . |
| 18 | 18 | * |
| 19 | * @param string|null $distributionId | |
| 19 | * @param string|null $distributionId | |
| 20 | 20 | * @return \Aws\Result |
| 21 | 21 | */ |
| 22 | 22 | public function reset(string $distributionId = null); |
| @@ -24,8 +24,8 @@ interface CloudFront | ||
| 24 | 24 | /** |
| 25 | 25 | * Delete items in your CloudFront cache . |
| 26 | 26 | * |
| 27 | * @param string $invalidationId | |
| 28 | * @param string|null $distributionId | |
| 27 | * @param string $invalidationId | |
| 28 | * @param string|null $distributionId | |
| 29 | 29 | * @return \Aws\Result |
| 30 | 30 | */ |
| 31 | 31 | public function getInvalidation(string $invalidationId, string $distributionId = null); |
| @@ -33,7 +33,7 @@ interface CloudFront | ||
| 33 | 33 | /** |
| 34 | 34 | * Delete items in your CloudFront cache . |
| 35 | 35 | * |
| 36 | * @param string|null $distributionId | |
| 36 | * @param string|null $distributionId | |
| 37 | 37 | * @return \Aws\Result |
| 38 | 38 | */ |
| 39 | 39 | public function listInvalidations(string $distributionId = null); |