public function buildConfiguration()
 {
     $config = Configuration::fromEnvironmentVariable(CloudinaryEnvironmentVariable::fromString($this->getEnvironmentVariable()));
     if ($this->getCdnSubdomainFlag()) {
         $config->enableCdnSubdomain();
     }
     $config->getDefaultTransformation()->withGravity(Gravity::fromString($this->getDefaultGravity()))->withFetchFormat(FetchFormat::fromString($this->getFetchFormat()))->withQuality(Quality::fromString($this->getImageQuality()))->withDpr(Dpr::fromString($this->getImageDpr()));
     return $config;
 }
 function it_overrides_fetch_format_if_provided()
 {
     $transformationArray = self::builder()->withFetchFormat(FetchFormat::fromString(''))->build();
     $transformationArray->offsetGet('fetch_format')->shouldBe('');
 }
 public function withOptimisationDisabled()
 {
     $this->withFetchFormat(FetchFormat::fromString(''));
     return $this;
 }