@@ -26,16 +26,16 @@ |
||
26 | 26 | * @param string $post_id Post ID. |
27 | 27 | * @return Config |
28 | 28 | */ |
29 | - public function get_config( $post_id ) { |
|
29 | + public function get_config($post_id) { |
|
30 | 30 | $config = new Config(); |
31 | 31 | |
32 | - $config->post_id = intval( $post_id ); |
|
33 | - $config->mode = $this->get_meta( $post_id, 'mode' ); |
|
34 | - $config->refresh_token = $this->get_meta( $post_id, 'omnikassa_2_refresh_token' ); |
|
35 | - $config->signing_key = $this->get_meta( $post_id, 'omnikassa_2_signing_key' ); |
|
36 | - $config->access_token = $this->get_meta( $post_id, 'omnikassa_2_access_token' ); |
|
37 | - $config->access_token_valid_until = $this->get_meta( $post_id, 'omnikassa_2_access_token_valid_until' ); |
|
38 | - $config->order_id = $this->get_meta( $post_id, 'omnikassa_2_order_id' ); |
|
32 | + $config->post_id = intval($post_id); |
|
33 | + $config->mode = $this->get_meta($post_id, 'mode'); |
|
34 | + $config->refresh_token = $this->get_meta($post_id, 'omnikassa_2_refresh_token'); |
|
35 | + $config->signing_key = $this->get_meta($post_id, 'omnikassa_2_signing_key'); |
|
36 | + $config->access_token = $this->get_meta($post_id, 'omnikassa_2_access_token'); |
|
37 | + $config->access_token_valid_until = $this->get_meta($post_id, 'omnikassa_2_access_token_valid_until'); |
|
38 | + $config->order_id = $this->get_meta($post_id, 'omnikassa_2_order_id'); |
|
39 | 39 | |
40 | 40 | return $config; |
41 | 41 | } |