original_string: public function disableView(bool $disable = true)
      {
          if ($disable) {
              array_delete($this->actions, 'view');
          } elseif (!in_array('view', $this->actions)) {
              array_push($this->actions, 'view');
          }
  
          return $this;
      }
code: public function disableView(bool $disable = true)
      {
          if ($disable) {
              array_delete($this->actions, 'view');
          } elseif (!in_array('view', $this->actions)) {
              array_push($this->actions, 'view');
          }
  
          return $this;
      }
code_tokens: public function disableView ( bool $ disable = true ) { if ( $ disable ) { array_delete ( $ this -> actions , 'view' ) ; } elseif ( ! in_array ( 'view' , $ this -> actions ) ) { array_push ( $ this -> actions , 'view' ) ; } return $ this ; }
docstring: Disable view action.
  
  @return $this
docstring_tokens: Disable view action .