src/Robo/Commands/Blt/UpdateCommand.php
protected function convertLegacySchemaVersion($version) {
    // Check to see if version is Semver (legacy format). Convert to expected
    // syntax. Luckily, there are a finite number of known legacy versions.
    // We check specifically for those.
    // E.g., 8.6.6 => 8006006.
    if (strpos($version, '.') !== FALSE) {
      str_replace('-beta1', '', $version);
      $semver_array = explode('.', $version);
      $semver_array[1] = str_pad($semver_array[1], 3, "0", STR_PAD_LEFT);
      $semver_array[2] = str_pad($semver_array[2], 3, "0", STR_PAD_LEFT);
      $version = implode('', $semver_array);
    }
    if (strpos($version, 'dev') !== FALSE) {
      $version = '0';
    }
    return $version;
  }
protected function convertLegacySchemaVersion($version) {
    // Check to see if version is Semver (legacy format). Convert to expected
    // syntax. Luckily, there are a finite number of known legacy versions.
    // We check specifically for those.
    // E.g., 8.6.6 => 8006006.
    if (strpos($version, '.') !== FALSE) {
      str_replace('-beta1', '', $version);
      $semver_array = explode('.', $version);
      $semver_array[1] = str_pad($semver_array[1], 3, "0", STR_PAD_LEFT);
      $semver_array[2] = str_pad($semver_array[2], 3, "0", STR_PAD_LEFT);
      $version = implode('', $semver_array);
    }
    if (strpos($version, 'dev') !== FALSE) {
      $version = '0';
    }
    return $version;
  }
protected function convertLegacySchemaVersion ( $ version ) { // Check to see if version is Semver (legacy format). Convert to expected // syntax. Luckily, there are a finite number of known legacy versions. // We check specifically for those. // E.g., 8.6.6 => 8006006. if ( strpos ( $ version , '.' ) !== FALSE ) { str_replace ( '-beta1' , '' , $ version ) ; $ semver_array = explode ( '.' , $ version ) ; $ semver_array [ 1 ] = str_pad ( $ semver_array [ 1 ] , 3 , "0" , STR_PAD_LEFT ) ; $ semver_array [ 2 ] = str_pad ( $ semver_array [ 2 ] , 3 , "0" , STR_PAD_LEFT ) ; $ version = implode ( '' , $ semver_array ) ; } if ( strpos ( $ version , 'dev' ) !== FALSE ) { $ version = '0' ; } return $ version ; }
Converts legacy BLT schema version to current version.

@param string $version
The legacy version.

@return string
The version in correct syntax.
Converts legacy BLT schema version to current version .