| Total Complexity | 3 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | class S3SignedResolver extends ExpirationAwareResolver |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var S3ClientInterface |
||
| 27 | */ |
||
| 28 | private $client; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $bucket; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param S3ClientInterface $client |
||
| 37 | * @param string $bucket |
||
| 38 | */ |
||
| 39 | public function __construct(S3ClientInterface $client, string $bucket) |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $file |
||
| 49 | * @param DateIntervalFormat|null $expiration |
||
|
|
|||
| 50 | * @return UriInterface |
||
| 51 | * @throws \Exception |
||
| 52 | */ |
||
| 53 | public function resolve(string $file, $expiration = null): UriInterface |
||
| 54 | { |
||
| 55 | $command = $this->createCommand($file); |
||
| 56 | |||
| 57 | $request = $this->client->createPresignedRequest( |
||
| 58 | $command, |
||
| 59 | $this->getExpirationDateTime($expiration) |
||
| 60 | ); |
||
| 61 | |||
| 62 | return $request->getUri(); |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param string $file |
||
| 67 | * @return CommandInterface |
||
| 68 | */ |
||
| 69 | private function createCommand(string $file): CommandInterface |
||
| 74 | ]); |
||
| 75 | } |
||
| 77 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths