original_string: protected function createUpgrade($metaData)
      {
          $this->ensureHomePath($metaData);
          if (!$metaData->has(UpgradeTask::SETTING_DATA_DIR)) {
              $metaData->set(UpgradeTask::SETTING_DATA_DIR, $this->home->tensideDataDir());
          }
          return new UpgradeTask($metaData);
      }
code: protected function createUpgrade($metaData)
      {
          $this->ensureHomePath($metaData);
          if (!$metaData->has(UpgradeTask::SETTING_DATA_DIR)) {
              $metaData->set(UpgradeTask::SETTING_DATA_DIR, $this->home->tensideDataDir());
          }
          return new UpgradeTask($metaData);
      }
code_tokens: protected function createUpgrade ( $ metaData ) { $ this -> ensureHomePath ( $ metaData ) ; if ( ! $ metaData -> has ( UpgradeTask :: SETTING_DATA_DIR ) ) { $ metaData -> set ( UpgradeTask :: SETTING_DATA_DIR , $ this -> home -> tensideDataDir ( ) ) ; } return new UpgradeTask ( $ metaData ) ; }
docstring: Create an upgrade task instance.
  
  @param JsonArray $metaData The meta data for the task.
  
  @return UpgradeTask
docstring_tokens: Create an upgrade task instance .