original_string: public function toggleShopConnection($shop, $activeState)
      {
          $shopName = parse_url($shop, PHP_URL_HOST);
          $endpoint = 'woocommerce/toggle_shop_connection';
  
          $params = array_merge($this->prepareParams(), ['active_state' => $activeState, 'shop' => $shopName] );
          return $this->restClient->post( $endpoint, $params );
      }
code: public function toggleShopConnection($shop, $activeState)
      {
          $shopName = parse_url($shop, PHP_URL_HOST);
          $endpoint = 'woocommerce/toggle_shop_connection';
  
          $params = array_merge($this->prepareParams(), ['active_state' => $activeState, 'shop' => $shopName] );
          return $this->restClient->post( $endpoint, $params );
      }
code_tokens: public function toggleShopConnection ( $ shop , $ activeState ) { $ shopName = parse_url ( $ shop , PHP_URL_HOST ) ; $ endpoint = 'woocommerce/toggle_shop_connection' ; $ params = array_merge ( $ this -> prepareParams ( ) , [ 'active_state' => $ activeState , 'shop' => $ shopName ] ) ; return $ this -> restClient -> post ( $ endpoint , $ params ) ; }
docstring: Calls api endpoint that will toggle shop's active state
  in our db
docstring_tokens: Calls api endpoint that will toggle shop s active state in our db