/**
  * Renders a then child when a migration exists for the given inspectionIdentifier
  * If not the else child is rendered.
  *
  * @param string $inspectionIdentifier
  * @return string
  */
 public function render($inspectionIdentifier)
 {
     $migration = Tx_Smoothmigration_Service_Migration_Registry::getInstance()->getActiveMigrationByIdentifier($inspectionIdentifier);
     if ($migration !== NULL) {
         $content = $this->renderThenChild();
     } else {
         $content = $this->renderElseChild();
     }
     return $content;
 }
 /**
  * Get available migrations
  *
  * @return string
  */
 private function getMigrations()
 {
     $output = '';
     /** @var Tx_Smoothmigration_Service_Migration_Registry $registry */
     $registry = Tx_Smoothmigration_Service_Migration_Registry::getInstance();
     $migrations = $registry->getActiveMigrations();
     $maxLen = 0;
     /** @var Tx_Smoothmigration_Migrations_AbstractMigrationDefinition $migration */
     foreach ($migrations as $migration) {
         if (strlen($migration->getCliKey()) > $maxLen) {
             $maxLen = strlen($migration->getCliKey());
         }
     }
     foreach ($migrations as $migration) {
         $output .= $migration->getCliKey() . substr($this->cli_indent(rtrim($migration->getTitle()), $maxLen + 4), strlen($migration->getCliKey())) . LF;
     }
     return $output;
 }
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$checkArray = array('Tx_Smoothmigration_Checks_Core_CallToDeprecatedStaticMethods_Definition', 'Tx_Smoothmigration_Checks_Core_CallToDeprecatedViewHelpers_Definition', 'Tx_Smoothmigration_Checks_Core_Mysql_Definition', 'Tx_Smoothmigration_Checks_Core_Namespace_Definition', 'Tx_Smoothmigration_Checks_Core_RemovedConstants_Definition', 'Tx_Smoothmigration_Checks_Core_RequireOnceInExtensions_Definition', 'Tx_Smoothmigration_Checks_Core_Xclasses_Definition', 'Tx_Smoothmigration_Checks_Dam_CallToDamClasses_Definition', 'Tx_Smoothmigration_Checks_Database_Utf8_Definition', 'Tx_Smoothmigration_Checks_Extension_IncompatibleWithLts_Definition', 'Tx_Smoothmigration_Checks_Extension_Obsolete_Definition');
Tx_Smoothmigration_Service_Check_Registry::getInstance()->registerChecks($checkArray);
$migrationArray = array('Tx_Smoothmigration_Migrations_Core_CallToDeprecatedStaticMethods_Definition', 'Tx_Smoothmigration_Migrations_Core_Namespace_Definition', 'Tx_Smoothmigration_Migrations_Core_RequireOnceInExtensions_Definition', 'Tx_Smoothmigration_Migrations_Database_CreateMissingTablesAndFields_Definition', 'Tx_Smoothmigration_Migrations_Database_Utf8_Definition');
Tx_Smoothmigration_Service_Migration_Registry::getInstance()->registerMigrations($migrationArray);
$TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['smoothmigration'] = array(t3lib_extMgm::extPath('smoothmigration', 'Classes/Cli/class.smoothmigration_cli.php'), '_CLI_smoothmigration');