Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/379
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 5, 2024
1 parent c1c826d commit 40bae06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ private function items():array {return dfc($this, function():array {
*/
private function responseA():array {return dfc($this, function():array {
$debug = true; /** @var bool $debug */ /** @var string $k */
list($url, $query) = $debug || !($k = S::s()->serverApiKey())
# 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379
[$url, $query] = $debug || !($k = S::s()->serverApiKey())
? ['https://mage2.pro/google-fonts.json', []]
: ['https://www.googleapis.com/webfonts/v1/webfonts', ['key' => $k, 'sort' => 'alpha']]
;
Expand Down

0 comments on commit 40bae06

Please sign in to comment.