original_string: protected function bootIfNotBooted()
      {
          if (! isset(static::$booted[static::class])) {
              static::$booted[static::class] = true;
  
              $this->fireModelEvent('booting', false);
  
              static::boot();
  
              $this->fireModelEvent('booted', false);
          }
      }
code: protected function bootIfNotBooted()
      {
          if (! isset(static::$booted[static::class])) {
              static::$booted[static::class] = true;
  
              $this->fireModelEvent('booting', false);
  
              static::boot();
  
              $this->fireModelEvent('booted', false);
          }
      }
code_tokens: protected function bootIfNotBooted ( ) { if ( ! isset ( static :: $ booted [ static :: class ] ) ) { static :: $ booted [ static :: class ] = true ; $ this -> fireModelEvent ( 'booting' , false ) ; static :: boot ( ) ; $ this -> fireModelEvent ( 'booted' , false ) ; } }
docstring: Check if the model needs to be booted and if so, do it.
  
  @return void
docstring_tokens: Check if the model needs to be booted and if so do it .