original_string: protected function actionAccountAddress()
      {
          $key = 'delete';
          $this->controlToken($key);
          $address_id = $this->getQuery($key);
  
          if (!empty($address_id)) {
  
              if ($this->address->delete($address_id)) {
                  $this->redirect('', $this->text('Address has been deleted'), 'success');
              }
  
              $this->redirect('', $this->text('Address has not been deleted'), 'warning');
          }
      }
code: protected function actionAccountAddress()
      {
          $key = 'delete';
          $this->controlToken($key);
          $address_id = $this->getQuery($key);
  
          if (!empty($address_id)) {
  
              if ($this->address->delete($address_id)) {
                  $this->redirect('', $this->text('Address has been deleted'), 'success');
              }
  
              $this->redirect('', $this->text('Address has not been deleted'), 'warning');
          }
      }
code_tokens: protected function actionAccountAddress ( ) { $ key = 'delete' ; $ this -> controlToken ( $ key ) ; $ address_id = $ this -> getQuery ( $ key ) ; if ( ! empty ( $ address_id ) ) { if ( $ this -> address -> delete ( $ address_id ) ) { $ this -> redirect ( '' , $ this -> text ( 'Address has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Address has not been deleted' ) , 'warning' ) ; } }
docstring: Handles various actions
docstring_tokens: Handles various actions