original_string: protected function prepareList(array $list)
      {
          foreach ($list as &$item) {
              if (!empty($item['data']['conditions'])) {
                  gplcart_array_sort($item['data']['conditions']);
              }
          }
  
          return $list;
      }
code: protected function prepareList(array $list)
      {
          foreach ($list as &$item) {
              if (!empty($item['data']['conditions'])) {
                  gplcart_array_sort($item['data']['conditions']);
              }
          }
  
          return $list;
      }
code_tokens: protected function prepareList ( array $ list ) { foreach ( $ list as & $ item ) { if ( ! empty ( $ item [ 'data' ] [ 'conditions' ] ) ) { gplcart_array_sort ( $ item [ 'data' ] [ 'conditions' ] ) ; } } return $ list ; }
docstring: Prepare an array of triggers
  @param array $list
  @return array
docstring_tokens: Prepare an array of triggers