original_string: public function setInstalled($code, $dirName = null)
      {
          if (!$dirName) {
              $dirName = strtolower(str_replace('.', '-', $code));
          }
  
          $history = Parameter::get('system::theme.history', []);
          $history[$code] = $dirName;
          Parameter::set('system::theme.history', $history);
      }
code: public function setInstalled($code, $dirName = null)
      {
          if (!$dirName) {
              $dirName = strtolower(str_replace('.', '-', $code));
          }
  
          $history = Parameter::get('system::theme.history', []);
          $history[$code] = $dirName;
          Parameter::set('system::theme.history', $history);
      }
code_tokens: public function setInstalled ( $ code , $ dirName = null ) { if ( ! $ dirName ) { $ dirName = strtolower ( str_replace ( '.' , '-' , $ code ) ) ; } $ history = Parameter :: get ( 'system::theme.history' , [ ] ) ; $ history [ $ code ] = $ dirName ; Parameter :: set ( 'system::theme.history' , $ history ) ; }
docstring: Flags a theme as being installed, so it is not downloaded twice.
  @param string $code Theme code
  @param string|null $dirName
docstring_tokens: Flags a theme as being installed so it is not downloaded twice .