diff --git a/app/src/init-redis.php b/app/src/init-redis.php index 7cce6f8..62ea3b4 100644 --- a/app/src/init-redis.php +++ b/app/src/init-redis.php @@ -4,6 +4,6 @@ $redis = new Redis(); $redis->connect( getenv( 'valkey' ) ); -if ( getenv('valkey_pass') ) { - $redis->auth( getenv('valkey_pass') ); +if ( getenv( 'valkey_pass' ) ) { + $redis->auth( getenv( 'valkey_pass' ) ); } diff --git a/app/src/lib/SiteInfo.php b/app/src/lib/SiteInfo.php index a949c19..2a3714c 100644 --- a/app/src/lib/SiteInfo.php +++ b/app/src/lib/SiteInfo.php @@ -50,9 +50,9 @@ function ( $tax_rate ) { public function to_json(): string { return json_encode( array( - 'id' => $this->id, - 'url' => $this->url, - 'tax_settings' => array( + 'id' => $this->id, + 'url' => $this->url, + 'tax_settings' => array( 'tax_enabled' => $this->tax_settings->tax_enabled, 'price_includes_tax' => $this->tax_settings->price_includes_tax, 'round_at_subtotal' => $this->tax_settings->round_at_subtotal, @@ -60,7 +60,7 @@ public function to_json(): string { 'shipping_tax_class' => $this->tax_settings->shipping_tax_class, 'tax_based_on' => $this->tax_settings->tax_based_on, ), - 'tax_rates' => array_map( + 'tax_rates' => array_map( function ( $tax_rate ) { return array( 'rate_id' => $tax_rate->rate_id,