Skip to content

Commit

Permalink
Remove unnecessary conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkamp authored and JPry committed Feb 18, 2021
1 parent 64f3367 commit c58f132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/API/Google/Ads.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,6 @@ protected function has_api_exception_error( ApiException $exception, string $err
protected function get_merchant_id(): int {
/** @var Options $options */
$options = $this->container->get( OptionsInterface::class );
return absint( $options->get( Options::MERCHANT_ID ) );
return $options->get( Options::MERCHANT_ID );
}
}
4 changes: 2 additions & 2 deletions src/API/Google/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public function link_ads_account( int $id ): int {
* @return array
*/
public function get_connected_ads_account(): array {
$id = intval( $this->options->get( Options::ADS_ID ) );
$id = $this->options->get( Options::ADS_ID );

return [
'id' => $id,
Expand Down Expand Up @@ -485,7 +485,7 @@ protected function parse_ads_id( string $name ): int {
* @return int
*/
protected function get_merchant_id(): int {
return absint( $this->options->get( Options::MERCHANT_ID ) );
return $this->options->get( Options::MERCHANT_ID );
}

/**
Expand Down

0 comments on commit c58f132

Please sign in to comment.