File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ final class Iconify
2727{
2828 public const API_ENDPOINT = 'https://api.iconify.design ' ;
2929 private const ATTR_XMLNS_URL = 'https://www.w3.org/2000/svg ' ;
30-
30+
3131 // URL must be 500 chars max (iconify limit)
3232 // -39 chars: https://api.iconify.design/XXX.json?icons=
3333 // -safe margin
@@ -91,7 +91,7 @@ public function fetchIcon(string $prefix, string $name): Icon
9191
9292 return new Icon ($ data ['icons ' ][$ name ]['body ' ], [
9393 'xmlns ' => self ::ATTR_XMLNS_URL ,
94- 'viewBox ' => \sprintf ('0 0 %s %s ' , $ width ?? $ height , $ height ?? $ width )
94+ 'viewBox ' => \sprintf ('0 0 %s %s ' , $ width ?? $ height , $ height ?? $ width ),
9595 ]);
9696 }
9797
@@ -139,7 +139,7 @@ public function fetchIcons(string $prefix, array $names): array
139139
140140 $ icons [$ iconName ] = new Icon ($ iconData ['body ' ], [
141141 'xmlns ' => self ::ATTR_XMLNS_URL ,
142- 'viewBox ' => \sprintf ('0 0 %d %d ' , $ width ?? $ height , $ height ?? $ width )
142+ 'viewBox ' => \sprintf ('0 0 %d %d ' , $ width ?? $ height , $ height ?? $ width ),
143143 ]);
144144 }
145145
You can’t perform that action at this time.
0 commit comments