/**
  * Get the Prestashop version for the given client.
  *
  * @param PrestashopSoapClient $client
  *
  * @return float
  */
 protected function getPrestashopVersion(PrestashopSoapClient $client = null)
 {
     if (null === $client) {
         return null;
     }
     if (!$this->version) {
         try {
             $prestashopVersion = $client->call('core_prestashop.info')['prestashop_version'];
         } catch (\SoapFault $e) {
             return self::PRESTASHOP_VERSION_1_6;
         } catch (RestCallException $e) {
             throw $e;
         }
         $pattern = '/^(?P<version>[0-9]+\\.[0-9]+)(\\.[0-9])*/';
         if (preg_match($pattern, $prestashopVersion, $matches)) {
             $this->version = $matches['version'];
         } else {
             $this->version = $prestashopVersion;
         }
     }
     return $this->version;
 }
 /**
  * @param array  $category
  * @param string $categoryId
  */
 protected function updateCategoryInAdminStoreView($category, $categoryId)
 {
     $category[0] = $categoryId;
     $this->client->addCall([static::SOAP_ACTION_CATEGORY_UPDATE, $category]);
     $category[2] = static::ADMIN_STOREVIEW;
     $this->client->addCall([static::SOAP_ACTION_CATEGORY_UPDATE, $category]);
 }