Skip to content

Commit

Permalink
Code standard fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vedanshujain committed Nov 9, 2024
1 parent e6eac57 commit 27bff3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/src/init-redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}
8 changes: 4 additions & 4 deletions app/src/lib/SiteInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ 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,
'precision' => $this->tax_settings->precision,
'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,
Expand Down

0 comments on commit 27bff3a

Please sign in to comment.