@@ -114,13 +114,13 @@ public function preset(ImagePreset|\BackedEnum|string $preset): self
114114 $ config = $ preset ->config ();
115115 } else {
116116 $ presetName = $ preset instanceof \BackedEnum ? $ preset ->value : $ preset ;
117- $ availablePresets = array_keys (config ('statamic- imageboss.presets ' , []));
117+ $ availablePresets = array_keys (config ('statamic. imageboss.presets ' , []));
118118
119119 if (! in_array ($ presetName , $ availablePresets , true )) {
120120 return $ this ;
121121 }
122122
123- $ config = config ("statamic- imageboss.presets. {$ presetName }" , []);
123+ $ config = config ("statamic. imageboss.presets. {$ presetName }" , []);
124124 }
125125
126126 if (empty ($ config )) {
@@ -148,10 +148,10 @@ public function preset(ImagePreset|\BackedEnum|string $preset): self
148148
149149 public function url (): string
150150 {
151- $ width = $ this ->width ?? config ('statamic- imageboss.default_width ' , 1000 );
151+ $ width = $ this ->width ?? config ('statamic. imageboss.default_width ' , 1000 );
152152 $ height = $ this ->calculateHeight ($ width );
153153
154- $ source = config ('statamic- imageboss.source ' );
154+ $ source = config ('statamic. imageboss.source ' );
155155
156156 if (! $ source ) {
157157 return $ this ->generateGlideUrl ($ width , $ height );
@@ -173,7 +173,7 @@ public function srcset(): array
173173 ->map (function (int $ width ) {
174174 $ height = $ this ->calculateHeight ($ width );
175175
176- $ source = config ('statamic- imageboss.source ' );
176+ $ source = config ('statamic. imageboss.source ' );
177177
178178 if (! $ source ) {
179179 $ url = $ this ->generateGlideUrl ($ width , $ height );
@@ -205,13 +205,13 @@ public function srcsetString(): string
205205 */
206206 public function rias (): string
207207 {
208- $ source = config ('statamic- imageboss.source ' );
208+ $ source = config ('statamic. imageboss.source ' );
209209
210210 if (! $ source ) {
211211 return $ this ->url ();
212212 }
213213
214- $ baseUrl = config ('statamic- imageboss.base_url ' , 'https://img.imageboss.me ' );
214+ $ baseUrl = config ('statamic. imageboss.base_url ' , 'https://img.imageboss.me ' );
215215 $ height = ($ this ->height || $ this ->ratio ) ? '{height} ' : null ;
216216
217217 $ operations = collect (['' , $ source ]);
@@ -240,7 +240,7 @@ public function rias(): string
240240
241241 private function buildImageBossPath (int $ width , ?int $ height ): string
242242 {
243- $ source = config ('statamic- imageboss.source ' );
243+ $ source = config ('statamic. imageboss.source ' );
244244 $ operations = collect (['' , $ source ]);
245245
246246 if ($ height ) {
@@ -275,8 +275,8 @@ private function sanitizePath(string $path): string
275275
276276 private function signPath (string $ path ): string
277277 {
278- $ baseUrl = config ('statamic- imageboss.base_url ' , 'https://img.imageboss.me ' );
279- $ secret = config ('statamic- imageboss.secret ' );
278+ $ baseUrl = config ('statamic. imageboss.base_url ' , 'https://img.imageboss.me ' );
279+ $ secret = config ('statamic. imageboss.secret ' );
280280
281281 if (! $ secret ) {
282282 return $ baseUrl .$ path ;
@@ -303,9 +303,9 @@ private function generateGlideUrl(int $width, ?int $height): string
303303 */
304304 private function generateWidths (): array
305305 {
306- $ min = $ this ->min ?? config ('statamic- imageboss.presets.default.min ' , 320 );
307- $ max = $ this ->max ?? config ('statamic- imageboss.presets.default.max ' , 2560 );
308- $ interval = $ this ->interval ?? config ('statamic- imageboss.width_interval ' , 320 );
306+ $ min = $ this ->min ?? config ('statamic. imageboss.presets.default.min ' , 320 );
307+ $ max = $ this ->max ?? config ('statamic. imageboss.presets.default.max ' , 2560 );
308+ $ interval = $ this ->interval ?? config ('statamic. imageboss.width_interval ' , 320 );
309309
310310 $ widths = [];
311311
0 commit comments