original_string: public function actionIndex(): int
      {
          $dataTypes = $this->getDataTypes();
          $definitions = [];
          $overrideData = Data::parseYamlFile($this->overrideFile);
  
          $this->disableLogging();
  
          try {
              // Import from single file.
              if ($this->getStorageType() === self::SINGLE_FILE) {
                  $definitions = $this->importDefinitionsFromFile($overrideData);
                  $this->importFromDefinitions($dataTypes, $definitions);
  
                  Schematic::info('Loaded schema from '.$this->file);
              }
  
              // Import from multiple files.
              if ($this->getStorageType() === self::MULTIPLE_FILES) {
                  $definitions = $this->importDefinitionsFromDirectory($overrideData);
                  $this->importFromDefinitions($dataTypes, $definitions);
  
                  Schematic::info('Loaded schema from '.$this->path);
              }
  
              return 0;
          } catch (\Exception $e) {
              Schematic::error($e->getMessage());
              return 1;
          }
      }
code: public function actionIndex(): int
      {
          $dataTypes = $this->getDataTypes();
          $definitions = [];
          $overrideData = Data::parseYamlFile($this->overrideFile);
  
          $this->disableLogging();
  
          try {
              // Import from single file.
              if ($this->getStorageType() === self::SINGLE_FILE) {
                  $definitions = $this->importDefinitionsFromFile($overrideData);
                  $this->importFromDefinitions($dataTypes, $definitions);
  
                  Schematic::info('Loaded schema from '.$this->file);
              }
  
              // Import from multiple files.
              if ($this->getStorageType() === self::MULTIPLE_FILES) {
                  $definitions = $this->importDefinitionsFromDirectory($overrideData);
                  $this->importFromDefinitions($dataTypes, $definitions);
  
                  Schematic::info('Loaded schema from '.$this->path);
              }
  
              return 0;
          } catch (\Exception $e) {
              Schematic::error($e->getMessage());
              return 1;
          }
      }
code_tokens: public function actionIndex ( ) : int { $ dataTypes = $ this -> getDataTypes ( ) ; $ definitions = [ ] ; $ overrideData = Data :: parseYamlFile ( $ this -> overrideFile ) ; $ this -> disableLogging ( ) ; try { // Import from single file. if ( $ this -> getStorageType ( ) === self :: SINGLE_FILE ) { $ definitions = $ this -> importDefinitionsFromFile ( $ overrideData ) ; $ this -> importFromDefinitions ( $ dataTypes , $ definitions ) ; Schematic :: info ( 'Loaded schema from ' . $ this -> file ) ; } // Import from multiple files. if ( $ this -> getStorageType ( ) === self :: MULTIPLE_FILES ) { $ definitions = $ this -> importDefinitionsFromDirectory ( $ overrideData ) ; $ this -> importFromDefinitions ( $ dataTypes , $ definitions ) ; Schematic :: info ( 'Loaded schema from ' . $ this -> path ) ; } return 0 ; } catch ( \ Exception $ e ) { Schematic :: error ( $ e -> getMessage ( ) ) ; return 1 ; } }
docstring: Imports the Craft datamodel.
  
  @return int
  @throws \Exception
docstring_tokens: Imports the Craft datamodel .