original_string: public function instance()
      {
          if (isset(self::$instances[$this->recordCode])) {
              return self::$instances[$this->recordCode];
          }
  
          if (!$item = $this->getSettingsRecord()) {
              $this->model->initSettingsData();
              $item = $this->model;
          }
  
          return self::$instances[$this->recordCode] = $item;
      }
code: public function instance()
      {
          if (isset(self::$instances[$this->recordCode])) {
              return self::$instances[$this->recordCode];
          }
  
          if (!$item = $this->getSettingsRecord()) {
              $this->model->initSettingsData();
              $item = $this->model;
          }
  
          return self::$instances[$this->recordCode] = $item;
      }
code_tokens: public function instance ( ) { if ( isset ( self :: $ instances [ $ this -> recordCode ] ) ) { return self :: $ instances [ $ this -> recordCode ] ; } if ( ! $ item = $ this -> getSettingsRecord ( ) ) { $ this -> model -> initSettingsData ( ) ; $ item = $ this -> model ; } return self :: $ instances [ $ this -> recordCode ] = $ item ; }
docstring: Create an instance of the settings model, intended as a static method
docstring_tokens: Create an instance of the settings model intended as a static method