/**
  * Builds the settings file
  */
 public function build()
 {
     /**
      * To get a clean PHP source code from the getLocalDateTimeFormat()
      * We use the var_export(...) function
      */
     $header = "<?php ";
     $settings = var_export(array('datetimeFormat' => $this->config->getLocalDateTimeFormat()), true);
     $tmpFile = TEMP_DIR . '/' . uniqid() . '.php';
     file_put_contents($tmpFile, $header . $settings);
     $settings = php_strip_whitespace($tmpFile);
     unlink($tmpFile);
     render_php_template(dirname(__FILE__) . '/Template/datetime.php', ['settings' => trim(str_replace($header, '', $settings)), 'namespace' => $this->config->getApplicationNamespace() . '\\' . $this->config->getModelRootNamespace()], $this->config->getTargetRootFolder() . '/Database/DateTimeConversion.php', false);
 }