original_string: protected function getContextErrors($flatten = true)
      {
          $errors = $this->getContext('errors');
  
          if (empty($errors)) {
              return array();
          }
  
          if ($flatten) {
              return gplcart_array_flatten($errors);
          }
  
          return $errors;
      }
code: protected function getContextErrors($flatten = true)
      {
          $errors = $this->getContext('errors');
  
          if (empty($errors)) {
              return array();
          }
  
          if ($flatten) {
              return gplcart_array_flatten($errors);
          }
  
          return $errors;
      }
code_tokens: protected function getContextErrors ( $ flatten = true ) { $ errors = $ this -> getContext ( 'errors' ) ; if ( empty ( $ errors ) ) { return array ( ) ; } if ( $ flatten ) { return gplcart_array_flatten ( $ errors ) ; } return $ errors ; }
docstring: Returns an array of context errors
  @param bool $flatten
  @return array
docstring_tokens: Returns an array of context errors