original_string: public function writeSetting()
      {
          $config = [
              'Datasources' => [
                  'default' => $this->config('connection'),
              ],
              'Security' => [
                  'salt' => $this->salt()
              ],
              'debug' => false,
          ];
  
          $filePath = $this->config('settingsPath');
          if (!str_ends_with(strtolower($filePath), '.tmp')) {
              $filePath .= '.tmp';
          }
  
          $settingsFile = new File($filePath, true);
  
          return $settingsFile->write("<?php\n return " . var_export($config, true) . ";\n");
      }
code: public function writeSetting()
      {
          $config = [
              'Datasources' => [
                  'default' => $this->config('connection'),
              ],
              'Security' => [
                  'salt' => $this->salt()
              ],
              'debug' => false,
          ];
  
          $filePath = $this->config('settingsPath');
          if (!str_ends_with(strtolower($filePath), '.tmp')) {
              $filePath .= '.tmp';
          }
  
          $settingsFile = new File($filePath, true);
  
          return $settingsFile->write("<?php\n return " . var_export($config, true) . ";\n");
      }
code_tokens: public function writeSetting ( ) { $ config = [ 'Datasources' => [ 'default' => $ this -> config ( 'connection' ) , ] , 'Security' => [ 'salt' => $ this -> salt ( ) ] , 'debug' => false , ] ; $ filePath = $ this -> config ( 'settingsPath' ) ; if ( ! str_ends_with ( strtolower ( $ filePath ) , '.tmp' ) ) { $ filePath .= '.tmp' ; } $ settingsFile = new File ( $ filePath , true ) ; return $ settingsFile -> write ( "<?php\n return " . var_export ( $ config , true ) . ";\n" ) ; }
docstring: Creates site's "settings.php" file.
  
  @return bool True on success
docstring_tokens: Creates site s settings . php file .