original_string: public static function formatAttributes($destroy_callback = null, $create_callback = null, $sticky = null, $life = null, $classname = null, $width = null)
      {
          $options = [];
  
          if ($destroy_callback !== null)
          {
              $options['destroyed'] = $destroy_callback;
          } // if
  
          if ($create_callback !== null)
          {
              $options['created'] = $create_callback;
          } // if
  
          if ($sticky !== null)
          {
              $options['sticky'] = !!$sticky;
          } // if
  
          if ($life !== null)
          {
              $options['life'] = $life;
          } // if
  
          if ($classname !== null)
          {
              $options['className'] = $classname;
          } // if
  
          if ($width !== null)
          {
              $options['width'] = $width;
          } // if
  
          return $options;
      }
code: public static function formatAttributes($destroy_callback = null, $create_callback = null, $sticky = null, $life = null, $classname = null, $width = null)
      {
          $options = [];
  
          if ($destroy_callback !== null)
          {
              $options['destroyed'] = $destroy_callback;
          } // if
  
          if ($create_callback !== null)
          {
              $options['created'] = $create_callback;
          } // if
  
          if ($sticky !== null)
          {
              $options['sticky'] = !!$sticky;
          } // if
  
          if ($life !== null)
          {
              $options['life'] = $life;
          } // if
  
          if ($classname !== null)
          {
              $options['className'] = $classname;
          } // if
  
          if ($width !== null)
          {
              $options['width'] = $width;
          } // if
  
          return $options;
      }
code_tokens: public static function formatAttributes ( $ destroy_callback = null , $ create_callback = null , $ sticky = null , $ life = null , $ classname = null , $ width = null ) { $ options = [ ] ; if ( $ destroy_callback !== null ) { $ options [ 'destroyed' ] = $ destroy_callback ; } // if if ( $ create_callback !== null ) { $ options [ 'created' ] = $ create_callback ; } // if if ( $ sticky !== null ) { $ options [ 'sticky' ] = ! ! $ sticky ; } // if if ( $ life !== null ) { $ options [ 'life' ] = $ life ; } // if if ( $ classname !== null ) { $ options [ 'className' ] = $ classname ; } // if if ( $ width !== null ) { $ options [ 'width' ] = $ width ; } // if return $ options ; }
docstring: Static method for retrieving the options-array.
  
  @param   string  $destroy_callback
  @param   string  $create_callback
  @param   boolean $sticky
  @param   integer $life
  @param   string  $classname
  @param   integer $width
  
  @return  array
docstring_tokens: Static method for retrieving the options - array .