original_string: public function getLiAttr()
      {
          $params = self::$_itemParams;
          $attr   = ['class' => 'li-item'];
  
          if (isset($params['item']['liClass'])) {
              $attr = $this->addClass($attr, $params['item']['liClass']);
          }
  
          if ($params['item']['last']) {
              $attr = $this->addClass($attr, 'last');
          }
  
          if ($params['item']['first']) {
              $attr = $this->addClass($attr, 'first');
          }
  
          return $this->_setActive($attr);
      }
code: public function getLiAttr()
      {
          $params = self::$_itemParams;
          $attr   = ['class' => 'li-item'];
  
          if (isset($params['item']['liClass'])) {
              $attr = $this->addClass($attr, $params['item']['liClass']);
          }
  
          if ($params['item']['last']) {
              $attr = $this->addClass($attr, 'last');
          }
  
          if ($params['item']['first']) {
              $attr = $this->addClass($attr, 'first');
          }
  
          return $this->_setActive($attr);
      }
code_tokens: public function getLiAttr ( ) { $ params = self :: $ _itemParams ; $ attr = [ 'class' => 'li-item' ] ; if ( isset ( $ params [ 'item' ] [ 'liClass' ] ) ) { $ attr = $ this -> addClass ( $ attr , $ params [ 'item' ] [ 'liClass' ] ) ; } if ( $ params [ 'item' ] [ 'last' ] ) { $ attr = $ this -> addClass ( $ attr , 'last' ) ; } if ( $ params [ 'item' ] [ 'first' ] ) { $ attr = $ this -> addClass ( $ attr , 'first' ) ; } return $ this -> _setActive ( $ attr ) ; }
docstring: Get default li attributes.
  
  @return array
docstring_tokens: Get default li attributes .